03-29-2024 09:47 AM
Hello All,
I am using the following NED setting in NSO.
devices device DEVICE_NAME ned-settings api class-map-match-multi-line-format false
I would like to use this device specific NED setting in the if statement of my template file. I have tried a few options but they did not work.
<?if {/devices/device[name=/device]/ned-settings/cisco-ios-meta:cisco-ios/api/class-map-match-multi-line-format}?>
<?if {/devices/device[name=current()/device]/ned-settings/cisco-ios-meta:cisco-ios/api/class-map-match-multi-line-format}?>
Any help will be greatly appreciated.
Solved! Go to Solution.
04-02-2024 03:37 AM
does <?set-root-node {/}?> help?
refer to https://developer.cisco.com/docs/nso/guides/#!templates/xpath-context-in-templates
04-02-2024 03:37 AM
does <?set-root-node {/}?> help?
refer to https://developer.cisco.com/docs/nso/guides/#!templates/xpath-context-in-templates
04-02-2024 09:41 AM
Thank you. This works now.
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