Skip to content

Commit

Permalink
resolving conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
cprabha committed Dec 24, 2024
1 parent ef74469 commit 9718afd
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions feature/gribi/otg_tests/static_lsp_test/static_lsp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ func configureStaticLSP(t *testing.T, dut *ondatra.DUTDevice, lspName string, in
}
} else {
d := &oc.Root{}
dni := deviations.DefaultNetworkInstance(dut)
defPath := gnmi.OC().NetworkInstance(deviations.DefaultNetworkInstance(dut))
gnmi.Update(t, dut, defPath.Config(), &oc.NetworkInstance{
Name: ygot.String(deviations.DefaultNetworkInstance(dut)),
Type: oc.NetworkInstanceTypes_NETWORK_INSTANCE_TYPE_DEFAULT_INSTANCE,
})
dni := deviations.DefaultNetworkInstance(dut)
defPath := gnmi.OC().NetworkInstance(deviations.DefaultNetworkInstance(dut))
gnmi.Update(t, dut, defPath.Config(), &oc.NetworkInstance{
Name: ygot.String(deviations.DefaultNetworkInstance(dut)),
Type: oc.NetworkInstanceTypes_NETWORK_INSTANCE_TYPE_DEFAULT_INSTANCE,
})

mplsCfg := d.GetOrCreateNetworkInstance(deviations.DefaultNetworkInstance(dut)).GetOrCreateMpls()
staticMplsCfg := mplsCfg.GetOrCreateLsps().GetOrCreateStaticLsp(lspName)
staticMplsCfg.GetOrCreateEgress().SetIncomingLabel(oc.UnionUint32(incomingLabel))
Expand Down Expand Up @@ -297,7 +297,6 @@ func ValidatePackets(t *testing.T,
// increment the unexpected packet counter
unexpectedMPLSPackets++
t.Errorf("Found MPLS packet with label: %v", mpls.Label)

}
}
}
Expand Down

0 comments on commit 9718afd

Please sign in to comment.