10-16-2018 01:47 PM - edited 10-16-2018 06:42 PM
Hi,
I am seeing the following error when trying to compile. Can you point me what I am doing wrong? the associated YANG Model lines (37 & 50 ) are :
path "/ncs:devices/ncs:device[name = current()/../sourcedevice]/config/nx:interface/Ethernet/name";
path "/ncs:devices/ncs:device[name = current()/../peerdevicename]/config/nx:interface/Ethernet/name";
the complete yang module is attached.
Solved! Go to Solution.
10-17-2018 09:35 AM - edited 10-17-2018 09:37 AM
ok. it compiled successfully when i tried:
path "/ncs:devices/ncs:device[ncs:name = current()/../sourcedevice]/ncs:config/nx:interface/nx:Ethernet/nx:name";
the ncs:config is bugging me though. should have been nx:config. any suggestion?
10-17-2018 01:19 AM
try this
path "/ncs:devices/ncs:device[ncs:name = current()/../sourcedevice]/config/nx:interface/Ethernet/name";
10-17-2018 08:46 AM - edited 10-17-2018 09:21 AM
Hi,
thanks for the reply. I tried that (ncs:name). That seems to take care of the "name" node issue. But another node starts raising similar issue. I tried "nx:config" to no avail. currently the path exress. is :
path "/ncs:devices/ncs:device[ncs:name = current()/../sourcedevice]/config/nx:interface/Ethernet/name";
10-17-2018 09:35 AM - edited 10-17-2018 09:37 AM
ok. it compiled successfully when i tried:
path "/ncs:devices/ncs:device[ncs:name = current()/../sourcedevice]/ncs:config/nx:interface/nx:Ethernet/nx:name";
the ncs:config is bugging me though. should have been nx:config. any suggestion?
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