From c4606aca0258938f172de61da4c721d0e7bc07de Mon Sep 17 00:00:00 2001 From: Pramod Maurya Date: Tue, 27 Aug 2024 13:54:12 +0530 Subject: [PATCH] fix ND RA test + added deviation for Arista (#3399) --- .../disable_ipv6_nd_ra_test/disable_ipv6_nd_ra_test.go | 8 ++++---- .../otg_tests/disable_ipv6_nd_ra_test/metadata.textproto | 8 ++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/feature/interface/ip/ipv6_ND/otg_tests/disable_ipv6_nd_ra_test/disable_ipv6_nd_ra_test.go b/feature/interface/ip/ipv6_ND/otg_tests/disable_ipv6_nd_ra_test/disable_ipv6_nd_ra_test.go index 12714efd330..b332c3b3f3b 100644 --- a/feature/interface/ip/ipv6_ND/otg_tests/disable_ipv6_nd_ra_test/disable_ipv6_nd_ra_test.go +++ b/feature/interface/ip/ipv6_ND/otg_tests/disable_ipv6_nd_ra_test/disable_ipv6_nd_ra_test.go @@ -102,17 +102,17 @@ func configInterfaceDUT(i *oc.Interface, a *attrs.Attributes, dut *ondatra.DUTDe s6a := s6.GetOrCreateAddress(a.IPv6) s6a.PrefixLength = ygot.Uint8(plen6) routerAdvert := s6.GetOrCreateRouterAdvertisement() - routerAdvert.SetInterval(*ygot.Uint32(routerAdvertisementTimeInterval)) + routerAdvert.SetInterval(routerAdvertisementTimeInterval) if deviations.Ipv6RouterAdvertisementConfigUnsupported(dut) { - routerAdvert.SetSuppress(*ygot.Bool(routerAdvertisementDisabled)) + routerAdvert.SetSuppress(routerAdvertisementDisabled) } else { - routerAdvert.SetEnable(*ygot.Bool(false)) + routerAdvert.SetEnable(false) routerAdvert.SetMode(oc.RouterAdvertisement_Mode_ALL) } return i } -// Configures OTG interfaces to send and recieve ipv6 packets. +// Configures OTG interfaces to send and receive ipv6 packets. func configureOTG(t *testing.T, ate *ondatra.ATEDevice) gosnappi.Config { topo := gosnappi.NewConfig() t.Logf("Configuring OTG port1") diff --git a/feature/interface/ip/ipv6_ND/otg_tests/disable_ipv6_nd_ra_test/metadata.textproto b/feature/interface/ip/ipv6_ND/otg_tests/disable_ipv6_nd_ra_test/metadata.textproto index 0ef0c0fd1e3..e16c5587870 100644 --- a/feature/interface/ip/ipv6_ND/otg_tests/disable_ipv6_nd_ra_test/metadata.textproto +++ b/feature/interface/ip/ipv6_ND/otg_tests/disable_ipv6_nd_ra_test/metadata.textproto @@ -13,3 +13,11 @@ platform_exceptions: { ipv6_router_advertisement_config_unsupported: true } } +platform_exceptions: { + platform: { + vendor: ARISTA + } + deviations: { + interface_enabled: true + } +}