tres v0.1.0 Openflow.Action.PushVlan

Push a new VLAN tag

Link to this section Summary

Functions

Create a new push_vlan action struct.
0x8100 is a default value

Link to this section Types

Link to this type

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

Link to this section Functions

Link to this function

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

Create a new push_vlan action struct.
0x8100 is a default value.

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

ofpat()
ofpat() :: 17

Link to this function

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

Link to this function

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