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
No Additional Items
Tuple Validation
Parameter 1: data
data
Type: objectNo Additional Properties
Name
Type: stringGenerate 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: falseIpv6 Auto
Type: boolean Default: falseAliases
Type: array of object Default: []All items must be unique
No Additional ItemsEach item of this array must be:
InterfaceCreateAlias
Type: objectNo Additional Properties
Type
Type: enum (of string) Default: "INET"Must be one of:
- "INET"
- "INET6"
Address
Must be one of:
- ""
""
Netmask
Type: integerFailover Critical
Type: boolean Default: falseFailover Group
Failover Vhid
Value must be greater or equal to 1
and lesser or equal to 255
Failover Aliases
Type: array of object Default: []No Additional Items
Each item of this array must be:
InterfaceCreateFailoverAlias
Type: objectNo Additional Properties
Type
Type: enum (of string) Default: "INET"Must be one of:
- "INET"
- "INET6"
Address
Must be one of:
- ""
""
Failover Virtual Aliases
Type: array of object Default: []No Additional Items
Each item of this array must be:
InterfaceCreateFailoverAlias
Type: objectNo Additional Properties
Type
Type: enum (of string) Default: "INET"Must be one of:
- "INET"
- "INET6"
Address
Must be one of:
- ""
""
Bridge Members
Type: array Default: []No Additional Items
Each item of this array must be:
Enable Learning
Type: boolean Default: trueStp
Type: boolean Default: trueLag Protocol
Type: enum (of string)Must be one of:
- "LACP"
- "FAILOVER"
- "LOADBALANCE"
- "ROUNDROBIN"
- "NONE"
Xmit Hash Policy
Type: enum (of null or string) Default: nullMust be one of:
- "LAYER2"
- "LAYER2+3"
- "LAYER3+4"
- null
Lacpdu Rate
Type: enum (of null or string) Default: nullMust be one of:
- "SLOW"
- "FAST"
- null
Lag Ports
Type: array of string Default: []No Additional Items
Each item of this array must be:
Vlan Parent Interface
Type: stringVlan Tag
Type: integerVlan Pcp
Value must be greater or equal to 0
and lesser or equal to 7
Mtu
Default: nullValue must be greater or equal to 68
and lesser or equal to 9216
InterfaceEntry
Type: objectId
Type: stringName
Type: stringFake
Type: booleanType
Type: stringInterfaceEntryState
Type: objectNo Additional Properties
Name
Type: stringOrig Name
Type: stringDescription
Type: stringMtu
Type: integerCloned
Type: booleanFlags
Type: array of stringNo Additional Items
Each item of this array must be:
Nd6 Flags
Type: arrayNo Additional Items
Each item of this array must be:
Capabilities
Type: arrayNo Additional Items
Each item of this array must be:
Link State
Type: stringMedia Type
Type: stringMedia Subtype
Type: stringActive Media Type
Type: stringActive Media Subtype
Type: stringSupported Media
Type: arrayNo Additional Items
Each item of this array must be:
Media Options
No Additional Items
Each item of this array must be:
Link Address
Type: stringPermanent Link Address
Hardware Link Address
Type: stringRx Queues
Type: integerTx Queues
Type: integerAliases
Type: array of objectNo Additional Items
Each item of this array must be:
InterfaceEntryStateAlias
Type: objectNo Additional Properties
Type
Type: stringAddress
Type: stringNetmask
Broadcast
Type: stringVrrp Config
Default: []No Additional Items
Each item of this array must be:
Protocol
Ports
Type: array of object Default: []No Additional Items
Each item of this array must be:
InterfaceEntryStatePort
Type: objectNo Additional Properties
Name
Type: stringFlags
Type: array of stringNo Additional Items
Each item of this array must be:
Xmit Hash Policy
Default: nullLacpdu Rate
Default: nullParent
Tag
Pcp
Aliases
Type: array of objectNo Additional Items
Each item of this array must be:
InterfaceEntryAlias
Type: objectNo Additional Properties
Type
Type: stringAddress
Type: stringNetmask
Ipv4 Dhcp
Type: booleanIpv6 Auto
Type: booleanDescription
Type: stringMtu
Vlan Parent Interface
Vlan Tag
Vlan Pcp
Lag Protocol
Type: stringLag Ports
Type: array of string Default: []No Additional Items
Each item of this array must be:
Bridge Members
Type: array of string Default: []No Additional Items
Each item of this array must be:
Enable Learning
Type: booleanAdditional Properties of any type are allowed.
Type: objectRequired roles: NETWORK_INTERFACE_WRITE