Skip to content

Commit

Permalink
fix ND RA test + added deviation for Arista (openconfig#3399)
Browse files Browse the repository at this point in the history
  • Loading branch information
self-maurya authored Aug 27, 2024
1 parent dacc1cb commit c4606ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ platform_exceptions: {
ipv6_router_advertisement_config_unsupported: true
}
}
platform_exceptions: {
platform: {
vendor: ARISTA
}
deviations: {
interface_enabled: true
}
}

0 comments on commit c4606ac

Please sign in to comment.