cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

345
Views
0
Helpful
2
Replies
Jerems
Beginner

Howto Handle conditions in a Service Template

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

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

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
Beginner

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