blob: 342e64b9977a7e2abbefe86893aa3a0d8071e439 (
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
29
30
31
32
33
34
35
36
37
|
---
- debug:
msg: START vyos_lldp_interfaces rendered integration tests on connection={{ ansible_connection
}}
- include_tasks: _remove_config.yaml
- block:
- name: Structure provided configuration into device specific commands
register: result
vyos.vyos.vyos_lldp_interfaces:
config:
- name: eth1
location:
civic_based:
country_code: US
ca_info:
- ca_type: 0
ca_value: ENGLISH
- name: eth2
location:
coordinate_based:
altitude: 2200
datum: WGS84
longitude: 222.267255W
latitude: 33.524449N
state: rendered
- name: Assert that correct set of commands were generated
assert:
that:
- "{{ rendered['commands'] | symmetric_difference(result['rendered'])\
\ |length == 0 }}"
always:
- include_tasks: _remove_config.yaml
|