Fortinet white logo
Fortinet white logo

Administration Guide

Using meta field variables

Using meta field variables

You can use meta field variables in interface templates. When you create a meta field, a variable is automatically created for you. You can use the variable in the interface template.

For information about creating a meta field, see Meta Fields.

To use meta variables in interface templates:
  1. Go to Device Manager > Provisioning Templates.

    The widgets are displayed.

  2. Display the Interface widget.
    1. In the tree menu, go to System Templates > Default.
    2. From the Toggle Widgets menu, select Interface.

      The Interface widget is displayed.

  3. In the Interface widget, create a new Config Interface action that uses the variable.
    1. In the Interface widget, click +.
    2. In the Action list, select Config Interface.
    3. In the Model list, select all.
    4. In the Interface Name list, type port2.
    5. In the IP/Netmask box, type the variable with the IP/netmask, such as 192.162.$(storenumber).254/25, and click OK.

      Note that $(storenumber) is the variable for the meta field.

      The action is created.

Using meta field variables

Using meta field variables

You can use meta field variables in interface templates. When you create a meta field, a variable is automatically created for you. You can use the variable in the interface template.

For information about creating a meta field, see Meta Fields.

To use meta variables in interface templates:
  1. Go to Device Manager > Provisioning Templates.

    The widgets are displayed.

  2. Display the Interface widget.
    1. In the tree menu, go to System Templates > Default.
    2. From the Toggle Widgets menu, select Interface.

      The Interface widget is displayed.

  3. In the Interface widget, create a new Config Interface action that uses the variable.
    1. In the Interface widget, click +.
    2. In the Action list, select Config Interface.
    3. In the Model list, select all.
    4. In the Interface Name list, type port2.
    5. In the IP/Netmask box, type the variable with the IP/netmask, such as 192.162.$(storenumber).254/25, and click OK.

      Note that $(storenumber) is the variable for the meta field.

      The action is created.