Class NeutronPort
- java.lang.Object
-
- org.openstack4j.openstack.networking.domain.NeutronPort
-
- All Implemented Interfaces:
Serializable,Buildable<PortBuilder>,BasicResource,IdEntity,Resource,TimeEntity,ModelEntity,Port
public class NeutronPort extends Object implements Port
A Neutron Port- Author:
- Jeremy Unruh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNeutronPort.PortConcreteBuilderstatic classNeutronPort.Ports-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Constructor Summary
Constructors Constructor Description NeutronPort()
-
Method Summary
-
-
-
Method Detail
-
builder
public static PortBuilder builder()
-
toBuilder
public PortBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<PortBuilder>
-
getId
public String getId()
-
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
-
getName
public String getName()
- Specified by:
getNamein interfaceBasicResource- Returns:
- the name for this resource
-
setName
public void setName(String name)
Sets the name for this resource- Specified by:
setNamein interfaceBasicResource- Parameters:
name- the name to set
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceResource- Returns:
- the tenant identifier for this resource
-
setTenantId
public void setTenantId(String tenantId)
Sets the tenant identifier- Specified by:
setTenantIdin interfaceResource- Parameters:
tenantId- the tenant id to set
-
getState
public State getState()
-
isAdminStateUp
public boolean isAdminStateUp()
- Specified by:
isAdminStateUpin interfacePort- Returns:
- the administrative state of port. If false, port does not forward packets.
-
getNetworkId
public String getNetworkId()
- Specified by:
getNetworkIdin interfacePort- Returns:
- the id of the network where this port is associated with
-
getDeviceId
public String getDeviceId()
- Specified by:
getDeviceIdin interfacePort- Returns:
- the id of the device (e.g. server) using this port.
-
getDeviceOwner
public String getDeviceOwner()
- Specified by:
getDeviceOwnerin interfacePort- Returns:
- the entity (e.g.: DHCP Agent) using this port.
-
getFixedIps
public Set<? extends IP> getFixedIps()
- Specified by:
getFixedIpsin interfacePort- Returns:
- the set of fixed IPs this port has been assigned
-
getAllowedAddressPairs
public Set<? extends AllowedAddressPair> getAllowedAddressPairs()
- Specified by:
getAllowedAddressPairsin interfacePort
-
getMacAddress
public String getMacAddress()
- Specified by:
getMacAddressin interfacePort- Returns:
- the MacAddress of this port
-
getSecurityGroups
public List<String> getSecurityGroups()
- Specified by:
getSecurityGroupsin interfacePort- Returns:
- the security group identifiers assigned to this port
-
setHostId
public void setHostId(String hostId)
-
getVifType
public String getVifType()
- Specified by:
getVifTypein interfacePort
-
setVifType
public void setVifType(String vifType)
-
getVifDetails
public Map<String,Object> getVifDetails()
- Specified by:
getVifDetailsin interfacePort
-
getvNicType
public String getvNicType()
- Specified by:
getvNicTypein interfacePort
-
setvNicType
public void setvNicType(String vNicType)
-
getProfile
public Map<String,Object> getProfile()
- Specified by:
getProfilein interfacePort
-
getTrunkPortParentId
public String getTrunkPortParentId()
- Specified by:
getTrunkPortParentIdin interfacePort- Returns:
- the parent ID of this port
-
getTrunkPortType
public String getTrunkPortType()
- Specified by:
getTrunkPortTypein interfacePort- Returns:
- the trunk port type of this port
-
getTrunkPortVlanId
public String getTrunkPortVlanId()
- Specified by:
getTrunkPortVlanIdin interfacePort- Returns:
- the Vlan of this port
-
getCreatedTime
public Date getCreatedTime()
Description copied from interface:TimeEntitycreated time- Specified by:
getCreatedTimein interfaceTimeEntity- Returns:
- created time
-
getUpdatedTime
public Date getUpdatedTime()
Description copied from interface:TimeEntityupdated time- Specified by:
getUpdatedTimein interfaceTimeEntity- Returns:
- updated time
-
isPortSecurityEnabled
public Boolean isPortSecurityEnabled()
- Specified by:
isPortSecurityEnabledin interfacePort- Returns:
- The port security status. A valid value is enabled (true) or disabled (false).
-
-