Class NeutronPort

    • Constructor Detail

      • NeutronPort

        public NeutronPort()
    • 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
      • 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
      • getState

        public State getState()
        Specified by:
        getState in interface Port
        Returns:
        the current state of the port
      • isAdminStateUp

        public boolean isAdminStateUp()
        Specified by:
        isAdminStateUp in interface Port
        Returns:
        the administrative state of port. If false, port does not forward packets.
      • getNetworkId

        public String getNetworkId()
        Specified by:
        getNetworkId in interface Port
        Returns:
        the id of the network where this port is associated with
      • getDeviceId

        public String getDeviceId()
        Specified by:
        getDeviceId in interface Port
        Returns:
        the id of the device (e.g. server) using this port.
      • getDeviceOwner

        public String getDeviceOwner()
        Specified by:
        getDeviceOwner in interface Port
        Returns:
        the entity (e.g.: DHCP Agent) using this port.
      • getFixedIps

        public Set<? extends IP> getFixedIps()
        Specified by:
        getFixedIps in interface Port
        Returns:
        the set of fixed IPs this port has been assigned
      • getMacAddress

        public String getMacAddress()
        Specified by:
        getMacAddress in interface Port
        Returns:
        the MacAddress of this port
      • getSecurityGroups

        public List<String> getSecurityGroups()
        Specified by:
        getSecurityGroups in interface Port
        Returns:
        the security group identifiers assigned to this port
      • setHostId

        public void setHostId​(String hostId)
      • setVifType

        public void setVifType​(String vifType)
      • setVifDetails

        public void setVifDetails​(Map<String,​Object> vifDetails)
      • setvNicType

        public void setvNicType​(String vNicType)
      • getTrunkPortParentId

        public String getTrunkPortParentId()
        Specified by:
        getTrunkPortParentId in interface Port
        Returns:
        the parent ID of this port
      • getTrunkPortType

        public String getTrunkPortType()
        Specified by:
        getTrunkPortType in interface Port
        Returns:
        the trunk port type of this port
      • getTrunkPortVlanId

        public String getTrunkPortVlanId()
        Specified by:
        getTrunkPortVlanId in interface Port
        Returns:
        the Vlan of this port
      • isPortSecurityEnabled

        public Boolean isPortSecurityEnabled()
        Specified by:
        isPortSecurityEnabled in interface Port
        Returns:
        The port security status. A valid value is enabled (true) or disabled (false).
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object