diff --git a/changelogs/fragments/fix_ospfv2_integration_test.yml b/changelogs/fragments/fix_ospfv2_integration_test.yml new file mode 100644 index 000000000..0ed82ac23 --- /dev/null +++ b/changelogs/fragments/fix_ospfv2_integration_test.yml @@ -0,0 +1,3 @@ +--- +trivial: + - ios_ospfv2 - fix initial_vrf_setup in integration tests which was not working due to missing parent attribute. diff --git a/tests/integration/targets/ios_ospfv2/tests/cli/_initial_vrf_setup.yaml b/tests/integration/targets/ios_ospfv2/tests/cli/_initial_vrf_setup.yaml index 89866641c..8439fa2f2 100644 --- a/tests/integration/targets/ios_ospfv2/tests/cli/_initial_vrf_setup.yaml +++ b/tests/integration/targets/ios_ospfv2/tests/cli/_initial_vrf_setup.yaml @@ -1,16 +1,9 @@ --- - name: Create and setup VRF configuration - vars: + cisco.ios.ios_config: lines: - - ip vrf blue - rd 100:1 - route-target export 100:1 - route-target import 100:1 - - exit - - ip vrf ospf_vrf - - rd 100:2 - - route-target export 100:2 - - route-target import 100:2 - - exit - cisco.ios.ios_config: - config: "{{ lines }}" + parents: + - ip vrf blue