public final class DefaultServicePort extends Object implements ServicePort
ServicePort.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultServicePort.Builder |
| Modifier and Type | Method and Description |
|---|---|
Set<AddressPair> |
addressPairs()
Returns additional floating address pairs of the service port.
|
static DefaultServicePort.Builder |
builder()
Returns new service port builder instance.
|
static DefaultServicePort.Builder |
builder(ServicePort sport)
Returns new builder instance with copy of the supplied service port.
|
static DefaultServicePort.Builder |
builder(ServicePort existing,
ServicePort updated)
Returns service port builder instance with updated values.
|
boolean |
equals(Object obj) |
int |
hashCode() |
PortId |
id()
Returns the port identifier.
|
org.onlab.packet.IpAddress |
ip()
Returns the fixed IP address of the service port.
|
org.onlab.packet.MacAddress |
mac()
Returns the MAC address of the service port.
|
String |
name()
Returns the port name on a switch.
|
NetworkId |
networkId()
Returns associated network identifier of the service port.
|
String |
toString() |
org.onlab.packet.VlanId |
vlanId()
Returns VLAN of service the port.
|
public PortId id()
ServicePortid in interface ServicePortpublic String name()
ServicePortname in interface ServicePortpublic NetworkId networkId()
ServicePortnetworkId in interface ServicePortpublic org.onlab.packet.MacAddress mac()
ServicePortmac in interface ServicePortpublic org.onlab.packet.IpAddress ip()
ServicePortip in interface ServicePortpublic org.onlab.packet.VlanId vlanId()
ServicePortvlanId in interface ServicePortpublic Set<AddressPair> addressPairs()
ServicePortaddressPairs in interface ServicePortpublic static DefaultServicePort.Builder builder()
public static DefaultServicePort.Builder builder(ServicePort sport)
sport - vtn portpublic static DefaultServicePort.Builder builder(ServicePort existing, ServicePort updated)
existing - existing service portupdated - updated service portCopyright © 2018. All rights reserved.