Developer Community

 View Only
last person joined: 2 days ago 

AOSCX programmatically addressing lldp_neighbors

This thread has been viewed 1 times
  • 1.  AOSCX programmatically addressing lldp_neighbors

    Posted 23 days ago
    Hi all,

    I likely could be going about this in all the wrong ways, but does anyone have a programmatic way to call out the lldp_neighbors in an AOSCX switch?

    I have been able to do this:
    "{{ (ansible_facts['net_interfaces']['line_card,1/1']['1/1/25']['lldp_neighbors']) | first }}"​

    Which will output the neighbor's MAC,INT:
    1a:2b:3c:4d:5e:6f,1/7/19​


    How can I address that fact to get to the underlying facts without baking that into my playbook?




    ------------------------------
    Don Rhodes
    ------------------------------