Class PolicyGroupHandler
- java.lang.Object
-
- org.onosproject.segmentrouting.grouphandler.DefaultGroupHandler
-
- org.onosproject.segmentrouting.grouphandler.PolicyGroupHandler
-
public class PolicyGroupHandler extends DefaultGroupHandler
A module to create group chains based on the specified device ports and label stack to be applied on each port.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.onosproject.segmentrouting.grouphandler.DefaultGroupHandler
DefaultGroupHandler.BucketCorrector
-
-
Field Summary
-
Fields inherited from class org.onosproject.segmentrouting.grouphandler.DefaultGroupHandler
allSegmentIds, appId, deviceConfig, deviceId, devicePortMap, dsNextObjStore, flowObjectiveService, ipv4NodeSegmentId, ipv6NodeSegmentId, isEdgeRouter, kryo, linkService, macVlanNextObjStore, nodeMacAddr, portDeviceMap, portNextObjStore, vlanNextObjStore
-
-
Constructor Summary
Constructors Constructor Description PolicyGroupHandler(org.onosproject.net.DeviceId deviceId, org.onosproject.core.ApplicationId appId, org.onosproject.segmentrouting.config.DeviceProperties config, org.onosproject.net.link.LinkService linkService, org.onosproject.net.flowobjective.FlowObjectiveService flowObjService, SegmentRoutingManager srManager)Constructs policy group handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyGroupIdentifiercreatePolicyGroupChain(String id, List<PolicyGroupParams> params)Creates policy group chain.PolicyGroupIdentifiergeneratePolicyGroupKey(String id, List<PolicyGroupParams> params)Generates policy group key.voidremoveGroupChain(PolicyGroupIdentifier key)Removes policy group chain.-
Methods inherited from class org.onosproject.segmentrouting.grouphandler.DefaultGroupHandler
addNeighborAtPort, cleanUpForNeighborDown, createBcastGroupFromVlan, createGroupFromDestinationSet, createGroupFromMacVlan, createGroupFromPort, createGroupHandler, createGroupsFromVlanConfig, createPortNextObjective, fixHashGroups, getMacVlanNextObjectiveId, getNextObjectiveId, getPortNextObjectiveId, getVlanNextObjectiveId, hasNextObjectiveId, portDownForLink, portUpForLink, processEdgePort, removeBcastGroupFromVlan, removeGroup, removeGroupFromPort, removePortNextObjective, retryHash, shutdown, triggerBucketCorrector, updateGroupFromVlanConfiguration, updateL2InterfaceGroupBucket, updateL3UcastGroupBucket
-
-
-
-
Constructor Detail
-
PolicyGroupHandler
public PolicyGroupHandler(org.onosproject.net.DeviceId deviceId, org.onosproject.core.ApplicationId appId, org.onosproject.segmentrouting.config.DeviceProperties config, org.onosproject.net.link.LinkService linkService, org.onosproject.net.flowobjective.FlowObjectiveService flowObjService, SegmentRoutingManager srManager)Constructs policy group handler.- Parameters:
deviceId- device identifierappId- application identifierconfig- interface to retrieve the device propertieslinkService- link service objectflowObjService- flow objective service objectsrManager- segment routing manager
-
-
Method Detail
-
createPolicyGroupChain
public PolicyGroupIdentifier createPolicyGroupChain(String id, List<PolicyGroupParams> params)
Creates policy group chain.- Parameters:
id- unique identifier associated with the policy groupparams- a list of policy group params- Returns:
- policy group identifier
-
generatePolicyGroupKey
public PolicyGroupIdentifier generatePolicyGroupKey(String id, List<PolicyGroupParams> params)
Generates policy group key.- Parameters:
id- unique identifier associated with the policy groupparams- a list of policy group params- Returns:
- policy group identifier
-
removeGroupChain
public void removeGroupChain(PolicyGroupIdentifier key)
Removes policy group chain.- Parameters:
key- policy group identifier
-
-