Skip to content

TE-14.2 fix logics & added repaired_vrf#4531

Open
snaragund wants to merge 10 commits intoopenconfig:mainfrom
nokia:SND-te14dot2
Open

TE-14.2 fix logics & added repaired_vrf#4531
snaragund wants to merge 10 commits intoopenconfig:mainfrom
nokia:SND-te14dot2

Conversation

@snaragund
Copy link
Copy Markdown
Contributor

@snaragund snaragund commented Sep 1, 2025

  • Added vrf_repaired as vrf_r config without vrf_rd is not logical.
  • Under deviations.ExplicitInterfaceInDefaultVRF(dut) included DefaultVRFIPv4NHCount while configuring NHs.
  • Removed ! with deviations.DecapNHWithNextHopNIUnsupported, we configure decapNH without nexthop NI.
  • Under BuildVRFCfonfig function added missing code which was included in TE-14.1.
  • For Nokia vendor added decapIPv4ScaleCount=128.
  • Added override_default_nh_scale deviation.
  • Existing scale.go configures 29254 NHs where as many NHs are unused so changed logic to configure NHs which are needed(9511 NHs).

"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."

- Added vrf_repaired as vrf_r config without vrf_rd is not logical.
- Removed ! with deviations.DecapNHWithNextHopNIUnsupported.
- Under deviations.ExplicitInterfaceInDefaultVRF(dut) included DefaultVRFIPv4NHCount while configuring NHs.
- Under BuildVRFCfonfig function added missing code which was included in TE-14.1.
- For Nokia vendor added decapIPv4ScaleCount=128.
- Added `override_default_nh_scale` deviation.
- Existing scale.go configures 29254 NHs where as many NHs are unused so changed logic to configure NHs which are needed(9511 NHs).

"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."
@snaragund snaragund requested review from a team as code owners September 1, 2025 16:14
@OpenConfigBot
Copy link
Copy Markdown

OpenConfigBot commented Sep 1, 2025

Pull Request Functional Test Report for #4531 / f5faabd

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
TE-14.2: encap and decap scale
Cisco 8000E status
TE-14.2: encap and decap scale
Cisco XRd status
TE-14.2: encap and decap scale
Juniper ncPTX status
TE-14.2: encap and decap scale
Nokia SR Linux status
TE-14.2: encap and decap scale
Openconfig Lemming status
TE-14.2: encap and decap scale

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
TE-14.2: encap and decap scale
Cisco 8808 status
TE-14.2: encap and decap scale
Juniper PTX10008 status
TE-14.2: encap and decap scale
Nokia 7250 IXR-10e status
TE-14.2: encap and decap scale

Help

@coveralls
Copy link
Copy Markdown

coveralls commented Sep 1, 2025

Pull Request Test Coverage Report for Build 20075354414

Details

  • 0 of 3 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 10.047%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/tescale/scale.go 0 3 0.0%
Totals Coverage Status
Change from base Build 20074033946: 0.0%
Covered Lines: 2227
Relevant Lines: 22165

💛 - Coveralls

@snaragund
Copy link
Copy Markdown
Contributor Author

@ram-mac could you please review

@ksgireesha ksgireesha requested a review from ram-mac October 29, 2025 09:22
)
if idx != 0 && idx%reEncapNHGRatio == 0 {
vrfDefault.NHGs = append(vrfDefault.NHGs, nhgEntry)
if idx%reEncapNHGRatio == 0 {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@snaragund - I know you have optimized the NH scale usage. But i would like to keep this scale on the device for now and not make any changes. Let there be unutilized NH, it is not impacting the functionality anyways.

Copy link
Copy Markdown
Contributor Author

@snaragund snaragund Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ram-mac Reverted back without optimization, now it will have 29254 NHs, 1543 NHGs. With optimized code it was 9511 NHs, 1287 NHGs.

func installDecapEntry(t *testing.T, args *testArgs, nhIndex, nhgIndex uint64, prefix string) {
decapNH := fluent.NextHopEntry().WithNetworkInstance(deviations.DefaultNetworkInstance(args.dut)).
WithIndex(nhIndex).WithDecapsulateHeader(fluent.IPinIP)
if !deviations.DecapNHWithNextHopNIUnsupported(args.dut) {
Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Contributor Author

@snaragund snaragund Nov 3, 2025

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.

Copy link
Copy Markdown
Contributor

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 ?

snaragund and others added 2 commits November 3, 2025 17:12
-Reverting changes of deviation definition as per comment by Ram.

"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."
@snaragund snaragund requested a review from ram-mac November 3, 2025 12:43
snaragund and others added 2 commits November 10, 2025 21:39
"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."
@snaragund snaragund removed their assignment Nov 10, 2025
@snaragund snaragund requested a review from nikki-blr March 16, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants