summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/vyos_facts
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/vyos_facts')
-rw-r--r--test/integration/targets/vyos_facts/tests/cli/neighbors_facts.yaml51
1 files changed, 0 insertions, 51 deletions
diff --git a/test/integration/targets/vyos_facts/tests/cli/neighbors_facts.yaml b/test/integration/targets/vyos_facts/tests/cli/neighbors_facts.yaml
deleted file mode 100644
index a16b3a9d97..0000000000
--- a/test/integration/targets/vyos_facts/tests/cli/neighbors_facts.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-- name: get eth0 ip address
- vyos_command:
- commands:
- - show interfaces ethernet eth0
- register: eth0_ip
-
-# if there is no ip assigned to eth0, skip this
-- block:
- - set_fact:
- vyos_lldp_node: "{{ eth0_ip.stdout_lines[0][2] | regex_replace('.*inet ', '') | regex_replace('/.*', '') }}"
-
- - name: start LLDP
- vyos_config:
- lines:
- - set service lldp
- - set service lldp management-address {{ vyos_lldp_node }}
-
- - debug: var=vyos_lldp_node
-
- - name: wait for LLDP to start up. If this fails check that vyos_lldp_node is a valid ip address
- vyos_command:
- commands:
- - show lldp neighbors detail
- register: neighbors
- until: neighbors.stdout_lines[0]|length > 3
- retries: 5
- delay: 5
-
- - name: collect neighbor facts from the device
- vyos_facts:
- gather_subset: neighbors
- # provider: {{ cli }}
- register: result
-
- - debug: var=result.ansible_facts.ansible_net_neighbors
-
-
- - name: check ansible_net_neighbors
- assert:
- that:
- - result.ansible_facts.ansible_net_neighbors is defined
- # - result.ansible_facts.ansible_net_neighbors.eth0 is defined
- - result.ansible_facts.ansible_net_neighbors|length > 0
-
- always:
- - name: stop lldp
- vyos_config:
- lines:
- - delete service lldp
- - delete service lldp management-address {{ vyos_lldp_node }}
- when: "'inet' in eth0_ip.stdout[0]"