diff --git a/feature/bgp/policybase/otg_tests/comm_match_action_test/bgp_comm_match_action_test.go b/feature/bgp/policybase/otg_tests/comm_match_action_test/bgp_comm_match_action_test.go index efcd63a5447..4e559009b88 100644 --- a/feature/bgp/policybase/otg_tests/comm_match_action_test/bgp_comm_match_action_test.go +++ b/feature/bgp/policybase/otg_tests/comm_match_action_test/bgp_comm_match_action_test.go @@ -197,7 +197,9 @@ func bgpCreateNbr(localAs, peerAs uint32, dut *ondatra.DUTDevice) *oc.NetworkIns pg := bgp.GetOrCreatePeerGroup(peerGrpName) pg.PeerAs = ygot.Uint32(ateAS) pg.PeerGroupName = ygot.String(peerGrpName) - pg.SetSendCommunityType([]oc.E_Bgp_CommunityType{oc.Bgp_CommunityType_STANDARD}) + if !deviations.SkipBgpSendCommunityType(dut) { + pg.SetSendCommunityType([]oc.E_Bgp_CommunityType{oc.Bgp_CommunityType_STANDARD}) + } as4 := pg.GetOrCreateAfiSafi(oc.BgpTypes_AFI_SAFI_TYPE_IPV4_UNICAST) as4.Enabled = ygot.Bool(true) as6 := pg.GetOrCreateAfiSafi(oc.BgpTypes_AFI_SAFI_TYPE_IPV6_UNICAST) @@ -529,7 +531,7 @@ func validateDutIPv4PrefixCommunitySet(t *testing.T, dut *ondatra.DUTDevice, bgp fptest.LogQuery(t, "Node BGP", statePath.State(), state) t.Logf("DUT: Could not find AdjRibInPost Community for Prefix %v", subnet) } - //TODO Validate Community for ipv4 prefixes on DUT + // TODO Validate Community for ipv4 prefixes on DUT } func validateATEIPv6PrefixCommunitySet(t *testing.T, ate *ondatra.ATEDevice, bgpPeerName, subnet string, wantCommunitySet []string) { @@ -576,7 +578,7 @@ func validateDutIPv6PrefixCommunitySet(t *testing.T, dut *ondatra.DUTDevice, bgp fptest.LogQuery(t, "Node BGP", statePath.State(), state) t.Logf("DUT: Could not find AdjRibInPost Community for Prefix %v", subnet) } - //TODO Validate Community for ipv6 prefixes on DUT + // TODO Validate Community for ipv6 prefixes on DUT } type TestResults struct { diff --git a/feature/bgp/policybase/otg_tests/comm_match_action_test/metadata.textproto b/feature/bgp/policybase/otg_tests/comm_match_action_test/metadata.textproto index d2237552f41..d8849cc7390 100644 --- a/feature/bgp/policybase/otg_tests/comm_match_action_test/metadata.textproto +++ b/feature/bgp/policybase/otg_tests/comm_match_action_test/metadata.textproto @@ -15,6 +15,7 @@ platform_exceptions: { interface_enabled: true bgp_conditions_match_community_set_unsupported: true bgp_actions_set_community_method_unsupported: true + skip_bgp_send_community_type: true } } platform_exceptions: {