Arista

Ansible Cheat Sheet

Ansible Cheat Sheet Facts ansible host -m setup -i inventory.yaml --- - hosts: spine,leaf gather_facts: yes connection: local tasks: # - name: Gather facts (eos) # arista.eos.eos_facts: # when: ansible_network_os == 'arista.eos.eos' - name: Display some facts debug: msg: "The hostname is {{ ansible_net_hostname }} and the OS is {{ ansible_net_version }}" - name: get interface status arista.eos.eos_command: commands: - command: show int status when: ansible_net_version == "4.29.1F" register: int_status - name: Create backup dir file: path: "backup/{{ inventory_hostname }}" state: directory recurse: yes - name: save interface status local_action: module: copy content: "{{ int_status }}" dest: backup/{{ inventory_hostname }}/{{ inventory_hostname }}.

ACE L3 Overlay

test test bla Spine config router bgp 65100 maximum-paths 2 ecmp 2 neighbor EVPN-OVERLAY peer-group neighbor EVPN-OVERLAY next-hop-unchanged neighbor EVPN-OVERLAY update-source Loopback0 neighbor EVPN-OVERLAY ebgp-multihop neighbor EVPN-OVERLAY send-community neighbor EVPN-OVERLAY maximum-routes 0 neighbor 10.0.1.11 peer-group EVPN-OVERLAY neighbor 10.0.1.11 remote-as 65001 next-hop-unchanged is only necesary in older EOS versions. in newer ones it’s the default value for EVPN peerings default behaviour of iBGP is next-hop-unchanged default behaviour of eBGP is next-hop-self