Skip to content

Commit 36fc81c

Browse files
committed
Fix: Remove commands that trigger Arista EOS bug from collected config
1 parent f1a78a4 commit 36fc81c

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)