diff options
3 files changed, 17 insertions, 11 deletions
diff --git a/changelogs/fragments/T7012_ospfv3_integration_tests.yaml b/changelogs/fragments/T7012_ospfv3_integration_tests.yaml new file mode 100644 index 00000000..b8f1f8b3 --- /dev/null +++ b/changelogs/fragments/T7012_ospfv3_integration_tests.yaml @@ -0,0 +1,3 @@ +--- +trivial: + - vyos_ospfv2 - fix intergration test suite. diff --git a/tests/integration/targets/vyos_ospfv3/tests/cli/_populate.yaml b/tests/integration/targets/vyos_ospfv3/tests/cli/_populate.yaml index c484a7fb..3800c52c 100644 --- a/tests/integration/targets/vyos_ospfv3/tests/cli/_populate.yaml +++ b/tests/integration/targets/vyos_ospfv3/tests/cli/_populate.yaml @@ -2,15 +2,7 @@ - ansible.builtin.include_tasks: _remove_config.yaml - name: Setup + vyos.vyos.vyos_config: + lines: "{{ populate_commands }}" vars: - lines: >- - "set protocols ospfv3 area 2 export-list 'export1' - \n set protocols ospfv3 area 2 import-list 'import1' - \n set protocols ospfv3 area 2 range '2001:db10::/32' - \n set protocols ospfv3 area 2 range '2001:db20::/32' - \n set protocols ospfv3 area 2 range '2001:db30::/32' - \n set protocols ospfv3 area 3 range '2001:db40::/32' - \n set protocols ospfv3 parameters router-id '192.0.2.10' - \n set protocols ospfv3 redistribute 'bgp'" - ansible.netcommon.cli_config: - config: "{{ lines }}" + ansible_connection: ansible.netcommon.network_cli diff --git a/tests/integration/targets/vyos_ospfv3/vars/main.yaml b/tests/integration/targets/vyos_ospfv3/vars/main.yaml index 21fce2dc..6226579e 100644 --- a/tests/integration/targets/vyos_ospfv3/vars/main.yaml +++ b/tests/integration/targets/vyos_ospfv3/vars/main.yaml @@ -66,6 +66,17 @@ populate: router_id: 192.0.2.10 redistribute: - route_type: bgp + +populate_commands: + - set protocols ospfv3 area 2 export-list 'export1' + - set protocols ospfv3 area 2 import-list 'import1' + - set protocols ospfv3 area 2 range '2001:db10::/32' + - set protocols ospfv3 area 2 range '2001:db20::/32' + - set protocols ospfv3 area 2 range '2001:db30::/32' + - set protocols ospfv3 area 3 range '2001:db40::/32' + - set protocols ospfv3 parameters router-id '192.0.2.10' + - set protocols ospfv3 redistribute 'bgp' + replaced: commands: - delete protocols ospfv3 area 2 range 2001:db20::/32 |