intentionet / netconan

netconan - a Network Configuration Anonymizer
Apache License 2.0
145 stars 12 forks source link

Update community regex to ignore more BGP communities #86

Closed sfraint closed 6 years ago

sfraint commented 6 years ago

Context:

Cisco UCS SNMP community syntax is very similar to Cisco IOS BGP community syntax, where set community blah may be a sensitive line on one device but not on the other. There are some clues to when the community name is a BGP community (and therefore is not sensitive), like when it is:

Netconan already recognizes the first two cases and skips anonymization in those cases.

In this PR:

Update Netconan snmp-community regex to recognize and skip the last three cases as well.


This change is Reviewable