summaryrefslogtreecommitdiff
path: root/tests/integration/targets/prepare_vyos_tests/tasks/main.yaml
diff options
context:
space:
mode:
authorNilashish Chakraborty <nilashishchakraborty8@gmail.com>2024-06-25 14:54:01 +0530
committerGitHub <noreply@github.com>2024-06-25 14:54:01 +0530
commitb872b6f21d14ff10c221d84217eb568318e9ad8b (patch)
tree0aacdea877a7e2b209735cd0f7c0b9d62a9446f7 /tests/integration/targets/prepare_vyos_tests/tasks/main.yaml
parent37baff3d4d547911bec1387218edfd477ca79062 (diff)
downloadvyos.vyos-b872b6f21d14ff10c221d84217eb568318e9ad8b.tar.gz
vyos.vyos-b872b6f21d14ff10c221d84217eb568318e9ad8b.zip
`vyos.vyos` is no longer deprecated! 🎉 (#348)
* Remove deprecation notice for vyos.vyos Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * Add changelog Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * fix review comments Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * chore: auto fixes from pre-commit.com hooks --------- Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'tests/integration/targets/prepare_vyos_tests/tasks/main.yaml')
-rw-r--r--tests/integration/targets/prepare_vyos_tests/tasks/main.yaml14
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/integration/targets/prepare_vyos_tests/tasks/main.yaml b/tests/integration/targets/prepare_vyos_tests/tasks/main.yaml
index c5b0d54..2ed8d8c 100644
--- a/tests/integration/targets/prepare_vyos_tests/tasks/main.yaml
+++ b/tests/integration/targets/prepare_vyos_tests/tasks/main.yaml
@@ -1,10 +1,14 @@
---
- name: Ensure required interfaces are present in running-config
vars:
- lines:
- "set interfaces ethernet eth0 address dhcp\nset interfaces ethernet eth0\
- \ speed auto\nset interfaces ethernet eth0 duplex auto\nset interfaces ethernet\
- \ eth1\nset interfaces ethernet eth2\ndelete interfaces loopback lo\n"
- ignore_errors: true # noqa ignore-errors
+ lines: |-
+ set interfaces ethernet eth0 address dhcp
+ set interfaces ethernet eth0 speed auto
+ set interfaces ethernet eth0 duplex auto
+ set interfaces ethernet eth1
+ set interfaces ethernet eth2
+ delete interfaces loopback lo
+ ignore_errors: "{{ result.failed }}"
+ register: result
ansible.netcommon.cli_config:
config: "{{ lines }}"