cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
387
Views
0
Helpful
2
Replies

How to use device specific NED setting in XML template

nitinkgoud
Cisco Employee
Cisco Employee


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.

1 Accepted Solution

Accepted Solutions
2 Replies 2

huayyang
Cisco Employee
Cisco Employee

nitinkgoud
Cisco Employee
Cisco Employee

Thank you. This works now.