10.1.15.12-06212024

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.

  1. In NI edit mode, click the icon and select Full Settings for Template.
     
  2. In the Full Settings for Template window, navigate to Macro Variables tab and you can add device variable or command variable.

  • Device Variables are Macro Variables used in NI diagnosis conditions. For example, Device Variables can be defined as BGP AS numbers.
  • Command Variables are Macro Variables used in CLI commands. For example, show $ospf_neighbor_ip. See Define Command Variable for more details.
     
  1. Macro variables can be used in diagnosis conditions, diagnosis notes, status code definition, CSV reports, and etc.