Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
arista-allan authored Oct 30, 2024
2 parents 7703ccc + 0e5657a commit b9179a8
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ func TestAdminDistance(t *testing.T) {
otgutils.WaitForARP(t, ts.ATE.OTG(), ts.ATETop, "IPv4")
otgutils.WaitForARP(t, ts.ATE.OTG(), ts.ATETop, "IPv6")

// b/374639328 #3 30 sec delay added for bgp and isis to come up
time.Sleep(30 * time.Second)
ts.ATE.OTG().StartTraffic(t)
// added 30 seconds for sleep for traffic flow
time.Sleep(30 * time.Second)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ func TestBGPSetup(t *testing.T) {
t.Logf("Enable Multipath")
pgUseMulitplePaths.Enabled = ygot.Bool(true)
t.Logf("Enable Maximum Paths")
bgp.GetOrCreateGlobal().GetOrCreateUseMultiplePaths().GetOrCreateEbgp().MaximumPaths = ygot.Uint32(maxPaths)
if deviations.EnableMultipathUnderAfiSafi(bs.DUT) {
gEBGP.MaximumPaths = ygot.Uint32(maxPaths)
} else {
bgp.GetOrCreateGlobal().GetOrCreateUseMultiplePaths().GetOrCreateEbgp().MaximumPaths = ygot.Uint32(maxPaths)
}
}
if tc.enableMultiAS && !deviations.SkipSettingAllowMultipleAS(bs.DUT) && deviations.SkipAfiSafiPathForBgpMultipleAs(bs.DUT) {
t.Logf("Enable MultiAS ")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ platform_exceptions: {
ipv4_missing_enabled: true
skip_setting_allow_multiple_as: true
skip_afi_safi_path_for_bgp_multiple_as: true
enable_multipath_under_afi_safi: true
}
}
platform_exceptions: {
Expand Down Expand Up @@ -47,4 +48,4 @@ platform_exceptions: {
skip_setting_allow_multiple_as: true
}
}
tags: TAGS_DATACENTER_EDGE
tags: TAGS_DATACENTER_EDGE
5 changes: 5 additions & 0 deletions internal/deviations/deviations.go
Original file line number Diff line number Diff line change
Expand Up @@ -1196,3 +1196,8 @@ func OperationalModeUnsupported(dut *ondatra.DUTDevice) bool {
func BgpSessionStateIdleInPassiveMode(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetBgpSessionStateIdleInPassiveMode()
}

// EnableMultipathUnderAfiSafi returns true for devices that do not support multipath under /global path and instead support under global/afi/safi path.
func EnableMultipathUnderAfiSafi(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetEnableMultipathUnderAfiSafi()
}
4 changes: 4 additions & 0 deletions proto/metadata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,10 @@ message Metadata {
// Cisco: b/376021545
bool bgp_session_state_idle_in_passive_mode = 229;

// EnableMultipathUnderAfiSafi returns true for devices that do not support multipath under /global path and instead support under global/afi/safi path
// CISCO: b/376241033
// CISCO: b/340859662
bool enable_multipath_under_afi_safi = 230;
// Reserved field numbers and identifiers.
reserved 84, 9, 28, 20, 90, 97, 55, 89, 19, 36, 35, 40, 173;
}
Expand Down
98 changes: 57 additions & 41 deletions proto/metadata_go_proto/metadata.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b9179a8

Please sign in to comment.