Make snmp community regex match more specific syntax.
Previously Netconan would anonymize the first word after the last occurrence of community, e.g. consider the following line where sercretcommunity is the snmp community name to be anonymized:
snmp-server community secretcommunity RW 2
after anonymization, it would become:
snmp-server community secretcommunity netconanRemoved 2
in this PR after anonymization, now it becomes:
Make snmp community regex match more specific syntax.
Previously Netconan would anonymize the first word after the last occurrence of
community
, e.g. consider the following line wheresercretcommunity
is the snmp community name to be anonymized:snmp-server community secretcommunity RW 2
after anonymization, it would become:snmp-server community secretcommunity netconanRemoved 2
in this PR after anonymization, now it becomes:snmp-server community netconanRemoved RW 2
This change is