Interface type holds settings for a Network Interface.
Field | Type | Label | Description |
---|---|---|---|
GatewayInterface | bool | if true, route metric will be set to 1. Otherwise route metric is -1. Similarly, when the interface is requested,return value will be true if route metric is 1. | |
MacAddress | string | "20:87:56:b5:ed:e0" | |
DHCP | string | values can be 'enabled' or 'disabled'. for compatiblity reasons it is not boolean. | |
Static | Interface.StaticConf | Static field is StaticConf type instance. | |
DNSConfig | Interface.Dns | DNSConfig is dns type instance. | |
L2Conf | Interface.L2 | ||
InterfaceName | string | Network interface name e.g: "enp2s0" | |
Label | string | Label for the interface e.g: "X1" |