miken32 / rancid-aruba

Perl module for Aruba devices
12 stars 5 forks source link

Fix for removing snmp-server host commstring #8

Closed jrbinks closed 1 year ago

jrbinks commented 1 year ago

Found a bug where the snmp community string wasn't being re-written properly, due to wrong brackets being selected in the match.

jrbinks commented 1 year ago

By way of explanation, here's my diff before and after:

- !snmp-server host X.X.X.X version 2c <removed>X.X.X.X
+ !snmp-server host X.X.X.X version 2c <removed> udp-port 162