public class DigitalOceanNetworkInterface extends NetworkInterface
NetworkInterface
implementation for Digital Ocean.Constructor and Description |
---|
DigitalOceanNetworkInterface() |
Modifier and Type | Method and Description |
---|---|
int |
getCidr() |
String |
getIpv6Gateway() |
void |
setCidr(int cidr) |
protected void |
setGateway(String gateway) |
protected void |
setId(String id) |
protected void |
setIpv4(String ipv4) |
protected void |
setIpv6(String ipv6) |
void |
setIpv6Gateway(String ipv6Gateway) |
protected void |
setMac(String mac) |
protected void |
setName(String name) |
protected void |
setNetmask(String netmask) |
protected void |
setNetwork(String network) |
getGateway, getId, getIpv4, getIpv6, getMac, getName, getNetmask, getNetwork
protected void setIpv4(String ipv4)
setIpv4
in class NetworkInterface
ipv4
- The IPv4 addressprotected void setIpv6(String ipv6)
setIpv6
in class NetworkInterface
ipv6
- The IPv6 addressprotected void setName(String name)
setName
in class NetworkInterface
name
- The nameprotected void setMac(String mac)
setMac
in class NetworkInterface
mac
- The MAC addressprotected void setId(String id)
setId
in class NetworkInterface
id
- The Id of network interfaceprotected void setGateway(String gateway)
setGateway
in class NetworkInterface
gateway
- The network gatewayprotected void setNetwork(String network)
setNetwork
in class NetworkInterface
network
- The networkprotected void setNetmask(String netmask)
setNetmask
in class NetworkInterface
netmask
- The network maskpublic int getCidr()
public void setCidr(int cidr)
cidr
- the CIDR maskpublic String getIpv6Gateway()
public void setIpv6Gateway(String ipv6Gateway)
ipv6Gateway
- the IPV6 gateway