cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1266
Views
0
Helpful
3
Replies

NSO - Badly formatted or nonexistent path

shgaiton
Cisco Employee
Cisco Employee

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
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
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.

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

rogaglia
Cisco Employee
Cisco Employee

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