summaryrefslogtreecommitdiff
path: root/test/integration/targets/eos_lldp_global/tests/cli/reset_config.yml
blob: 4e5fd337461c7a6a2f1f4f24aaa60c04e2de9a15 (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
27
28
---
- name: Reset initial config
  cli_config:
    config: |
      lldp timer 3000
      lldp holdtime 100
      lldp reinit 5
      no lldp tlv-select management-address 
      no lldp tlv-select system-description
      lldp tlv-select port-description
  become: yes

- eos_facts:
    gather_network_resources: lldp_global
  become: yes

- set_fact:
    expected_config:
      timer: 3000
      holdtime: 100
      reinit: 5
      tlv_select:
        management_address: False
        system_description: False

- assert:
    that:
      - "expected_config == ansible_facts.network_resources.lldp_global"