Skip to main content
bksol92
Staff
Staff
January 27, 2025

Technical Tip: Using metavariables for FortiGate's global VDOM settings

  • January 27, 2025
  • 0 replies
  • 639 views
Description This article describes what happens when a metavariable's per-device mapping is incorrectly configured.
Scope FortiManager v7.2, v7.4, v7.6.
Solution

FortiManager's metavariables allow the configuration of per-device mappings to accommodate distinct configurations for multiple devices.

 

In this scenario, FortiManager is currently managing one device with VDOM mode disabled:

 

non-vdom.PNG

 

A System Template has been assigned to this device, with a metavariable set to the Host Name field:

 

system-template.PNG

 

The metadata variable setting allows either the global or root VDOM to be mapped to the variable:  

 

global.PNG

 

In this case, the root VDOM is selected to be mapped:

 

meta-setting.PNG

 

This will result in an error when trying to load the device's Install Preview:

 

error.PNG

 

This is because the hostname set belongs to the global VDOM (all settings in the System Template belong to the global VDOM). To correct this, change the metavariable's per-device mapping to the global VDOM:

 

global.PNG

 

The Install Preview can then be loaded successfully after that:

 

hostname.PNG

 

Related article:

Technical Tip: New Meta Variables and their usage including Jinja scripting