05-02-2024 05:56 AM
Hello, i need help with this error.
I want to check segment routing information, but get this error:
ERROR: Invalid xpath:
/ios:native/ios:segment-routing/ios-segment-routing:traffic-eng/ios-segment-routing:interface/ios-segment-routing:metric
Unknown xpath namespace prefix "ios-segment-routing" on segment 3 -- known prefixes are ['None', 'cisco-semver', 'inet', 'ios', 'ios-features', 'ios-ifc', 'ios-types']
05-02-2024 06:55 AM
Looks like your error message shows the "ios-segment-routing" namespace prefix is not recognized on segment 3 of the XPath. The known prefixes are ['None', 'cisco-semver', 'inet', 'ios', 'ios-features', 'ios-ifc', 'ios-types']. It _might_ be due to the missing definition or import of the YANG module that contains the "ios-segment-routing" prefix.
Start by verifying that the YANG module is compatible with your device's IOS version and features.
Hope this helps.
05-04-2024 12:52 AM
Thank you for your response, I will try it
05-03-2024 12:36 AM - edited 05-03-2024 01:01 AM
Hi I'm facing the same issue on new yangsuite installs (for multiple modules) - I belive yangsuite does not import all YANG modules from the YANG-set. I need to look into this and may open an issue at https://github.com/CiscoDevNet/yangsuite/issues
I let you know as soon as I know more.
05-03-2024 10:41 AM - edited 05-03-2024 10:41 AM
So it looks like this kind of fault is raised depending on the yang module version used/imported in yangsuite.
https://github.com/YangModels/yang/tree/main/vendor/cisco/xe/17141 ==> Not working
https://github.com/YangModels/yang/tree/main/vendor/cisco/xe/17131 ==> Not working
https://github.com/YangModels/yang/tree/main/vendor/cisco/xe/1761 ==> Working
Try to use 1761 this one is working in my case.
HTH
Marcel
05-04-2024 12:56 AM
1761 is also not working for me (
Can I get your email address, please. Want to discuss your case, so maybe i can get more information about that error.
05-04-2024 02:20 AM
Maybe it's a combination yangsuite/module version. Just DM me (via https://community.cisco.com/t5/notes/privatenotespage)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide