[rancid] Nexus 1000v switch-router

heasley heas at shrubbery.net
Wed Jul 6 00:28:23 UTC 2016


Tue, Jul 05, 2016 at 04:42:17PM +0000, Charles T. Brooks:
> Correction to previous email:  inverting the VTP logic *does* result in the 5Ks having "show vlan" output in their rancid config files.  So, since that's apparently the desired behavior you'll probably want to keep that.

great.

> The other change, though, (return -1 on invalid command) broke all Nexus backups.  You don't want that one!

I think that you misread the diff; i should be to change the -1 to 1.

Index: lib/nxos.pm.in
===================================================================
--- lib/nxos.pm.in      (revision 3413)  
+++ lib/nxos.pm.in      (working copy)   
@@ -325,7 +325,7 @@
        return(1) if /Line has invalid autocommand /;
        return(1) if /(Invalid input detected|Type help or )/;
        return(1) if (/No token match at /);    # 1000v
-       return(-1) if (/\% Invalid command at /);
+       return(1) if (/\% Invalid command at /);# 1000v has no support
        return(-1) if (/\% Permission denied/);
        return(-1) if (/command authorization failed/i);



More information about the Rancid-discuss mailing list