[rancid] Nexus 1000v switch-router

heasley heas at shrubbery.net
Fri Jul 1 04:55:26 UTC 2016


Thu, Jun 30, 2016 at 10:46:52PM +0000, Charles T. Brooks:
> Hmmmm... I'll answer the second question first.  No, neither the nexus 5K nor the 1000v has "show vtp status".  It's possible that we don't have a feature licensed/loaded that would enable this, I don't really know.  The NX-OS version on the 5K I looked at is not the very  latest greatest but it's not terribly old, either.
> 

Does this restore the show vlan output?

Index: lib/nxos.pm.in
===================================================================
--- lib/nxos.pm.in	(revision 3417)
+++ lib/nxos.pm.in	(working copy)
@@ -53,7 +53,7 @@
     $C0 = 0;				# output formatting control
     $E0 = 0;
     $H0 = 0;
-    $DO_SHOW_VLAN = 0;
+    $DO_SHOW_VLAN = 1;
 
     # add content lines and separators
     ProcessHistory("","","","!RANCID-CONTENT-TYPE: $devtype\n!\n");
@@ -613,8 +613,8 @@
 	    s/^$1\s{$len}//;
 	}
 
-	if (/^VTP Operating Mode\s+:\s+(Transparent|Server)/) {
-	    $DO_SHOW_VLAN = 1;
+	if (!/^VTP Operating Mode\s+:\s+(Transparent|Server)/) {
+	    $DO_SHOW_VLAN = 0;
 	}
 	ProcessHistory("COMMENTS","","","!VTP: $_");
     }



More information about the Rancid-discuss mailing list