blob: 45caea1f4a61a9ecaa0641a4ba12843f41c21aea (
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
lacp port-priority 30
lacp rate normal
interface Ethernet2
no lacp port-priority
lacp rate fast
become: yes
- eos_facts:
gather_network_resources: lacp_interfaces
become: yes
- set_fact:
expected_config:
- name: Ethernet1
port_priority: 30
- name: Ethernet2
rate: fast
- assert:
that:
- "expected_config|symmetric_difference(ansible_facts.network_resources.lacp_interfaces) == []"
|