diff --git a/test/integration/targets/nxos_ospf_vrf/tests/common/sanity.yaml b/test/integration/targets/nxos_ospf_vrf/tests/common/sanity.yaml index b4bbd40a2a3..423de8b89f4 100644 --- a/test/integration/targets/nxos_ospf_vrf/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_ospf_vrf/tests/common/sanity.yaml @@ -3,6 +3,10 @@ - debug: msg="Using provider={{ connection.transport }}" when: ansible_connection == "local" +- set_fact: def_met_default="default" + # CSCvi74876 Cannot remove default-metric + when: imagetag is not search("I7") + - name: "Setup: disable feature OSPF for initial cleanup" nxos_feature: feature: ospf @@ -73,7 +77,7 @@ nxos_ospf_vrf: &config2 ospf: 2 auto_cost: default - default_metric: default + default_metric: "{{def_met_default|default(omit)}}" log_adjacency: default timer_throttle_spf_hold: default passive_interface: false @@ -105,6 +109,7 @@ register: result - assert: *false + when: def_met_default is defined - name: Unconfigure ospf vrf nxos_ospf_vrf: &unconfig @@ -121,6 +126,7 @@ register: result - assert: *false + when: def_met_default is defined always: - name: "Disable feature OSPF"