Class NIC
- java.lang.Object
-
- io.fabric8.openshift.api.model.miscellaneous.metal3.v1alpha1.NIC
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NICBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NIC extends Object implements io.fabric8.kubernetes.api.builder.Editable<NICBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
NIC describes one network interface on the host.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NICBuilderedit()Map<String,Object>getAdditionalProperties()StringgetIp()The IP address of the interface.StringgetMac()The device MAC addressStringgetModel()The vendor and product IDs of the NIC, e.g. "0x8086 0x1572"StringgetName()The name of the network interface, e.g.BooleangetPxe()Whether the NIC is PXE BootableIntegergetSpeedGbps()The speed of the device in Gigabits per secondIntegergetVlanId()The untagged VLAN IDList<VLAN>getVlans()The VLANs availablevoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetIp(String ip)The IP address of the interface.voidsetMac(String mac)The device MAC addressvoidsetModel(String model)The vendor and product IDs of the NIC, e.g. "0x8086 0x1572"voidsetName(String name)The name of the network interface, e.g.voidsetPxe(Boolean pxe)Whether the NIC is PXE BootablevoidsetSpeedGbps(Integer speedGbps)The speed of the device in Gigabits per secondvoidsetVlanId(Integer vlanId)The untagged VLAN IDvoidsetVlans(List<VLAN> vlans)The VLANs availableNICBuildertoBuilder()
-
-
-
Method Detail
-
getIp
public String getIp()
The IP address of the interface. This will be an IPv4 or IPv6 address if one is present. If both IPv4 and IPv6 addresses are present in a dual-stack environment, two nics will be output, one with each IP.
-
setIp
public void setIp(String ip)
The IP address of the interface. This will be an IPv4 or IPv6 address if one is present. If both IPv4 and IPv6 addresses are present in a dual-stack environment, two nics will be output, one with each IP.
-
getMac
public String getMac()
The device MAC address
-
setMac
public void setMac(String mac)
The device MAC address
-
getModel
public String getModel()
The vendor and product IDs of the NIC, e.g. "0x8086 0x1572"
-
setModel
public void setModel(String model)
The vendor and product IDs of the NIC, e.g. "0x8086 0x1572"
-
getName
public String getName()
The name of the network interface, e.g. "en0"
-
setName
public void setName(String name)
The name of the network interface, e.g. "en0"
-
getPxe
public Boolean getPxe()
Whether the NIC is PXE Bootable
-
setPxe
public void setPxe(Boolean pxe)
Whether the NIC is PXE Bootable
-
getSpeedGbps
public Integer getSpeedGbps()
The speed of the device in Gigabits per second
-
setSpeedGbps
public void setSpeedGbps(Integer speedGbps)
The speed of the device in Gigabits per second
-
getVlanId
public Integer getVlanId()
The untagged VLAN ID
-
setVlanId
public void setVlanId(Integer vlanId)
The untagged VLAN ID
-
edit
public NICBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<NICBuilder>
-
toBuilder
public NICBuilder toBuilder()
-
-