StackStorm-Exchange / stackstorm-napalm

A StackStorm pack for working with network devices using the NAPALM library.
https://exchange.stackstorm.org/
Apache License 2.0
32 stars 16 forks source link

check_consistency misreads backslash in Cisco IOS config #28

Open travisn08 opened 7 years ago

travisn08 commented 7 years ago

Cisco IOS config ends its certificate dump with "\quit". This is always identified as a false diff (reads extra backslash from Golden for some reason).

   C9269B9F 8CA1D4AC 86BCE027 AEC10FA4 930B5C8E C70C977C 9C72BBE0 C20F4C5E 
   5ACEF50A B1AE0AFA A0
-  \\tquit
+  \tquit
Mierdin commented 7 years ago

Hrm, I'll see if I can find an IOS box to repro this on. In the meantime, the action already has a built-in list of strings to ignore (comments and timestamps also generated a lot of pointless diffs), so maybe a good short-term solution is to expose that via params and/or in the config.

When I have some cycles I'll see about doing the latter and get you a workaround (of course if you beat me to it, you're welcome to do so :smile: )