-
Notifications
You must be signed in to change notification settings - Fork 208
TE-14.2 fix logics & added repaired_vrf #4531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 3 commits
4e70116
e3392f4
f8a5112
f160a20
3845c74
090bb8d
df75e32
9bdce67
e8a5c56
f5faabd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -215,29 +215,26 @@ func BuildVRFConfig(dut *ondatra.DUTDevice, egressIPs []string, param Param) []* | |
| // * Each NH has one entry for decap and encap | ||
| // * All NHG has a backup for decap then goto default VRF. | ||
| reEncapNHGRatio := param.V4TunnelCount / param.V4ReEncapNHGCount | ||
| nhgID = idPool.NextNHGID() | ||
| nhgEntry := fluent.NextHopGroupEntry().WithID(nhgID).WithNetworkInstance(defaultVRF).WithBackupNHG(nhgDecapToDefault) | ||
| for idx, ip := range v4TunnelIPAddrs.AllIPs() { | ||
| nhID = idPool.NextNHID() | ||
| vrfDefault.NHs = append(vrfDefault.NHs, | ||
| fluent.NextHopEntry().WithIndex(nhID).WithDecapsulateHeader(fluent.IPinIP).WithEncapsulateHeader(fluent.IPinIP). | ||
| WithNetworkInstance(defaultVRF).WithIPinIP(tunnelSrcIP, v4TunnelIPAddrs.AllIPs()[(idx+1)%len(v4TunnelIPAddrs.AllIPs())]), | ||
| ) | ||
| if idx != 0 && idx%reEncapNHGRatio == 0 { | ||
| vrfDefault.NHGs = append(vrfDefault.NHGs, nhgEntry) | ||
| if idx%reEncapNHGRatio == 0 { | ||
|
||
|
|
||
| nhID = idPool.NextNHID() | ||
| vrfDefault.NHs = append(vrfDefault.NHs, | ||
| fluent.NextHopEntry().WithIndex(nhID).WithDecapsulateHeader(fluent.IPinIP).WithEncapsulateHeader(fluent.IPinIP). | ||
| WithNetworkInstance(defaultVRF).WithNextHopNetworkInstance(VRFRD).WithIPinIP(tunnelSrcIP, v4TunnelIPAddrs.AllIPs()[(idx+1)%len(v4TunnelIPAddrs.AllIPs())]), | ||
| ) | ||
| nhgID = idPool.NextNHGID() | ||
| nhgEntry = fluent.NextHopGroupEntry().WithID(nhgID).WithNetworkInstance(defaultVRF).WithBackupNHG(nhgDecapToDefault) | ||
| nhgEntry := fluent.NextHopGroupEntry().WithID(nhgID).WithNetworkInstance(defaultVRF).WithBackupNHG(nhgDecapToDefault).AddNextHop(nhID, 1) | ||
| vrfDefault.NHGs = append(vrfDefault.NHGs, nhgEntry) | ||
| } | ||
| nhgEntry = nhgEntry.AddNextHop(nhID, 1) | ||
| vrfRConf.V4Entries = append(vrfRConf.V4Entries, | ||
| fluent.IPv4Entry().WithPrefix(ip+"/32").WithNextHopGroup(nhgID).WithNetworkInstance(VRFR).WithNextHopGroupNetworkInstance(defaultVRF), | ||
| ) | ||
| } | ||
| vrfDefault.NHGs = append(vrfDefault.NHGs, nhgEntry) | ||
|
|
||
| v4VIPAddrs = NewIPPool(iputil.GenerateIPs(V4VIPIPBlock, (param.V4TunnelNHGCount*param.V4TunnelNHGSplitCount)+2)) | ||
|
|
||
| // VRF_RP | ||
| // VRF_RD | ||
|
|
||
| // * do the same as Transit VRF | ||
| // * but with decap to default NHG | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@snaragund - Why are we removing this deviation statement? Also, I see this deviation is not used by Nokia. This break other vendor tests. Can we please revert this change?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ram-mac Deviation statement default value is false hence deviation should have been defined with else condition instead of !deviation. We support decap NH without NI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ram-mac what are next steps on this PR ?