Class NeutronNetwork

    • Constructor Detail

      • NeutronNetwork

        public NeutronNetwork()
    • Method Detail

      • getStatus

        public State getStatus()
        Specified by:
        getStatus in interface Network
        Returns:
        the status of the network
      • getSubnets

        public List<String> getSubnets()
        Specified by:
        getSubnets in interface Network
        Returns:
        list of subnet identifiers associated with the network
      • setName

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

        public String getProviderPhyNet()
        Specified by:
        getProviderPhyNet in interface Network
        Returns:
        the physical network provider or null
      • isAdminStateUp

        public boolean isAdminStateUp()
        Specified by:
        isAdminStateUp in interface Network
        Returns:
        true if the administrative state is up
      • 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
      • isRouterExternal

        public boolean isRouterExternal()
        Specified by:
        isRouterExternal in interface Network
        Returns:
        true if the router is external
      • 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
      • isShared

        public boolean isShared()
        Specified by:
        isShared in interface Network
        Returns:
        true if the network is shared
      • getProviderSegID

        public String getProviderSegID()
        Specified by:
        getProviderSegID in interface Network
        Returns:
        the provider segmentation identifier
      • getMTU

        public Integer getMTU()
        Specified by:
        getMTU in interface Network
        Returns:
        The maximum transmission unit (MTU) value to address fragmentation. Minimum value is 68 for IPv4, and 1280 for IPv6.
      • getAvailabilityZoneHints

        public List<String> getAvailabilityZoneHints()
        Specified by:
        getAvailabilityZoneHints in interface Network
        Returns:
        the list of the availability zone candidate for the network.
      • getAvailabilityZones

        public List<String> getAvailabilityZones()
        Specified by:
        getAvailabilityZones in interface Network
        Returns:
        the list of the availability zone for the network.
      • isPortSecurityEnabled

        public Boolean isPortSecurityEnabled()
        Specified by:
        isPortSecurityEnabled in interface Network
        Returns:
        true if the port security enabled is shared
      • isDefault

        public boolean isDefault()
        Specified by:
        isDefault in interface Network
        Returns:
        true if the network is default pool
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object