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

Howto Handle conditions in a Service Template

Jerems
Spotlight
Spotlight

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

1 Accepted Solution

Accepted Solutions

cohult
Cisco Employee
Cisco Employee

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

View solution in original post

2 Replies 2

cohult
Cisco Employee
Cisco Employee

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

Jerems
Spotlight
Spotlight

Thanks again Cohult, I'm going to have a look at this.

Getting Started

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: