Add testcases for Openflow13 standard actions

This commit is contained in:
Eishun Kondoh 2019-03-18 22:22:37 +09:00
parent 2743bf3e0c
commit efae8016f2
4 changed files with 177 additions and 4 deletions

View file

@ -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