interface.update¶
Update Interface of id.
Update network interface static IP:
> network interface update enp0s3 aliases=”192.168.0.10”
No Additional Items
Tuple Validation
Parameter 1: id
id
Type: stringID of the interface to update.
Parameter 2: data
data
Type: objectUpdated interface configuration data.
No Additional PropertiesName
Type: stringGenerate a name if not provided based on type
, e.g. "br0", "bond1", "vlan0".
Description
Type: stringHuman-readable description of the interface.
Ipv4 Dhcp
Type: booleanEnable IPv4 DHCP for automatic IP address assignment.
Ipv6 Auto
Type: booleanEnable IPv6 autoconfiguration.
Aliases
Type: array of objectList of IP address aliases to configure on the interface.
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"The type of IP address (INET for IPv4, INET6 for IPv6).
Must be one of:
- "INET"
- "INET6"
Address
The IP address for the failover alias.
Must be one of:
- ""
""
Netmask
Type: integerThe network mask in CIDR notation.
Failover Critical
Type: booleanWhether this interface is critical for failover functionality. Critical interfaces are monitored for failover events and can trigger failover when they fail.
Failover Group
Failover group identifier for clustering. Interfaces in the same group fail over together during failover events.
Failover Vhid
Virtual Host ID for VRRP failover configuration. Must be unique within the VRRP group and match between failover nodes.
Value must be greater or equal to 1
and lesser or equal to 255
Failover Aliases
Type: array of objectList of IP aliases for failover configuration. These IPs are assigned to the interface during normal operation and migrate during failover.
No Additional ItemsEach item of this array must be:
InterfaceCreateFailoverAlias
Type: objectNo Additional Properties
Type
Type: enum (of string) Default: "INET"The type of IP address (INET for IPv4, INET6 for IPv6).
Must be one of:
- "INET"
- "INET6"
Address
The IP address for the failover alias.
Must be one of:
- ""
""
Failover Virtual Aliases
Type: array of objectList of virtual IP aliases for failover configuration. These are shared IPs that float between nodes during failover events.
No Additional ItemsEach item of this array must be:
InterfaceCreateFailoverAlias
Type: objectNo Additional Properties
Type
Type: enum (of string) Default: "INET"The type of IP address (INET for IPv4, INET6 for IPv6).
Must be one of:
- "INET"
- "INET6"
Address
The IP address for the failover alias.
Must be one of:
- ""
""
Bridge Members
Type: arrayList of interfaces to add as members of this bridge.
No Additional ItemsEach item of this array must be:
Enable Learning
Type: booleanEnable MAC address learning for bridge interfaces. When enabled, the bridge learns MAC addresses from incoming frames and builds a forwarding table to optimize traffic flow.
Stp
Type: booleanEnable Spanning Tree Protocol for bridge interfaces. STP prevents network loops by blocking redundant paths and enables automatic failover when the primary path fails.
Lag Protocol
Type: enum (of string)Link aggregation protocol to use for bonding interfaces. LACP uses 802.3ad dynamic negotiation, FAILOVER provides active-backup, LOADBALANCE and ROUNDROBIN distribute traffic across links.
Must be one of:
- "LACP"
- "FAILOVER"
- "LOADBALANCE"
- "ROUNDROBIN"
- "NONE"
Xmit Hash Policy
Type: enum (of null or string)Transmit hash policy for load balancing in link aggregation. LAYER2 uses MAC addresses, LAYER2+3 adds IP addresses, and LAYER3+4 includes TCP/UDP ports for distribution.
Must be one of:
- "LAYER2"
- "LAYER2+3"
- "LAYER3+4"
- null
Lacpdu Rate
Type: enum (of null or string)LACP data unit transmission rate. SLOW sends LACPDUs every 30 seconds, FAST sends every 1 second for quicker link failure detection.
Must be one of:
- "SLOW"
- "FAST"
- null
Lag Ports
Type: array of stringList of interface names to include in the link aggregation group.
No Additional ItemsEach item of this array must be:
Vlan Parent Interface
Type: stringParent interface for VLAN configuration.
Vlan Tag
Type: integerVLAN tag number (1-4094).
Vlan Pcp
Priority Code Point for VLAN traffic prioritization (0-7). Values 0-7 map to different QoS priority levels, with 0 being lowest and 7 highest priority.
Value must be greater or equal to 0
and lesser or equal to 7
Mtu
Maximum transmission unit size for the interface (68-9216 bytes).
Value must be greater or equal to 68
and lesser or equal to 9216
InterfaceEntry
Type: objectThe updated interface configuration.
Id
Type: stringUnique identifier for the network interface.
Name
Type: stringName of the network interface.
Fake
Type: booleanWhether this is a fake/simulated interface for testing purposes.
Type
Type: stringType of interface (PHYSICAL, BRIDGE, LINK_AGGREGATION, VLAN, etc.).
InterfaceEntryState
Type: objectCurrent runtime state information for the interface.
No Additional PropertiesName
Type: stringCurrent name of the network interface.
Orig Name
Type: stringOriginal name of the network interface before any renaming.
Description
Type: stringHuman-readable description of the network interface.
Mtu
Type: integerMaximum transmission unit size for the interface.
Cloned
Type: booleanWhether the interface is a cloned/virtual interface.
Flags
Type: array of stringList of interface flags indicating various states and capabilities. Common flags include UP, DOWN, RUNNING, MULTICAST, BROADCAST, LOOPBACK, and POINTOPOINT.
No Additional ItemsEach item of this array must be:
Nd6 Flags
Type: arrayIPv6 neighbor discovery flags. These control IPv6 autoconfiguration behavior and include flags like AUTOLINKLOCAL, ACCEPTRTADV, and PERFORMNUD.
No Additional ItemsEach item of this array must be:
Capabilities
Type: arrayList of hardware capabilities supported by the interface. Common capabilities include VLANMTU, JUMBOMTU, VLANHWTAGGING, VLANHWCSUM, and TSO4.
No Additional ItemsEach item of this array must be:
Link State
Type: stringCurrent link state of the interface (up, down, etc.).
Media Type
Type: stringType of media/connection for the interface. Examples include Ethernet, 802.11, or loopback.
Media Subtype
Type: stringSubtype of media/connection for the interface. Examples include 1000baseT, 100baseTX, or autoselect.
Active Media Type
Type: stringCurrently active media type. This may differ from configured media_type during autonegotiation.
Active Media Subtype
Type: stringCurrently active media subtype. This reflects the actual negotiated connection speed and type.
Supported Media
Type: arrayList of supported media types for the interface. Contains media descriptors like '1000baseT <full-duplex>' or 'autoselect'.
No Additional ItemsEach item of this array must be:
Media Options
Available media options for the interface. Options may include 'full-duplex', 'half-duplex', 'flowcontrol', or 'rxpause'.
No Additional Items
Each item of this array must be:
Link Address
Type: stringMAC address of the interface.
Permanent Link Address
Permanent MAC address of the interface if different from current.
Hardware Link Address
Type: stringHardware MAC address of the interface.
Rx Queues
Type: integerNumber of receive queues configured for the interface.
Tx Queues
Type: integerNumber of transmit queues configured for the interface.
Aliases
Type: array of objectList of IP address aliases configured on the interface.
No Additional ItemsEach item of this array must be:
InterfaceEntryStateAlias
Type: objectNo Additional Properties
Type
Type: stringThe type of IP address (INET for IPv4, INET6 for IPv6).
Address
Type: stringThe IP address value.
Netmask
Broadcast
Type: stringVrrp Config
Default: []VRRP (Virtual Router Redundancy Protocol) configuration for the interface.
No Additional Items
Each item of this array must be:
Protocol
Link aggregation protocol used (LACP, FAILOVER, etc.).
Ports
Type: array of object Default: []List of ports that are members of this link aggregation group.
No Additional ItemsEach item of this array must be:
InterfaceEntryStatePort
Type: objectNo Additional Properties
Name
Type: stringThe name of the port interface.
Flags
Type: array of stringList of flags associated with the port.
No Additional ItemsEach item of this array must be:
Xmit Hash Policy
Default: nullTransmit hash policy for load balancing in link aggregation. LAYER2 uses MAC addresses, LAYER2+3 adds IP addresses, and LAYER3+4 includes TCP/UDP ports for distribution.
Lacpdu Rate
Default: nullLACP data unit transmission rate. SLOW sends LACPDUs every 30 seconds, FAST sends every 1 second for quicker link failure detection.
Parent
Parent interface for VLAN configuration.
Tag
VLAN tag number.
Pcp
Priority Code Point for VLAN traffic prioritization. Values 0-7 map to different QoS priority levels, with 0 being lowest and 7 highest priority.
Aliases
Type: array of objectList of IP address aliases configured on the interface.
No Additional ItemsEach item of this array must be:
InterfaceEntryAlias
Type: objectNo Additional Properties
Type
Type: stringThe type of IP address (INET for IPv4, INET6 for IPv6).
Address
Type: stringThe IP address value.
Netmask
The network mask for the IP address, either as a string or CIDR notation integer.
Ipv4 Dhcp
Type: booleanWhether IPv4 DHCP is enabled for automatic IP address assignment.
Ipv6 Auto
Type: booleanWhether IPv6 autoconfiguration is enabled.
Description
Type: stringHuman-readable description of the interface.
Mtu
Maximum transmission unit size for the interface.
Vlan Parent Interface
Parent interface for VLAN configuration.
Vlan Tag
VLAN tag number for VLAN interfaces.
Vlan Pcp
Priority Code Point for VLAN traffic prioritization.
Lag Protocol
Type: stringLink aggregation protocol (LACP, FAILOVER, LOADBALANCE, etc.).
Lag Ports
Type: array of string Default: []List of interface names that are members of this link aggregation group.
No Additional ItemsEach item of this array must be:
Bridge Members
Type: array of string Default: []List of interface names that are members of this bridge.
No Additional ItemsEach item of this array must be:
Enable Learning
Type: booleanWhether MAC address learning is enabled for bridge interfaces.
Additional Properties of any type are allowed.
Type: objectRequired roles: NETWORK_INTERFACE_WRITE