diff options
l--------- | plugins/modules/vyos_interface.py | 1 | ||||
l--------- | plugins/modules/vyos_l3_interface.py | 1 | ||||
-rw-r--r-- | plugins/modules/vyos_vlan.py | 1 | ||||
-rw-r--r-- | test/integration/targets/prepare_vyos_tests/tasks/main.yaml | 10 |
4 files changed, 13 insertions, 0 deletions
diff --git a/plugins/modules/vyos_interface.py b/plugins/modules/vyos_interface.py new file mode 120000 index 00000000..3459fa1b --- /dev/null +++ b/plugins/modules/vyos_interface.py @@ -0,0 +1 @@ +_vyos_interface.py
\ No newline at end of file diff --git a/plugins/modules/vyos_l3_interface.py b/plugins/modules/vyos_l3_interface.py new file mode 120000 index 00000000..961ef4e6 --- /dev/null +++ b/plugins/modules/vyos_l3_interface.py @@ -0,0 +1 @@ +_vyos_l3_interface.py
\ No newline at end of file diff --git a/plugins/modules/vyos_vlan.py b/plugins/modules/vyos_vlan.py index 6c0fad8c..1746382d 100644 --- a/plugins/modules/vyos_vlan.py +++ b/plugins/modules/vyos_vlan.py @@ -153,6 +153,7 @@ def map_obj_to_commands(updates, module): name = w["name"] address = w["address"] state = w["state"] + interfaces = w["interfaces"] obj_in_have = search_obj_in_list(vlan_id, have) diff --git a/test/integration/targets/prepare_vyos_tests/tasks/main.yaml b/test/integration/targets/prepare_vyos_tests/tasks/main.yaml new file mode 100644 index 00000000..494a1d26 --- /dev/null +++ b/test/integration/targets/prepare_vyos_tests/tasks/main.yaml @@ -0,0 +1,10 @@ +--- +- name: Ensure required interfaces are present in running-config + cli_config: + config: "{{ lines }}" + vars: + lines: | + set interfaces ethernet eth0 address dhcp + set interfaces ethernet eth1 + set interfaces ethernet eth2 + set interfaces loopback lo |