nautobot-app-golden-config
nautobot-app-golden-config copied to clipboard
Duplicate commands inaccurately tagged to different features
Note: This is a different issue to the #61 (though is most likely related)
Environment
- Python version: . 3.10
- Nautobot version: 1.5.7
- nautobot-golden-config version: 1.3.1
Steps to Reproduce
- Setup a Cisco IOS device in Golden Config with the following ACTUAL configuration:
logging buffered 10000
snmp-server community <<<snmp_community>>> RO
snmp-server community <<<snmp_community>>> RO
- Create a template to generate this INTENDED configuration:
logging trap debugging
snmp-server community <<<snmp_community>>> RO
- Create 2 Golden Config compliance features: Logging and SNMP
- Create 1 Golden Config compliance rule for Cisco IOS logging feature: a. Config to Match: Logging
- Create 1 Golden Config compliance rule for Cisco IOS SNMP feature: a. Config to Match: snmp
- Run all 3 GC plugin jobs against this new device
Expected Behavior
The logging and SNMP features should both generate. Logging should show missing 1 line: logging trap debugging
with 1 extra line: logging buffered 10000
.
The SNMP feature should display with 1 extra line: snmp-server community <<<snmp_community>>> RO
Observed Behavior
The logging feature instead shows the SNMP lines under the "Extra Configuration" section:
Extra Configuration:
logging buffered 10000
snmp-server community <<<snmp_community>>> RO
snmp-server community <<<snmp_community>>> RO
The snmp-server
lines should not match for the Logging feature, as they are not configured for the Logging feature in the "Config to Match" section.
The SNMP feature doesn't display at all, though this has been addressed already in issue #61.