Skip to content
Snippets Groups Projects
Commit 8db53fbe authored by Rafael Da Silveira Santos's avatar Rafael Da Silveira Santos
Browse files

Fix vtep flooding error in ansible

parent 9ae17e3d
Branches
No related tags found
No related merge requests found
...@@ -10,16 +10,21 @@ ...@@ -10,16 +10,21 @@
- "description {{ interface.description }}" - "description {{ interface.description }}"
- "switchport access vlan {{ service.fabric[hostname].vlan }}" - "switchport access vlan {{ service.fabric[hostname].vlan }}"
- name: Configure VxLAN - name: Configure vxlan
arista.eos.eos_command:
commands:
- "configure session {{ hostname }}"
- "interface vxlan 1"
- "vxlan source-interface Loopback0"
- "vxlan vlan {{ service.fabric[hostname].vlan }} vni {{ service.vni }}"
- name: Configure VTEP Flooding
when: device.key != hostname when: device.key != hostname
loop: "{{ lookup('ansible.builtin.dict', service.fabric) }}" loop: "{{ service.fabric | dict2items }}"
loop_control: loop_control:
loop_var: device loop_var: device
arista.eos.eos_command: arista.eos.eos_command:
commands: commands:
- "configure session {{ hostname }}" - "configure session {{ hostname }}"
- "interface vxlan 1" - "interface vxlan 1"
- "vxlan source-interface Loopback0" - "vxlan vlan {{ service.fabric[hostname].vlan }} flood vtep fc00:0:0:2{{ device.key.split('L')[-1] }}::"
- "vxlan vlan {{ service.fabric[hostname].vlan }} vni {{ service.vni }}" \ No newline at end of file
- "vxlan vlan {{ service.fabric[hostname].vlan }} flood vtep fc00:0:0:2{{ device.key.split('L')[-1] }}::"
- "exit"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment