Add testcases for Openflow13 standard actions
This commit is contained in:
parent
2743bf3e0c
commit
efae8016f2
4 changed files with 177 additions and 4 deletions
|
|
@ -1,11 +1,13 @@
|
|||
defmodule Openflow.Action.PushMpls do
|
||||
defstruct(ethertype: 0x8847)
|
||||
|
||||
@eth_p_mpls_uc 0x8847
|
||||
|
||||
alias __MODULE__
|
||||
|
||||
def ofpat, do: 19
|
||||
|
||||
def new(ethertype) do
|
||||
def new(ethertype \\ @eth_p_mpls_uc) do
|
||||
%PushMpls{ethertype: ethertype}
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue