create_device_interface
Create a VLAN subinterface on a managed FortiGate device and store its parent interface, VLAN ID, IP, and access settings in the device database for later installation.
Instructions
Create a VLAN subinterface in a device's device DB.
Reads back with get_device_interface_config; push to the FortiGate
with preview_install + install_device_settings.
Args: device: Managed device name name: New interface name (e.g. "vlan15") parent: Physical/aggregate parent interface (e.g. "internal") vlanid: VLAN id (1-4094) ip: Interface address, CIDR ("192.0.2.254/24") or "address netmask" allowaccess: Administrative access to allow (e.g. ["ping", "https"]) role: Interface role: lan, wan, dmz or undefined alias: Short alias shown in the GUI vdom: VDOM the interface belongs to (default "root") description: Interface description
Returns: Creation result
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | ||
| name | Yes | ||
| role | No | ||
| vdom | No | root | |
| alias | No | ||
| device | Yes | ||
| parent | Yes | ||
| vlanid | Yes | ||
| allowaccess | No | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||