Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVD structured config not generating EOS CLI for snmp-server commands #4802

Closed
1 task done
rys-arista opened this issue Dec 10, 2024 · 0 comments · Fixed by #4806
Closed
1 task done

AVD structured config not generating EOS CLI for snmp-server commands #4802

rys-arista opened this issue Dec 10, 2024 · 0 comments · Fixed by #4806
Labels
type: bug Something isn't working

Comments

@rys-arista
Copy link

rys-arista commented Dec 10, 2024

Issue Summary

During testing of the SNMP feature, we noticed that while the "snmp-server <server_ip>" details are correctly captured in the AVD model, they are not reflected in the EOS CLI output.

Below provided the snmp config we used along with the corresponding AVD output. We're currently using AVD version 4.10.2.

SNMP Configuration:

snmp-server contact 123-456-789
snmp-server location LOCATION-LOC
snmp-server source-interface traps mgmt0
snmp-server user admin vdc-admin auth md5 0xafe1e3d7f36cfae8473c55a priv 0xafe1e3d7f36cfae8473c55 localizedkey
snmp-server host 192.168.1.10 traps version 2c public
snmp-server host 192.168.1.10 use-vrf management
snmp-server host 192.168.2.20 traps version 2c public
snmp-server host 192.168.2.20 use-vrf management
snmp-server enable traps bgp state-changes limited
snmp-server enable traps callhome event-notify
snmp-server enable traps callhome smtp-send-fail
snmp-server enable traps cfs state-change-notif
snmp-server enable traps lldp lldpRemTablesChange
snmp-server enable traps cfs merge-failure
snmp-server enable traps port-security access-secure-mac-violation
snmp-server enable traps port-security trunk-secure-mac-violation
snmp-server enable traps aaa server-state-change
snmp-server enable traps hsrp state-change
snmp-server enable traps feature-control FeatureOpStatusChange
snmp-server enable traps sysmgr cseFailSwCoreNotifyExtended
snmp-server enable traps config ccmCLIRunningConfigChanged
snmp-server enable traps snmp authentication
snmp-server enable traps mpls ldp session-up
snmp-server enable traps mpls ldp session-down
snmp-server enable traps link cisco-xcvr-mon-status-chg
snmp-server enable traps vtp notifs
snmp-server enable traps vtp vlancreate
snmp-server enable traps vtp vlandelete
snmp-server enable traps bridge newroot
snmp-server enable traps bridge topologychange
snmp-server enable traps stpx inconsistency
snmp-server enable traps stpx root-inconsistency
snmp-server enable traps stpx loop-inconsistency
snmp-server enable traps system Clock-change-notification
snmp-server community public group vdc-operator
snmp-server community public use-acl SNMP-RO

AVD structured model:

snmp_server:
  communities:
  - access_list_ipv4:
      name: SNMP-RO
    name: public
  contact: 123-456-789
  hosts:
  - host: 192.168.1.10
    version: 2c
    vrf: management
  - host: 192.168.2.20
    version: 2c
    vrf: management
  location: LOCATION-LOC
  traps:
    snmp_traps:
    - name: bgp state-changes limited
    - name: callhome event-notify
    - name: callhome smtp-send-fail
    - name: cfs state-change-notif
    - name: lldp lldpRemTablesChange
    - name: cfs merge-failure
    - name: port-security access-secure-mac-violation
    - name: port-security trunk-secure-mac-violation
    - name: aaa server-state-change
    - name: hsrp state-change
    - name: feature-control FeatureOpStatusChange
    - name: sysmgr cseFailSwCoreNotifyExtended
    - name: config ccmCLIRunningConfigChanged
    - name: snmp authentication
    - name: mpls ldp session-up
    - name: mpls ldp session-down
    - name: link cisco-xcvr-mon-status-chg
    - name: vtp notifs
    - name: vtp vlancreate
    - name: vtp vlandelete
    - name: bridge newroot
    - name: bridge topologychange
    - name: stpx inconsistency
    - name: stpx root-inconsistency
    - name: stpx loop-inconsistency
    - name: system Clock-change-notification

Which component(s) of AVD impacted

eos_cli_config_gen

How do you run AVD ?

PyAVD

Steps to reproduce

Relevant log output

At present, the EOS CLI output for the above SNMP configuration is as follows. You can see the snmp-server commands are missing in the generated output.

snmp-server contact 123-456-789
snmp-server location LOCATION-LOC
snmp-server community public ro SNMP-RO
snmp-server enable traps aaa server-state-change
snmp-server enable traps bgp state-changes limited
snmp-server enable traps bridge newroot
snmp-server enable traps bridge topologychange
snmp-server enable traps callhome event-notify
snmp-server enable traps callhome smtp-send-fail
snmp-server enable traps cfs merge-failure
snmp-server enable traps cfs state-change-notif
snmp-server enable traps config ccmCLIRunningConfigChanged
snmp-server enable traps feature-control FeatureOpStatusChange
snmp-server enable traps hsrp state-change
snmp-server enable traps link cisco-xcvr-mon-status-chg
snmp-server enable traps lldp lldpRemTablesChange
snmp-server enable traps mpls ldp session-down
snmp-server enable traps mpls ldp session-up
snmp-server enable traps port-security access-secure-mac-violation
snmp-server enable traps port-security trunk-secure-mac-violation
snmp-server enable traps snmp authentication
snmp-server enable traps stpx inconsistency
snmp-server enable traps stpx loop-inconsistency
snmp-server enable traps stpx root-inconsistency
snmp-server enable traps sysmgr cseFailSwCoreNotifyExtended
snmp-server enable traps system Clock-change-notification
snmp-server enable traps vtp notifs
snmp-server enable traps vtp vlancreate
snmp-server enable traps vtp vlandelete
!
end

Contributing Guide

  • I agree to follow this project's Code of Conduct
@rys-arista rys-arista added the type: bug Something isn't working label Dec 10, 2024
@rys-arista rys-arista changed the title Swift Tool : AVD structured config not generating EOS CLI for snmp-server commands. AVD structured config not generating EOS CLI for snmp-server commands Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant