tres v0.1.1 Openflow.Action.NxResubmit

Searches the flow table again, using a flow that is slightly modified from the original lookup:

Following the lookup, the original in_port is restored.

If the modified flow matched in the flow table, then the corresponding actions are executed. Afterward, actions following NXAST_RESUBMIT in the original set of actions, if any, are executed; any changes made to the packet (e.g. changes to VLAN) by secondary actions persist when those actions are executed, although the original in_port is restored.

Link to this section Summary

Functions

Creates a new nx_resubmit action struct

Link to this section Types

Link to this type

port_no()
port_no() ::
  :max
  | :in_port
  | :table
  | :normal
  | :flood
  | :all
  | :controller
  | :local
  | :none
  | 1..65535

Link to this type

t()
t() :: %{in_port: port_no()}

Link to this section Functions

Link to this function

new(in_port \\ :in_port)
new(port_no()) :: t()

Creates a new nx_resubmit action struct

Options:

  • in_port: New in_port for checking flow table in the one of the port_no() type

Note:

If the modified flow matchd in the flow table, then the corresponding actions are executed,
Afterward, actions following the resubmit in the original set of actions, if any, are executed;
any changes made to the packet by secondary actions persist when those actions are executed, although the original in_port is restored

Example:

iex> %NxResubmit{in_port: :in_port} = NxResubmit.new()
iex> %NxResubmit{in_port: 1} = NxResubmit.new(1)
Link to this function

read(arg)
read(binary()) :: t()

Link to this function

to_binary(nx_resubmit)
to_binary(t()) :: binary()