Class DigitalOceanNetworkInterface

java.lang.Object
io.micronaut.discovery.cloud.NetworkInterface
io.micronaut.discovery.cloud.digitalocean.DigitalOceanNetworkInterface
All Implemented Interfaces:
Serializable

public class DigitalOceanNetworkInterface extends NetworkInterface
A NetworkInterface implementation for Digital Ocean.
Since:
1.1
Author:
Alvaro Sanchez-Mariscal
See Also:
  • Constructor Details

    • DigitalOceanNetworkInterface

      public DigitalOceanNetworkInterface()
  • Method Details

    • setIpv4

      protected void setIpv4(String ipv4)
      Overrides:
      setIpv4 in class NetworkInterface
      Parameters:
      ipv4 - The IPv4 address
    • setIpv6

      protected void setIpv6(String ipv6)
      Overrides:
      setIpv6 in class NetworkInterface
      Parameters:
      ipv6 - The IPv6 address
    • setName

      protected void setName(String name)
      Overrides:
      setName in class NetworkInterface
      Parameters:
      name - The name
    • setMac

      protected void setMac(String mac)
      Overrides:
      setMac in class NetworkInterface
      Parameters:
      mac - The MAC address
    • setId

      protected void setId(String id)
      Overrides:
      setId in class NetworkInterface
      Parameters:
      id - The Id of network interface
    • setGateway

      protected void setGateway(String gateway)
      Overrides:
      setGateway in class NetworkInterface
      Parameters:
      gateway - The network gateway
    • setNetwork

      protected void setNetwork(String network)
      Overrides:
      setNetwork in class NetworkInterface
      Parameters:
      network - The network
    • setNetmask

      protected void setNetmask(String netmask)
      Overrides:
      setNetmask in class NetworkInterface
      Parameters:
      netmask - The network mask
    • getCidr

      public int getCidr()
      Returns:
      the CIDR mask
    • setCidr

      public void setCidr(int cidr)
      Parameters:
      cidr - the CIDR mask
    • getIpv6Gateway

      public String getIpv6Gateway()
      Returns:
      the IPV6 gateway
    • setIpv6Gateway

      public void setIpv6Gateway(String ipv6Gateway)
      Parameters:
      ipv6Gateway - the IPV6 gateway