public final class DefaultVirtualPort extends Object implements VirtualPort
VirtualPort.State| Constructor and Description |
|---|
DefaultVirtualPort(VirtualPortId id,
TenantNetworkId networkId,
Boolean adminStateUp,
Map<String,String> strMap,
VirtualPort.State state,
org.onlab.packet.MacAddress macAddress,
TenantId tenantId,
org.onosproject.net.DeviceId deviceId,
Set<FixedIp> fixedIps,
BindingHostId bindingHostId,
Set<AllowedAddressPair> allowedAddressPairs,
Set<SecurityGroup> securityGroups)
Creates a VirtualPort object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
adminStateUp()
Returns the administrative status of the port,which is up(true) or
down(false).
|
Collection<AllowedAddressPair> |
allowedAddressPairs()
Returns the virtualPort allowedAddressPairs.
|
BindingHostId |
bindingHostId()
Returns the virtualPort bindinghostId.
|
String |
bindingVifDetails()
Returns the virtualPort bindingvifDetail.
|
String |
bindingVifType()
Returns the virtualPort bindingVifType.
|
String |
bindingVnicType()
Returns the virtualPort bindingVnicType.
|
org.onosproject.net.DeviceId |
deviceId()
Returns the device identifier.
|
String |
deviceOwner()
Returns the identifier of the entity that uses this port.
|
boolean |
equals(Object obj) |
Set<FixedIp> |
fixedIps()
Returns set of IP addresses for the port, include the IP addresses and subnet
identity.
|
int |
hashCode() |
org.onlab.packet.MacAddress |
macAddress()
Returns the MAC address.
|
String |
name()
Returns the symbolic name for the virtualPort.
|
TenantNetworkId |
networkId()
Returns the network identifier.
|
VirtualPortId |
portId()
Returns the virtualPort identifier.
|
Collection<SecurityGroup> |
securityGroups()
Returns the security groups.
|
VirtualPort.State |
state()
Returns the state.
|
TenantId |
tenantId()
Returns the port tenantId.
|
String |
toString() |
public DefaultVirtualPort(VirtualPortId id, TenantNetworkId networkId, Boolean adminStateUp, Map<String,String> strMap, VirtualPort.State state, org.onlab.packet.MacAddress macAddress, TenantId tenantId, org.onosproject.net.DeviceId deviceId, Set<FixedIp> fixedIps, BindingHostId bindingHostId, Set<AllowedAddressPair> allowedAddressPairs, Set<SecurityGroup> securityGroups)
id - the virtual port identifiernetworkId - the network identifieradminStateUp - adminStateup true or falsestrMap - the map of properties of virtual portstate - virtual port statemacAddress - the MAC addresstenantId - the tenant identifierdeviceId - the device identifierfixedIps - set of fixed IPbindingHostId - the binding host identifierallowedAddressPairs - the collection of allowdeAddressPairssecurityGroups - the collection of securityGroupspublic VirtualPortId portId()
VirtualPortportId in interface VirtualPortpublic TenantNetworkId networkId()
VirtualPortnetworkId in interface VirtualPortpublic String name()
VirtualPortname in interface VirtualPortpublic boolean adminStateUp()
VirtualPortadminStateUp in interface VirtualPortpublic VirtualPort.State state()
VirtualPortstate in interface VirtualPortpublic org.onlab.packet.MacAddress macAddress()
VirtualPortmacAddress in interface VirtualPortpublic TenantId tenantId()
VirtualPorttenantId in interface VirtualPortpublic org.onosproject.net.DeviceId deviceId()
VirtualPortdeviceId in interface VirtualPortpublic String deviceOwner()
VirtualPortdeviceOwner in interface VirtualPortpublic Collection<AllowedAddressPair> allowedAddressPairs()
VirtualPortallowedAddressPairs in interface VirtualPortpublic Set<FixedIp> fixedIps()
VirtualPortfixedIps in interface VirtualPortpublic BindingHostId bindingHostId()
VirtualPortbindingHostId in interface VirtualPortpublic String bindingVnicType()
VirtualPortbindingVnicType in interface VirtualPortpublic String bindingVifType()
VirtualPortbindingVifType in interface VirtualPortpublic String bindingVifDetails()
VirtualPortbindingVifDetails in interface VirtualPortpublic Collection<SecurityGroup> securityGroups()
VirtualPortsecurityGroups in interface VirtualPort