Skip to content

Commit

Permalink
- RT-5.9 disable_ipv6_nd_ra_test changes incorporated (openconfig#3413)
Browse files Browse the repository at this point in the history
- Updated metadata.textproto
  -vender check added for NOKIA
  -Added deviations explicit_interface_in_default_vrf & interface_enabled

- Updated disable_ipv6_nd_ra_test.go
  - Enabled ExplicitInterfaceInDefaultVRF check
  - Removed set mode RouterAdvertisement_Mode_ALL.

“Removed the ‘set mode All’ configuration for IPv6 Router Advertisements due to issue openconfig#2981.

Refer issue - openconfig#2981

"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
ampattan authored Sep 17, 2024
1 parent 1496796 commit 4b46493
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ func configureDUT(t *testing.T, dut *ondatra.DUTDevice) {
gnmi.Replace(t, dut, d.Interface(p1.Name()).Config(), configInterfaceDUT(p1, &dutSrc, dut))
p2 := dut.Port(t, "port2")
gnmi.Replace(t, dut, d.Interface(p2.Name()).Config(), configInterfaceDUT(p2, &dutDst, dut))
if deviations.ExplicitInterfaceInDefaultVRF(dut) {
fptest.AssignToNetworkInstance(t, dut, p1.Name(), deviations.DefaultNetworkInstance(dut), 0)
fptest.AssignToNetworkInstance(t, dut, p2.Name(), deviations.DefaultNetworkInstance(dut), 0)
}
}

// Configures the given DUT interface.
Expand All @@ -101,7 +105,6 @@ func configInterfaceDUT(p *ondatra.Port, a *attrs.Attributes, dut *ondatra.DUTDe
routerAdvert.SetSuppress(routerAdvertisementDisabled)
} else {
routerAdvert.SetEnable(false)
routerAdvert.SetMode(oc.RouterAdvertisement_Mode_ALL)
}
return i
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,12 @@ platform_exceptions: {
ipv6_router_advertisement_interval_unsupported: true
}
}
platform_exceptions: {
platform: {
vendor: NOKIA
}
deviations: {
explicit_interface_in_default_vrf: true
interface_enabled: true
}
}

0 comments on commit 4b46493

Please sign in to comment.