Add openflow enum generator

This commit is contained in:
Eishun Kondoh 2018-03-24 01:27:48 +09:00
parent 44919bc079
commit 0dd7867ceb
9 changed files with 14005 additions and 528 deletions

View file

@ -18,6 +18,7 @@ defmodule Openflow.TableMod do
table_id: options[:table_id] || 0
}
end
def new(table_id) when is_integer(table_id) or is_atom(table_id) do
%TableMod{table_id: table_id}
end