Class 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.
    • 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 identifier
        appId - application identifier
        config - interface to retrieve the device properties
        linkService - link service object
        flowObjService - flow objective service object
        srManager - 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 group
        params - 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 group
        params - 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