Hi Kent, I am using the -ii option in yanglint, which I am marks all the modules as implemented.
I wonder if the issue is with the fact that ‘softwareLoopback’ is an identity with a base of iana-if-type, while the ‘type’ node is of type ‘interface-type’, even though iana-if-type has a base of interface-type. Thanks Mahesh Jethanandani mjethanand...@gmail.com > On Aug 27, 2022, at 2:42 PM, Kent Watsen <k...@watsen.net> wrote: > > 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 <mjethanand...@gmail.com> >>> 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 >> mjethanand...@gmail.com >> >> >> >> >> >> >> _______________________________________________ >> netmod mailing list >> netmod@ietf.org >> https://www.ietf.org/mailman/listinfo/netmod
_______________________________________________ netmod mailing list netmod@ietf.org https://www.ietf.org/mailman/listinfo/netmod