Skip to content

Commit

Permalink
deviation for cisco 1.51 multipath only under global/afi/safi/ (openc…
Browse files Browse the repository at this point in the history
  • Loading branch information
ram-mac authored Oct 30, 2024
1 parent d4c51f0 commit 0e5657a
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 43 deletions.
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 0e5657a

Please sign in to comment.