tres v0.1.1 Openflow.Action.PushMpls

Push a new MPLS label

Link to this section Summary

Functions

Create a new push_mpls action struct
0x8847(ETH_P_MPLS_UC) as a default value

Link to this section Types

Link to this type

t()
t() :: %Openflow.Action.PushMpls{ethertype: 0..65535}

Link to this section Functions

Link to this function

new(ethertype \\ 34887)
new(ethertype :: 0..65535) :: t()

Create a new push_mpls action struct
0x8847(ETH_P_MPLS_UC) as a default value.

iex> %PushMpls{ethertype: 0x8847} = PushMpls.new()
Link to this function

ofpat()
ofpat() :: 19

Link to this function

read(arg)
read(<<_::16, _::_*8>>) :: t()

Link to this function

to_binary(push_mpls)
to_binary(t()) :: <<_::16, _::_*8>>