R12.1-JA-2025June05
Macro Variable in Network Intent
NI supports Macro Variables, which are variables with a pre-defined default value. They can be used in cloning NI, NI diagnosis and CSV report, or in Network Intent Cluster (NIC) to help generate Member NI. They are treated as constants during NI execution.
- In NI edit mode, click the
icon and select Replication Settings.
- In the Replication Settings window, you can add command macro variable and device variable.
On the Intent Replication Logic Settings tab, define the command macro variables, which are macro variables used in CLI commands. For example, show $ospf_neighbor_ip. See Define Command Variable for more details.
- On the Advanced Settings tab, define device macro variables, which are used in NI diagnosis conditions. For example, device variables can be defined as BGP AS numbers.
- Macro variables can be used in diagnosis conditions, diagnosis notes, status code definition, CSV reports, and etc.