Using Compound Variable in Network Intent

Network Intent supports Compound Variable, which converts the single variable into different formats or calculate new variables using two or more existing single variables.

1.In the Define Variables tab in Network Intent edit mode, click Add Variables to define variables, then click All Variables.

2.In the pop-up window, click the button and select Add Compound Variable.

3.Define the Variable Name, Type, and Definition for the Compound Variable.

Name — Name can only contain letters, numbers, and underlines, and can only start with a letter or underline.

Type — The selection of the Type should be set according to the data type actually returned by compound variable or formula.

Definition — The Definition input supports two ways, one is mathematical operation, such as $var1 + $var2; the other is to call functions and see Appendix: Supported Functions in Network Intent for list of supported functions in Network Intent.

4.Click on OK and the Compound Variable is added as a new variable.