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 ampattan committed Aug 23, 2024
1 parent 363f8e8 commit a560ad1
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 a560ad1

Please sign in to comment.