public interface PortChain
| Modifier and Type | Interface and Description |
|---|---|
static interface |
PortChain.Builder
A port chain builder..
|
| 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.
|
String |
description()
Returns the description of this port chain.
|
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.
|
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.
|
PortChainId portChainId()
TenantId tenantId()
String name()
String description()
List<PortPairGroupId> portPairGroups()
List<FlowClassifierId> flowClassifiers()
PortChain oldPortChain()
void addLoadBalancePath(FiveTuple fiveTuple, LoadBalanceId id, List<PortPairId> path)
fiveTuple - five tuple from the packetid - load balance path identifierpath - load balanced path of list of port pairsvoid addSfcClassifiers(LoadBalanceId id, List<org.onosproject.net.DeviceId> classifierList)
id - load balance path identifierclassifierList - list of classifier devicesvoid addSfcForwarders(LoadBalanceId id, List<org.onosproject.net.DeviceId> forwarderList)
id - load balance path identifierforwarderList - list of forwarder devicesvoid removeSfcClassifiers(LoadBalanceId id, List<org.onosproject.net.DeviceId> classifierList)
id - load balance path identifierclassifierList - list of classifier devicesvoid removeSfcForwarders(LoadBalanceId id, List<org.onosproject.net.DeviceId> forwarderList)
id - load balance path identifierforwarderList - list of forwarder devicesList<org.onosproject.net.DeviceId> getSfcClassifiers(LoadBalanceId id)
id - load balance path identifierList<org.onosproject.net.DeviceId> getSfcForwarders(LoadBalanceId id)
id - load balance path identifierLoadBalanceId getLoadBalanceId(FiveTuple fiveTuple)
fiveTuple - five tuple from the packetSet<FiveTuple> getLoadBalanceIdMapKeys()
Set<LoadBalanceId> getLoadBalancePathMapKeys()
List<PortPairId> getLoadBalancePath(LoadBalanceId id)
id - load balance id.List<PortPairId> getLoadBalancePath(FiveTuple fiveTuple)
fiveTuple - five tuple from the packetint getLoadBalancePathSize()
LoadBalanceId matchPath(List<PortPairId> path)
path - load balanced pathboolean exactMatch(PortChain portChain)
Exact 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.
portChain - other port chain to match against