Class Port
java.lang.Object
org.jclouds.openstack.neutron.v2.domain.Port
- Direct Known Subclasses:
Port.CreatePort
,Port.UpdatePort
A Neutron port
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Create and Update builders (inheriting from Builder)static class
Create and Update options - extend the domain class, passed to API update and create calls.static class
Create and Update builders (inheriting from Builder)static class
Create and Update options - extend the domain class, passed to API update and create calls. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Port
(String id, NetworkStatus status, VIFType vifType, com.google.common.collect.ImmutableMap<String, Object> vifDetails, String qosQueueId, String name, String networkId, Boolean adminStateUp, String macAddress, com.google.common.collect.ImmutableSet<IP> fixedIps, String deviceId, String deviceOwner, String tenantId, com.google.common.collect.ImmutableSet<String> securityGroups, com.google.common.collect.ImmutableSet<AddressPair> allowedAddressPairs, com.google.common.collect.ImmutableSet<ExtraDhcpOption> extraDhcpOptions, VNICType vnicType, String hostId, com.google.common.collect.ImmutableMap<String, Object> profile, Boolean portSecurity, String profileId, Boolean macLearning, Integer qosRxtxFactor) -
Method Summary
Modifier and TypeMethodDescriptionstatic Port.CreateBuilder
createBuilder
(String networkId) boolean
com.google.common.collect.ImmutableSet
<AddressPair> com.google.common.collect.ImmutableSet
<ExtraDhcpOption> com.google.common.collect.ImmutableSet
<IP> getId()
getName()
com.google.common.collect.ImmutableSet
<String> int
hashCode()
toString()
static Port.UpdateBuilder
-
Constructor Details
-
Port
@ConstructorProperties({"id","status","binding:vif_type","binding:vif_details","queue_id","name","network_id","admin_state_up","mac_address","fixed_ips","device_id","device_owner","tenant_id","security_groups","allowed_address_pairs","extra_dhcp_opts","binding:vnic_type","binding:host_id","binding:profile","port_security_enabled","n1kv:profile_id","mac_learning_enabled","rxtx_factor"}) protected Port(String id, NetworkStatus status, VIFType vifType, com.google.common.collect.ImmutableMap<String, Object> vifDetails, String qosQueueId, String name, String networkId, Boolean adminStateUp, String macAddress, com.google.common.collect.ImmutableSet<IP> fixedIps, String deviceId, String deviceOwner, String tenantId, com.google.common.collect.ImmutableSet<String> securityGroups, com.google.common.collect.ImmutableSet<AddressPair> allowedAddressPairs, com.google.common.collect.ImmutableSet<ExtraDhcpOption> extraDhcpOptions, VNICType vnicType, String hostId, com.google.common.collect.ImmutableMap<String, Object> profile, Boolean portSecurity, String profileId, Boolean macLearning, Integer qosRxtxFactor)
-
-
Method Details
-
getId
- Returns:
- the id of the Port
-
getStatus
- Returns:
- the status of the Port
-
getVifType
- Returns:
- the vifType of the Port. Visible to only administrative users.
-
getVifDetails
- Returns:
- the vifDetails of the Port. A dictionary that enables the application to pass information about functions that Networking API v2.0 provides. Specify the following value: port_filter : Boolean to define whether Networking API v2.0 provides port filtering features such as security group and anti-MAC/IP spoofing. Visible to only administrative users.
-
getQosQueueId
- Returns:
- the qosQueueId of the Port
-
getName
- Returns:
- the name of the Port
-
getNetworkId
- Returns:
- the id of the network where this port is associated with.
-
getAdminStateUp
- Returns:
- the administrative state of port. If false, port does not forward packets.
-
getMacAddress
- Returns:
- the macAddress of the Port
-
getFixedIps
- Returns:
- the set of fixed ips this port has been assigned.
-
getDeviceId
- Returns:
- the id of the device (e.g. server) using this port.
-
getDeviceOwner
- Returns:
- the entity (e.g.: dhcp agent) using this port.
-
getTenantId
- Returns:
- the tenantId of the Port
-
getSecurityGroups
- Returns:
- the set of security groups
-
getAllowedAddressPairs
- Returns:
- the allowedAddressPairs of the Port
-
getExtraDhcpOptions
- Returns:
- the extraDhcpOptions of the Port
-
getVnicType
- Returns:
- the vnicType of the Port. This extended attribute is visible to only port owners and administrative users. Specifies a value of normal (virtual nic), direct (pci passthrough), or macvtap (virtual interface with a tap-like software interface). These values support SR-IOV PCI passthrough networking. The ML2 plug-in supports the vnic_type.
-
getHostId
- Returns:
- the hostId of the Port. The ID of the host where the port is allocated. In some cases, different implementations can run on different hosts. Visible to only administrative users.
-
getProfile
- Returns:
- the profile of the Port. A dictionary that enables the application to pass information about functions that the Networking API provides. To enable or disable port filtering features such as security group and anti-MAC/IP spoofing, specify port_filter: True or port_filter: False. Visible to only administrative users.
-
getPortSecurity
- Returns:
- the portSecurity of the Port
-
getProfileId
- Returns:
- the profileId of the Port
-
getMacLearning
- Returns:
- the macLearning of the Port
-
getQosRxtxFactor
- Returns:
- the qosRxtxFactor of the Port
-
equals
-
hashCode
public int hashCode() -
toString
-
createBuilder
- Returns:
- the Builder for creating a new Router
-
updateBuilder
- Returns:
- the Builder for updating a Router
-