cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
545
Views
0
Helpful
3
Replies
shgaiton
Cisco Employee

NSO - Badly formatted or nonexistent path

Hello All,

I used maapi context to perform “get” operation to fetch oper data from my XR device. I get an error after “live-status” on my container level like below

"badly formatted or nonexistent path (8): Bad path element “show-lcmodule” after: /devices/device/live-status"

path = “/devices/device{netconfd}/live-status/show-lcmodule/lcmode-gl/lcmode-slots/lcmode-slot{0}/running-lcmode”
running = maapi.get_elem(sock_maapi, th, path)

What am I doing wrong here?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
vleijon
Cisco Employee

The path looks weird, is ex1 really a valid path in the XR yang model?

A trick is to start by doing a show in ncs_cli and tab complete to the value you want and then do | display keypath to get a valid path.

View solution in original post

3 REPLIES 3
vleijon
Cisco Employee

The path looks weird, is ex1 really a valid path in the XR yang model?

A trick is to start by doing a show in ncs_cli and tab complete to the value you want and then do | display keypath to get a valid path.

View solution in original post

Sorry, I wanted to just give a reference yang. The actual path has been updated.
rogaglia
Cisco Employee

Always good to mention that you are using NETCONF XR as may not be obvious to other users of this forum.