Skip to content

Commit

Permalink
Fixed error in NH addition (openconfig#3370)
Browse files Browse the repository at this point in the history
Next-hop needs to be either interface-ref + MAC or IP , it cant be
interface-ref+IP

"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."
  • Loading branch information
bkreddy143 authored and frasieroh committed Aug 13, 2024
1 parent 4a854d5 commit 24086c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func addNHGReferencingToDownPort(tcArgs *testArgs, wantACK fluent.ProgrammingRes

tcArgs.client.Modify().AddEntry(t,
fluent.NextHopEntry().WithNetworkInstance(deviations.DefaultNetworkInstance(tcArgs.dut)).
WithIndex(2000).WithInterfaceRef(p.Name()).WithIPAddress(atePort2.IPv4),
WithIndex(2000).WithIPAddress(atePort2.IPv4),
fluent.NextHopGroupEntry().WithNetworkInstance(deviations.DefaultNetworkInstance(tcArgs.dut)).
WithID(2000).AddNextHop(2000, 1),
fluent.IPv4Entry().WithNetworkInstance(deviations.DefaultNetworkInstance(tcArgs.dut)).
Expand Down

0 comments on commit 24086c0

Please sign in to comment.