chrpinedo / rancid-cisco-sb

rancid-cisco-sb
26 stars 25 forks source link

Connectivity errors treated as part of configuration #22

Open troffasky opened 7 years ago

troffasky commented 7 years ago

If there is a connectivity problem with a switch, the config is replaced in source control with the error message:

> Index: configs/edge-cab6-a
> ===================================================================
> retrieving revision 1.8
> diff -u -4 -r1.8 edge-cab6-a
> @@ -190,121 +190,6 @@
>   !
>   interface gigabitethernet1/13
>    storm-control broadcast enable
>    storm-control include-multicast
> -  switchport mode access
> -  switchport access vlan 206
> -  lldp optional-tlv port-desc sys-name sys-desc sys-cap
> -  lldp management-address automatic
> <snip>
> - interface tengigabitethernet1/4
> -  storm-control broadcast enable
> -  lldp optional-tlv port-desc sys-name sys-desc sys-cap
> -  lldp management-address automatic
> - !
> - exit
> - ip default-gateway 172.22.190.1
> + 
> + Error: TIMEOUT reached

When connectivity returns later on, the "change" is reverted. Other RANCID device types do not exhibit this behaviour when there is a connectivity problem.