Ensure that all modules defining identities are *implemented*. In yanglint, the -i parameter or passing each module on the command line causes them them be implemented.
K. > On Aug 27, 2022, at 12:20 AM, Mahesh Jethanandani <[email protected]> > wrote: > > I need some help figuring out why yanglint is giving me an error on the line > marked below. I am using yanglint version 2.0.241 > > <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces" > xmlns:ipv4="urn:ietf:params:xml:ns:yang:ietf-ip"> > <interface> > <name>loopback0</name> > <type > > xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">ianaift:softwareLoopback</type> > <—— This is where I get the error. > </interface> > </interfaces> > > libyang err : Invalid identityref "ianaift:softwareLoopback" value - unable > to map prefix to YANG schema. (Schema location > "/ietf-interfaces:interfaces/interface/type", data location > "/ietf-interfaces:interface[name='loopback0']", line number 10.) > > The interfaces module defines the type node as: > > leaf type { > type identityref { > base interface-type; > } > mandatory true; > > and softwareLoopback is defined in iana-if-type module as: > > identity softwareLoopback { > base iana-interface-type; > } > > with iana-interface-type defined as: > > identity iana-interface-type { > base if:interface-type; > description > "This identity is used as a base for all interface types > defined in the 'ifType definitions' registry."; > } > > Thanks > > Mahesh Jethanandani > [email protected] > > > > > > > _______________________________________________ > netmod mailing list > [email protected] > https://www.ietf.org/mailman/listinfo/netmod
_______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
