Skip to content

Commit

Permalink
fix bgp_comm_match_action_test.go for nokia (openconfig#3157)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsadhasivam authored and bkreddy143 committed Jul 17, 2024
1 parent 7cbf636 commit eeee8a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit eeee8a1

Please sign in to comment.