blob: 99688d8478c3b5ece9b7a54e71f6b194abdd4fba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
---
- name: Reset initial config
cli_config:
config: |
interface Ethernet1
no lldp receive
lldp transmit
interface Ethernet2
lldp receive
no lldp transmit
become: yes
- eos_facts:
gather_network_resources: lldp_interfaces
become: yes
- set_fact:
expected_config:
- name: Ethernet1
receive: False
- name: Ethernet2
transmit: False
- assert:
that:
- "expected_config|symmetric_difference(ansible_facts.network_resources.lldp_interfaces) == []"
|