| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultPortChain.Builder
Builder class for Port chain.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLoadBalancePath(FiveTuple fiveTuple,
LoadBalanceId id,
List<PortPairId> path)
Adds a new load balanced path.
|
void |
addSfcClassifiers(LoadBalanceId id,
List<org.onosproject.net.DeviceId> classifierList)
Adds sfc classifiers to the given load balance id for a port chain.
|
void |
addSfcForwarders(LoadBalanceId id,
List<org.onosproject.net.DeviceId> forwarderList)
Adds sfc forwarders to the given load balance id for a port chain.
|
static DefaultPortChain.Builder |
builder()
To create an instance of the builder.
|
static PortChain |
create(PortChain newPortChain,
PortChain oldPortChain)
To create port chain for update with old port chain.
|
String |
description()
Returns the description of this port chain.
|
boolean |
equals(Object obj) |
boolean |
exactMatch(PortChain portChain)
Returns whether this port chain is an exact match to the port chain given
in the argument.
|
List<FlowClassifierId> |
flowClassifiers()
Returns the list of flow classifiers associated with
this port chain.
|
LoadBalanceId |
getLoadBalanceId(FiveTuple fiveTuple)
Returns the load balance id from five tuple.
|
Set<FiveTuple> |
getLoadBalanceIdMapKeys()
Returns the keys set from load balance id map.
|
List<PortPairId> |
getLoadBalancePath(FiveTuple fiveTuple)
Returns the load balanced path from five tuple.
|
List<PortPairId> |
getLoadBalancePath(LoadBalanceId id)
Returns the load balanced path from load balance Id.
|
Set<LoadBalanceId> |
getLoadBalancePathMapKeys()
Returns the keys set from load balance path map.
|
int |
getLoadBalancePathSize()
Returns the no of load balance paths created.
|
List<org.onosproject.net.DeviceId> |
getSfcClassifiers(LoadBalanceId id)
Returns sfc classifiers to the given load balance id for a port chain.
|
List<org.onosproject.net.DeviceId> |
getSfcForwarders(LoadBalanceId id)
Returns sfc forwarders to the given load balance id for a port chain.
|
int |
hashCode() |
LoadBalanceId |
matchPath(List<PortPairId> path)
Match the given path with existing load balanced paths.
|
String |
name()
Returns the name of this port chain.
|
PortChain |
oldPortChain()
Returns the old port chain.
|
PortChainId |
portChainId()
Returns the ID of this port chain.
|
List<PortPairGroupId> |
portPairGroups()
Returns the list of port pair groups associated with
this port chain.
|
void |
removeSfcClassifiers(LoadBalanceId id,
List<org.onosproject.net.DeviceId> classifierList)
Removes sfc classifiers to the given load balance id for a port chain.
|
void |
removeSfcForwarders(LoadBalanceId id,
List<org.onosproject.net.DeviceId> forwarderList)
Removes sfc forwarders to the given load balance id for a port chain.
|
TenantId |
tenantId()
Returns the tenant id of this port chain.
|
String |
toString() |
public static PortChain create(PortChain newPortChain, PortChain oldPortChain)
newPortChain - updated port chainoldPortChain - old port chainpublic PortChainId portChainId()
PortChainportChainId in interface PortChainpublic TenantId tenantId()
PortChainpublic String name()
PortChainpublic String description()
PortChaindescription in interface PortChainpublic List<PortPairGroupId> portPairGroups()
PortChainportPairGroups in interface PortChainpublic List<FlowClassifierId> flowClassifiers()
PortChainflowClassifiers in interface PortChainpublic PortChain oldPortChain()
PortChainoldPortChain in interface PortChainpublic void addLoadBalancePath(FiveTuple fiveTuple, LoadBalanceId id, List<PortPairId> path)
PortChainaddLoadBalancePath in interface PortChainfiveTuple - five tuple from the packetid - load balance path identifierpath - load balanced path of list of port pairspublic void addSfcClassifiers(LoadBalanceId id, List<org.onosproject.net.DeviceId> classifierList)
PortChainaddSfcClassifiers in interface PortChainid - load balance path identifierclassifierList - list of classifier devicespublic void addSfcForwarders(LoadBalanceId id, List<org.onosproject.net.DeviceId> forwarderList)
PortChainaddSfcForwarders in interface PortChainid - load balance path identifierforwarderList - list of forwarder devicespublic void removeSfcClassifiers(LoadBalanceId id, List<org.onosproject.net.DeviceId> classifierList)
PortChainremoveSfcClassifiers in interface PortChainid - load balance path identifierclassifierList - list of classifier devicespublic void removeSfcForwarders(LoadBalanceId id, List<org.onosproject.net.DeviceId> forwarderList)
PortChainremoveSfcForwarders in interface PortChainid - load balance path identifierforwarderList - list of forwarder devicespublic List<org.onosproject.net.DeviceId> getSfcClassifiers(LoadBalanceId id)
PortChaingetSfcClassifiers in interface PortChainid - load balance path identifierpublic List<org.onosproject.net.DeviceId> getSfcForwarders(LoadBalanceId id)
PortChaingetSfcForwarders in interface PortChainid - load balance path identifierpublic LoadBalanceId getLoadBalanceId(FiveTuple fiveTuple)
PortChaingetLoadBalanceId in interface PortChainfiveTuple - five tuple from the packetpublic Set<FiveTuple> getLoadBalanceIdMapKeys()
PortChaingetLoadBalanceIdMapKeys in interface PortChainpublic Set<LoadBalanceId> getLoadBalancePathMapKeys()
PortChaingetLoadBalancePathMapKeys in interface PortChainpublic List<PortPairId> getLoadBalancePath(LoadBalanceId id)
PortChaingetLoadBalancePath in interface PortChainid - load balance id.public List<PortPairId> getLoadBalancePath(FiveTuple fiveTuple)
PortChaingetLoadBalancePath in interface PortChainfiveTuple - five tuple from the packetpublic int getLoadBalancePathSize()
PortChaingetLoadBalancePathSize in interface PortChainpublic LoadBalanceId matchPath(List<PortPairId> path)
PortChainpublic boolean exactMatch(PortChain portChain)
PortChainExact match means the port pair groups and flow classifiers match with the given port chain. It does not consider the port chain id, name and description.
exactMatch in interface PortChainportChain - other port chain to match againstpublic static DefaultPortChain.Builder builder()