Class NeutronSubnet

    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface IdEntity
        Returns:
        the identifier for this resource
      • setId

        public void setId​(String id)
        Sets the identifier for this resource. Note: creating a new resource should not have the idenfier set since OpenStack will assign one on the create call
        Specified by:
        setId in interface IdEntity
        Parameters:
        id - the identifier
      • setName

        public void setName​(String name)
        Sets the name for this resource
        Specified by:
        setName in interface BasicResource
        Parameters:
        name - the name to set
      • isDHCPEnabled

        public boolean isDHCPEnabled()
        Specified by:
        isDHCPEnabled in interface Subnet
        Returns:
        true if DHCP is enabled for this subnet, false if not.
      • getNetworkId

        public String getNetworkId()
        Specified by:
        getNetworkId in interface Subnet
        Returns:
        the id of the network this subnet is associated with
      • getTenantId

        public String getTenantId()
        Specified by:
        getTenantId in interface Resource
        Returns:
        the tenant identifier for this resource
      • setTenantId

        public void setTenantId​(String tenantId)
        Sets the tenant identifier
        Specified by:
        setTenantId in interface Resource
        Parameters:
        tenantId - the tenant id to set
      • getAllocationPools

        public List<? extends Pool> getAllocationPools()
        Specified by:
        getAllocationPools in interface Subnet
        Returns:
        the sub-ranges of cidr available for dynamic allocation to ports
      • getHostRoutes

        public List<? extends HostRoute> getHostRoutes()
        Specified by:
        getHostRoutes in interface Subnet
        Returns:
        the set of routes that should be used by devices with IPs from this subnet
      • getGateway

        public String getGateway()
        Specified by:
        getGateway in interface Subnet
        Returns:
        the default gateway used by devices in this subnet
      • getCidr

        public String getCidr()
        Specified by:
        getCidr in interface Subnet
        Returns:
        the cidr representing the IP range for this subnet, based on IP version
      • getIpv6AddressMode

        public Ipv6AddressMode getIpv6AddressMode()
        Specified by:
        getIpv6AddressMode in interface Subnet
        Returns:
        The IPv6 address modes specifies mechanisms for assigning IP addresses
      • getIpv6RaMode

        public Ipv6RaMode getIpv6RaMode()
        Specified by:
        getIpv6RaMode in interface Subnet
        Returns:
        the IPv6 router advertisement specifies whether the networking service should transmit ICMPv6 packets, for a subnet
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object