Skip to content

Commit 3339ba9

Browse files
authored
Fix: Remove commands that trigger Arista EOS bug from collected config (#2585)
Arista cEOS fails to replace a configuration if the new configuration contains "no lldp X" on the management interface. This commit provides a generic "collected configuration cleanup" mechanism and uses it to remove "no lldp transmit" and "no lldp receive" configuration commands. Closes #2577
1 parent 6e4db3c commit 3339ba9

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{% for line in ansible_net_config.split('\n')
2+
if line.strip() not in netlab_config_remove|default([]) %}
3+
{{ line }}
4+
{% endfor %}

netsim/ansible/tasks/fetch-config/eos.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
---
44
- arista.eos.eos_facts:
55
gather_subset: config
6+
7+
- set_fact:
8+
ansible_net_config: "{{ lookup('template','_config_cleanup.j2') }}"

netsim/devices/eos.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ group_vars:
1313
ansible_ssh_pass: vagrant
1414
ansible_network_os: eos
1515
ansible_connection: network_cli
16+
netlab_config_remove:
17+
- no lldp transmit
18+
- no lldp receive
1619
features:
1720
initial:
1821
system_mtu: true

0 commit comments

Comments
 (0)