Class TrafficMatchKey


  • public class TrafficMatchKey
    extends Object
    Traffic match key used by the store to track the operations ongoing on the devices. Traffic match is the high level intent expressed by the user that gets translated by the PolicyManager in modifications operated on the devices. The policy operations are more important than the policy itself without them the policy cannot be considered fulfilled.
    • Constructor Detail

      • TrafficMatchKey

        public TrafficMatchKey​(org.onosproject.net.DeviceId deviceId,
                               org.onosproject.segmentrouting.policy.api.TrafficMatchId trafficMatchId)
        Constructs new traffic match key with given device id and traffic match id.
        Parameters:
        deviceId - device id
        trafficMatchId - traffic match id
    • Method Detail

      • deviceId

        public org.onosproject.net.DeviceId deviceId()
        Gets device id.
        Returns:
        device id of the policy key
      • trafficMatchId

        public org.onosproject.segmentrouting.policy.api.TrafficMatchId trafficMatchId()
        Gets traffic match id.
        Returns:
        the id of the traffic match
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromString

        public static TrafficMatchKey fromString​(String str)
        Parses from a string the police key.
        Parameters:
        str - the string to parse
        Returns:
        the policy key if present in the str, null otherwise