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