cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
203
Views
0
Helpful
1
Replies
Highlighted
Beginner

Access onboarding info from template

Hello,

 

I was wondering if there is a way to access the data introduced at on-boarding time in order to populate a template.

 

Let's say we have provisioned these devices:

 

admin@ncs# show devices list
NAME     ADDRESS          DESCRIPTION   NED ID                 ADMIN STATE
--------------------------------------------------------------------------
Test1    172.70.41.252    -             juniper-junos-nc-4.5   unlocked

Test2    172.70.41.253    -             juniper-junos-nc-4.5   unlocked

 

We also have a service, with a parameter that is the peer-router. Applying the service to Test1 device would be something like:

 

admin@ncs# config
Entering configuration mode terminal
admin@ncs(config)# service1 Test1 peer-router Test2

 

Can we somehow in the service template reference the ADDRESS field of device Test2 in order to set, for example, the allowed LDP session peers of Test1?

 

Thanks.

 

1 REPLY 1
Beginner

Re: Access onboarding info from template

Never mind, I found the answer for myself:

 

{/../ncs:devices/ncs:device[name=/peer-router]/ncs:address}

 

Thanks