interface.create

Create virtual interfaces (Link Aggregation, VLAN)

Create a bridge interface:

> network interface create name=br0 type=BRIDGE bridge_members=enp0s3,enp0s4 aliases=”192.168.0.10”

Create a link aggregation interface that has multiple IP addresses in multiple subnets:

> network interface create name=bond0 type=LINK_AGGREGATION lag_protocol=LACP lag_ports=enp0s8,enp0s9 aliases=”192.168.0.20/30”,”192.168.1.20/30”

Create a DHCP-enabled VLAN interface

> network interface create name=vlan0 type=VLAN vlan_parent_interface=enp0s10 vlan_tag=10 vlan_pcp=4 ipv4_dhcp=true ipv6_auto=true

Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: data

data

Type: object
No Additional Properties

Name

Type: string

Generate a name if not provided based on type, e.g. "br0", "bond1", "vlan0".

Description

Type: string Default: ""

Type

Type: enum (of string)
Must be one of:
  • "BRIDGE"
  • "LINK_AGGREGATION"
  • "VLAN"

Ipv4 Dhcp

Type: boolean Default: false

Ipv6 Auto

Type: boolean Default: false

Aliases

Type: array of object Default: []

All items must be unique

No Additional Items
Each item of this array must be:

InterfaceCreateAlias

Type: object
No Additional Properties

Type

Type: enum (of string) Default: "INET"
Must be one of:
  • "INET"
  • "INET6"

Address


Type: const
Must be one of:
  • ""
Specific value: ""
Type: string

Netmask

Type: integer

Failover Critical

Type: boolean Default: false

Failover Group


Type: integer
Type: null

Failover Vhid


Type: integer

Value must be greater or equal to 1 and lesser or equal to 255

Type: null

Failover Aliases

Type: array of object Default: []
No Additional Items
Each item of this array must be:

InterfaceCreateFailoverAlias

Type: object
No Additional Properties

Type

Type: enum (of string) Default: "INET"
Must be one of:
  • "INET"
  • "INET6"

Address


Type: const
Must be one of:
  • ""
Specific value: ""
Type: string

Failover Virtual Aliases

Type: array of object Default: []
No Additional Items
Each item of this array must be:

InterfaceCreateFailoverAlias

Type: object
No Additional Properties

Type

Type: enum (of string) Default: "INET"
Must be one of:
  • "INET"
  • "INET6"

Address


Type: const
Must be one of:
  • ""
Specific value: ""
Type: string

Bridge Members

Type: array Default: []
No Additional Items
Each item of this array must be:
Type: object

Enable Learning

Type: boolean Default: true

Stp

Type: boolean Default: true

Lag Protocol

Type: enum (of string)
Must be one of:
  • "LACP"
  • "FAILOVER"
  • "LOADBALANCE"
  • "ROUNDROBIN"
  • "NONE"

Xmit Hash Policy

Type: enum (of null or string) Default: null
Must be one of:
  • "LAYER2"
  • "LAYER2+3"
  • "LAYER3+4"
  • null

Lacpdu Rate

Type: enum (of null or string) Default: null
Must be one of:
  • "SLOW"
  • "FAST"
  • null

Lag Ports

Type: array of string Default: []
No Additional Items
Each item of this array must be:
Type: string

Vlan Parent Interface

Type: string

Vlan Tag

Type: integer

Vlan Pcp


Type: integer

Value must be greater or equal to 0 and lesser or equal to 7

Type: null

Mtu

Default: null

Type: integer

Value must be greater or equal to 68 and lesser or equal to 9216

Type: null

InterfaceEntry

Type: object

Id

Type: string

Name

Type: string

Fake

Type: boolean

Type

Type: string

InterfaceEntryState

Type: object
No Additional Properties

Name

Type: string

Orig Name

Type: string

Description

Type: string

Mtu

Type: integer

Cloned

Type: boolean

Flags

Type: array of string
No Additional Items
Each item of this array must be:
Type: string

Nd6 Flags

Type: array
No Additional Items
Each item of this array must be:
Type: object

Capabilities

Type: array
No Additional Items
Each item of this array must be:
Type: object

Media Type

Type: string

Media Subtype

Type: string

Active Media Type

Type: string

Active Media Subtype

Type: string

Supported Media

Type: array
No Additional Items
Each item of this array must be:
Type: object

Media Options


Type: array
No Additional Items
Each item of this array must be:
Type: object
Type: null

Rx Queues

Type: integer

Tx Queues

Type: integer

Aliases

Type: array of object
No Additional Items
Each item of this array must be:

InterfaceEntryStateAlias

Type: object
No Additional Properties

Type

Type: string

Address

Type: string

Netmask


Type: string
Type: integer

Broadcast

Type: string

Vrrp Config

Default: []

Type: array
No Additional Items
Each item of this array must be:
Type: object
Type: null

Protocol


Type: string
Type: null

Ports

Type: array of object Default: []
No Additional Items
Each item of this array must be:

InterfaceEntryStatePort

Type: object
No Additional Properties

Name

Type: string

Flags

Type: array of string
No Additional Items
Each item of this array must be:
Type: string

Xmit Hash Policy

Default: null

Type: string
Type: null

Lacpdu Rate

Default: null

Type: string
Type: null

Parent


Type: string
Type: null

Tag


Type: integer
Type: null

Pcp


Type: integer
Type: null

Aliases

Type: array of object
No Additional Items
Each item of this array must be:

InterfaceEntryAlias

Type: object
No Additional Properties

Type

Type: string

Address

Type: string

Netmask


Type: string
Type: integer

Ipv4 Dhcp

Type: boolean

Ipv6 Auto

Type: boolean

Description

Type: string

Mtu


Type: integer
Type: null

Vlan Parent Interface


Type: string
Type: null

Vlan Tag


Type: integer
Type: null

Vlan Pcp


Type: integer
Type: null

Lag Protocol

Type: string

Lag Ports

Type: array of string Default: []
No Additional Items
Each item of this array must be:
Type: string

Bridge Members

Type: array of string Default: []
No Additional Items
Each item of this array must be:
Type: string

Enable Learning

Type: boolean

Additional Properties of any type are allowed.

Type: object


Required roles: NETWORK_INTERFACE_WRITE