nautobot-app-golden-config icon indicating copy to clipboard operation
nautobot-app-golden-config copied to clipboard

Duplicate commands inaccurately tagged to different features

Open matt852 opened this issue 1 year ago • 0 comments

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

  1. 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
  1. Create a template to generate this INTENDED configuration:
logging trap debugging
snmp-server community <<<snmp_community>>> RO
  1. Create 2 Golden Config compliance features: Logging and SNMP
  2. Create 1 Golden Config compliance rule for Cisco IOS logging feature: a. Config to Match: Logging
  3. Create 1 Golden Config compliance rule for Cisco IOS SNMP feature: a. Config to Match: snmp
  4. 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.

matt852 avatar Jan 26 '23 13:01 matt852