cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
186
Views
0
Helpful
6
Replies

Yangsuit NETCONF Invalid xpath

dundient
Level 1
Level 1

Hello, i need help with this error.

photo_2024-05-02_21-52-21.jpg

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']

6 Replies 6

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.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Thank you for your response, I will try it

Marcel Zehnder
Spotlight
Spotlight

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.

Marcel Zehnder
Spotlight
Spotlight

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

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.

Maybe it's a combination yangsuite/module version. Just DM me (via https://community.cisco.com/t5/notes/privatenotespage)