Skip to content

OC Does not exist for deviation: mpls_unsupported #5055

@rohit-rp

Description

@rohit-rp

func MplsConfig(t *testing.T, dut *ondatra.DUTDevice) {
if deviations.MplsOCUnsupported(dut) {
switch dut.Vendor() {
case ondatra.ARISTA:
helpers.GnmiCLIConfig(t, dut, "mpls ip")
default:
t.Logf("Unsupported vendor %s for native command support for deviation 'mpls ip'", dut.Vendor())
}
} else {
t.Log("Currently do not have support to enable Mpls through OC, need to uncomment once implemented")
// TODO: Currently do not have support to enable Mpls through OC, need to uncomment once implemented.
// d := &oc.Root{}
// ni := d.GetOrCreateNetworkInstance(deviations.DefaultNetworkInstance(dut))
// mpls := ni.GetOrCreateMpls()
// mpls.Enabled = ygot.Bool(true)
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions