12-06-2021 09:05 AM
Hi All,
I have to handle in my service template a situation where i sometimes need an authent key to bring up a bgp session and sometimes not, depending on the neighbor i need to bring a session with.
Would you perform this condition in the Yang model or the XML template ?
Thanks in advance,
Jerems
Solved! Go to Solution.
12-10-2021 08:18 AM
Hi,
Have you looked into using the if-else statements in your service model? (elif is coming in NSO 5.7 next week).
See the NSO Developer Guide, Templates chapter, Basic Principles section, Conditional Statements subsection.
Best regards
12-10-2021 08:18 AM
Hi,
Have you looked into using the if-else statements in your service model? (elif is coming in NSO 5.7 next week).
See the NSO Developer Guide, Templates chapter, Basic Principles section, Conditional Statements subsection.
Best regards
12-14-2021 04:06 AM
Thanks again Cohult, I'm going to have a look at this.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: