Adding meta fields to SD-WAN templates
After you create meta fields, add the meta fields to the SD-WAN template for interfaces to use.
To add meta fields to SD-WAN templates:
- Go to Device Manager > Provisioning Templates > SD-WAN Templates.
The SD-WAN template named sdwan-branch is displayed.
- Double-click the SD-WAN template to open it for editing.
In the Interface Members section, the interfaces are displayed.
- Add the $(gateway) meta field to interfaces:
- Double-click the port2 interface to open it for editing.
The Edit SD-WAN Interface Member dialog box is displayed.
- In the Gateway IP box, select $(gateway), and click OK.
- Repeat this procedure for port3.
- Double-click the port2 interface to open it for editing.
- Add the $(vpn-dc) meta field to interfaces:
- Double-click the vpn-dc1-1 interface to open it for editing.
The Edit SD-WAN Interface Member dialog box is displayed.
- In the Gateway IP box, select $(vpn-dc), and click OK.
- Repeat this procedure for vpn-dc1-2.
The interfaces now use meta fields to define gateway IP addresses.
- Double-click the vpn-dc1-1 interface to open it for editing.
- Click OK to save the template.
- Install the policy to the FortiGate devices.
The configuration should not change. You can review the installation preview before installing to confirm no configuration changes.