Class DefaultL2TunnelPolicy

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultL2TunnelPolicy​(long tunnelId, org.onosproject.net.ConnectPoint cP1, org.onlab.packet.VlanId cP1InnerTag, org.onlab.packet.VlanId cP1OuterTag, org.onosproject.net.ConnectPoint cP2, org.onlab.packet.VlanId cP2InnerTag, org.onlab.packet.VlanId cP2OuterTag)
      Creates a default l2 tunnel policy using the given parameters.
      DefaultL2TunnelPolicy​(DefaultL2TunnelPolicy policy)
      Creates a default l2 policy given the provided policy.
    • Constructor Detail

      • DefaultL2TunnelPolicy

        public DefaultL2TunnelPolicy​(long tunnelId,
                                     org.onosproject.net.ConnectPoint cP1,
                                     org.onlab.packet.VlanId cP1InnerTag,
                                     org.onlab.packet.VlanId cP1OuterTag,
                                     org.onosproject.net.ConnectPoint cP2,
                                     org.onlab.packet.VlanId cP2InnerTag,
                                     org.onlab.packet.VlanId cP2OuterTag)
        Creates a default l2 tunnel policy using the given parameters.
        Parameters:
        tunnelId - the tunnel id
        cP1 - the first connect point
        cP1InnerTag - the cP1 inner tag
        cP1OuterTag - the cP1 outer tag
        cP2 - the second connect point
        cP2InnerTag - the cP2 inner tag
        cP2OuterTag - the cP2 outer tag
      • DefaultL2TunnelPolicy

        public DefaultL2TunnelPolicy​(DefaultL2TunnelPolicy policy)
        Creates a default l2 policy given the provided policy.
        Parameters:
        policy - L2policy to replicate
    • Method Detail

      • cP1

        public org.onosproject.net.ConnectPoint cP1()
        Description copied from interface: L2TunnelPolicy
        Returns the first connect point of the policy.
        Specified by:
        cP1 in interface L2TunnelPolicy
        Returns:
        first connect point
      • cP2

        public org.onosproject.net.ConnectPoint cP2()
        Description copied from interface: L2TunnelPolicy
        Returns the second connect point of the policy.
        Specified by:
        cP2 in interface L2TunnelPolicy
        Returns:
        second connect point
      • cP1InnerTag

        public org.onlab.packet.VlanId cP1InnerTag()
        Description copied from interface: L2TunnelPolicy
        Returns the cP1 inner vlan tag of the policy.
        Specified by:
        cP1InnerTag in interface L2TunnelPolicy
        Returns:
        cP1 inner vlan tag
      • cP1OuterTag

        public org.onlab.packet.VlanId cP1OuterTag()
        Description copied from interface: L2TunnelPolicy
        Returns the cP1 outer vlan tag of the policy.
        Specified by:
        cP1OuterTag in interface L2TunnelPolicy
        Returns:
        cP1 outer vlan tag
      • cP2InnerTag

        public org.onlab.packet.VlanId cP2InnerTag()
        Description copied from interface: L2TunnelPolicy
        Returns the cP2 inner vlan tag of the policy.
        Specified by:
        cP2InnerTag in interface L2TunnelPolicy
        Returns:
        cP2 inner vlan tag
      • cP2OuterTag

        public org.onlab.packet.VlanId cP2OuterTag()
        Description copied from interface: L2TunnelPolicy
        Returns the cP2 outer vlan tag of the policy.
        Specified by:
        cP2OuterTag in interface L2TunnelPolicy
        Returns:
        cP2 outer vlan tag
      • tunnelId

        public long tunnelId()
        Description copied from interface: L2TunnelPolicy
        Returns the tunnel ID of the policy.
        Specified by:
        tunnelId in interface L2TunnelPolicy
        Returns:
        Tunnel ID
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object