Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ func configureDUT(t *testing.T, dut *ondatra.DUTDevice) []string {
aggPath := d.Interface(aggID)
fptest.LogQuery(t, aggID, aggPath.Config(), aggInt)
gnmi.Replace(t, dut, aggPath.Config(), aggInt)
if deviations.ExplicitInterfaceInDefaultVRF(dut) || deviations.InterfaceRefInterfaceIDFormat(dut) {
if deviations.ExplicitInterfaceInDefaultVRF(dut){
Comment thread
priyaranjannanda marked this conversation as resolved.
Outdated
fptest.AssignToNetworkInstance(t, dut, aggID, deviations.DefaultNetworkInstance(dut), 0)
}
for _, port := range portList {
Expand Down Expand Up @@ -762,10 +762,11 @@ func configureDUTISIS(t *testing.T, dut *ondatra.DUTDevice, aggIDs []string) {
isisLevel2.Enabled = ygot.Bool(true)
}
for _, aggID := range aggIDs {
isisIntf := isis.GetOrCreateInterface(aggID)
intf := aggID
if deviations.InterfaceRefInterfaceIDFormat(dut) {
isisIntf = isis.GetOrCreateInterface(aggID + ".0")
intf = aggID + ".0"
}
isisIntf := isis.GetOrCreateInterface(intf)
isisIntf.GetOrCreateInterfaceRef().Interface = ygot.String(aggID)
isisIntf.GetOrCreateInterfaceRef().Subinterface = ygot.Uint32(0)

Expand Down Expand Up @@ -807,10 +808,10 @@ func changeMetric(t *testing.T, dut *ondatra.DUTDevice, intf string, metric uint
d := &oc.Root{}
netInstance := d.GetOrCreateNetworkInstance(deviations.DefaultNetworkInstance(dut))
isis := netInstance.GetOrCreateProtocol(oc.PolicyTypes_INSTALL_PROTOCOL_TYPE_ISIS, isisInstance).GetOrCreateIsis()
isisIntfLevel := isis.GetOrCreateInterface(intf).GetOrCreateLevel(2)
if deviations.InterfaceRefInterfaceIDFormat(dut) {
isisIntfLevel = isis.GetOrCreateInterface(intf + ".0").GetOrCreateLevel(2)
intf += ".0"
}
isisIntfLevel := isis.GetOrCreateInterface(intf).GetOrCreateLevel(2)
isisIntfLevelAfiv4 := isisIntfLevel.GetOrCreateAf(oc.IsisTypes_AFI_TYPE_IPV4, oc.IsisTypes_SAFI_TYPE_UNICAST)
isisIntfLevelAfiv4.Metric = ygot.Uint32(metric)
isisIntfLevelAfiv6 := isisIntfLevel.GetOrCreateAf(oc.IsisTypes_AFI_TYPE_IPV6, oc.IsisTypes_SAFI_TYPE_UNICAST)
Expand Down
Loading