diff options
author | omnom62 <75066712+omnom62@users.noreply.github.com> | 2025-02-01 00:45:48 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-31 09:45:48 -0500 |
commit | 563ee2480aeb3378ea05e1bed4d042afeb9b6e69 (patch) | |
tree | 98b6051fe55cf9eb25aeb3b67c2584eccf27a990 | |
parent | f7f5fb5aa303c9aa35b4a65b23ddeec4ab1c6dfd (diff) | |
download | vyos.vyos-563ee2480aeb3378ea05e1bed4d042afeb9b6e69.tar.gz vyos.vyos-563ee2480aeb3378ea05e1bed4d042afeb9b6e69.zip |
Fixed static_routes integration tests (#380)
- Merge latest
-rw-r--r-- | changelogs/fragments/T7015_static_routes_integration_tests.yaml | 3 | ||||
-rw-r--r-- | tests/integration/targets/vyos_static_routes/tests/cli/_populate.yaml | 22 |
2 files changed, 14 insertions, 11 deletions
diff --git a/changelogs/fragments/T7015_static_routes_integration_tests.yaml b/changelogs/fragments/T7015_static_routes_integration_tests.yaml new file mode 100644 index 00000000..001c9294 --- /dev/null +++ b/changelogs/fragments/T7015_static_routes_integration_tests.yaml @@ -0,0 +1,3 @@ +--- +minor_changes: + - static_routes - Fixed for v1.3- and 1.4+ diff --git a/tests/integration/targets/vyos_static_routes/tests/cli/_populate.yaml b/tests/integration/targets/vyos_static_routes/tests/cli/_populate.yaml index fdd6b1ac..52d760da 100644 --- a/tests/integration/targets/vyos_static_routes/tests/cli/_populate.yaml +++ b/tests/integration/targets/vyos_static_routes/tests/cli/_populate.yaml @@ -2,15 +2,15 @@ - ansible.builtin.include_tasks: _remove_config.yaml - name: Setup + vyos.vyos.vyos_config: + lines: + - set protocols static route 192.0.2.32/28 next-hop '192.0.2.10' + - set protocols static route 192.0.2.32/28 next-hop '192.0.2.9' + - set protocols static route 192.0.2.32/28 blackhole + - set protocols static route 192.0.2.32/28 + - set protocols static route6 2001:db8:1000::/36 next-hop '2001:db8:2000:2::1' + - set protocols static route6 2001:db8:1000::/36 next-hop '2001:db8:2000:2::2' + - set protocols static route6 2001:db8:1000::/36 blackhole distance '2' + - set protocols static route6 2001:db8:1000::/36 vars: - lines: >- - "set protocols static route 192.0.2.32/28 next-hop '192.0.2.10'\n - set protocols static route 192.0.2.32/28 next-hop '192.0.2.9'\n - set protocols static route 192.0.2.32/28 blackhole\n - set protocols static route 192.0.2.32/28\n - set protocols static route6 2001:db8:1000::/36 next-hop '2001:db8:2000:2::1'\n - set protocols static route6 2001:db8:1000::/36 next-hop '2001:db8:2000:2::2'\n - set protocols static route6 2001:db8:1000::/36 blackhole distance '2'\n - set protocols static route6 2001:db8:1000::/36" - ansible.netcommon.cli_config: - config: "{{ lines }}" + ansible_connection: ansible.netcommon.network_cli |