diff options
Diffstat (limited to 'tests/integration/targets')
-rw-r--r-- | tests/integration/targets/vyos_ospfv3/tests/cli/_populate.yaml | 14 | ||||
-rw-r--r-- | tests/integration/targets/vyos_ospfv3/vars/main.yaml | 11 |
2 files changed, 14 insertions, 11 deletions
diff --git a/tests/integration/targets/vyos_ospfv3/tests/cli/_populate.yaml b/tests/integration/targets/vyos_ospfv3/tests/cli/_populate.yaml index c484a7f..3800c52 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 21fce2d..6226579 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 |