Class ForwardingActionRule.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withSessionId

        public ForwardingActionRule.Builder withSessionId​(long sessionId)
        Set the ID of the PFCP session that created this FAR.
        Parameters:
        sessionId - PFC session ID
        Returns:
        This builder object
      • setFarId

        public ForwardingActionRule.Builder setFarId​(int farId)
        Set the PFCP Session-local ID of this FAR.
        Parameters:
        farId - PFCP session-local FAR ID
        Returns:
        This builder object
      • setForwardFlag

        public ForwardingActionRule.Builder setForwardFlag​(boolean flag)
        Make this FAR forward incoming packets.
        Parameters:
        flag - the flag value to set
        Returns:
        This builder object
      • setDropFlag

        public ForwardingActionRule.Builder setDropFlag​(boolean flag)
        Make this FAR drop incoming packets.
        Parameters:
        flag - the flag value to set
        Returns:
        This builder object
      • setBufferFlag

        public ForwardingActionRule.Builder setBufferFlag​(boolean flag)
        Make this FAR buffer incoming packets.
        Parameters:
        flag - the flag value to set
        Returns:
        This builder object
      • setNotifyFlag

        public ForwardingActionRule.Builder setNotifyFlag​(boolean notifyCp)
        Set a flag specifying if the control plane should be notified when this FAR is hit.
        Parameters:
        notifyCp - true if FAR notifies control plane
        Returns:
        This builder object
      • setTunnel

        public ForwardingActionRule.Builder setTunnel​(GtpTunnel tunnel)
        Set the GTP tunnel that this FAR should encapsulate packets with.
        Parameters:
        tunnel - GTP tunnel
        Returns:
        This builder object
      • setTunnel

        public ForwardingActionRule.Builder setTunnel​(Ip4Address src,
                                                      Ip4Address dst,
                                                      ImmutableByteSequence teid,
                                                      short srcPort)
        Set the unidirectional GTP tunnel that this FAR should encapsulate packets with.
        Parameters:
        src - GTP tunnel source IP
        dst - GTP tunnel destination IP
        teid - GTP tunnel ID
        srcPort - GTP tunnel UDP source port (destination port is hardcoded as 2152)
        Returns:
        This builder object