R12 Publication-2025July16
Define Macro Variables for Seed Command in Auto Intent Wizard
The macro variables for seed command can be defined by completing the following steps:
- Load Command: By default, CLI commands, Config, API and SNMP are automatically loaded into the table nodes. You can define command qualification for each item in this table.
- Define Macro Variable: The device and the seed command with macro variables are displayed in the form of a table in the upper area of the Define Macro Variables and Rules for Their Substitution block. Select an entry from the table, then the UI for defining macro variable will display. Variable type, default value, lookup data, prompt for input, and hint can be defined here.
- Template Command: By default, template Commands are the same as Seed CLI Commands. Changing some text that starts with “$” will automatically convert it to a macro variable.
- Define Macro Variable: When the macro variables are displayed in the bottom area, you can define/modify the type, default value, lookup data, prompt for input, and hint. The parameters defined here are described in the table below:PropertyDescription
Macro Variable Variable Name (defined in the template CLI command text). Type The data type of macro variable. Default Value The default value of macro variable. Lookup Data for Target Device Details are described below. Lookup Data for Target Path Details are described below. Prompt for Input Define the prompt for input when it is used in the Auto Intent pane. Hint Define the hint when it is used in the Auto Intent pane.
It is noted that the following two settings are made for device-based NIT and Path-based NIT, respectively.
- Lookup Data for Target Devices (when Device-based Replication is selected): Define the value bound to the macro variable for decoding devices. You can specify to use the default value or data in ADT column for intent decoding.
- Use default value: Directly click Use Default Value from the drop-down menu of the Lookup Data for Target Device field.
- Select ADT Column: Select variables in ADT as the target device data.
a. Click Select ADT Column from the drop-down menu of the Lookup Data for Target Device field.
b. Select ADT columns to use the values in the column as macro variable value.
c. Click OK to finish the selection.Tip: If the value for macro variable is not satisfactory, Click Clear to configure macro variables from start.
- Lookup Data for Target Path (when Path-based Replication is selected): As shown in the screenshot below, the sources of data for macro variable include:
- Path Variable
- Path Device Variable
- Data in ADT Column: Click Select ADT Column, then select ADT column from the Select ADT Column dialog box as source.
Note: A path NIT takes path parameters such as source/destination IP as value of the macro variables defined in intent template.
- Preview (This functionality only applies to device-based replication): When the macro variables are bound with ADT columns, Click Preview in the Define Macro Variables and Rules for Their Substitution block to preview the corresponding value assigned to different macro variables in all selected ADTs for different devices.