We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1a78a4 commit 36fc81cCopy full SHA for 36fc81c
netsim/ansible/tasks/fetch-config/_config_cleanup.j2
@@ -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
@@ -3,3 +3,6 @@
---
- arista.eos.eos_facts:
5
gather_subset: config
6
+
7
+- set_fact:
8
+ ansible_net_config: "{{ lookup('template','_config_cleanup.j2') }}"
netsim/devices/eos.yml
@@ -13,6 +13,9 @@ group_vars:
13
ansible_ssh_pass: vagrant
14
ansible_network_os: eos
15
ansible_connection: network_cli
16
+ netlab_config_remove:
17
+ - no lldp transmit
18
+ - no lldp receive
19
features:
20
initial:
21
system_mtu: true
0 commit comments