diff options
Diffstat (limited to 'tests/integration/targets/vyos_interface')
| -rw-r--r-- | tests/integration/targets/vyos_interface/tests/cli/net_interface.yaml | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/tests/integration/targets/vyos_interface/tests/cli/net_interface.yaml b/tests/integration/targets/vyos_interface/tests/cli/net_interface.yaml deleted file mode 100644 index 045daa25..00000000 --- a/tests/integration/targets/vyos_interface/tests/cli/net_interface.yaml +++ /dev/null @@ -1,55 +0,0 @@ ---- -- debug: msg="START vyos cli/net_interface.yaml on connection={{ ansible_connection - }}" - -- name: Run vyos lsmod command - register: lsmod_out - vyos.vyos.vyos_command: - commands: - - lsmod - -- name: Set up - delete interface - ansible.netcommon.net_interface: - name: eth1 - state: absent - -- name: Create interface using platform agnostic module - register: result - ansible.netcommon.net_interface: - name: eth1 - state: present - description: test-interface - -- assert: - that: - - result.changed == true - - '"set interfaces ethernet eth1" in result.commands' - - "\"set interfaces ethernet eth1 description 'test-interface'\" in result.commands" - -- name: Configure interface params using platform agnostic module - when: "'virtio_net' not in lsmod_out.stdout[0]" - register: result - ansible.netcommon.net_interface: - name: eth1 - state: present - description: test-interface-1 - speed: 100 - duplex: half - mtu: 256 - -- assert: - that: - - result.changed == true - - "\"set interfaces ethernet eth1 description 'test-interface-1'\" in result.commands" - - '"set interfaces ethernet eth1 speed 100" in result.commands' - - '"set interfaces ethernet eth1 duplex half" in result.commands' - - '"set interfaces ethernet eth1 mtu 256" in result.commands' - when: "'virtio_net' not in lsmod_out.stdout[0]" - -- name: teardown - delete interface - ansible.netcommon.net_interface: - name: eth1 - state: absent - -- debug: msg="END vyos cli/net_interface.yaml on connection={{ ansible_connection - }}" |
