Add openflow enum generator
This commit is contained in:
parent
44919bc079
commit
0dd7867ceb
9 changed files with 14005 additions and 528 deletions
|
|
@ -19,6 +19,7 @@ defmodule Openflow.Echo.Reply do
|
|||
data: options[:data] || ""
|
||||
}
|
||||
end
|
||||
|
||||
def new(data) when is_binary(data) do
|
||||
%Reply{data: data}
|
||||
end
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ defmodule Openflow.Echo.Request do
|
|||
data: options[:data] || ""
|
||||
}
|
||||
end
|
||||
|
||||
def new(data) when is_binary(data) do
|
||||
%Request{data: data}
|
||||
end
|
||||
|
|
|
|||
1122
lib/openflow/enum_gen.ex
Normal file
1122
lib/openflow/enum_gen.ex
Normal file
File diff suppressed because it is too large
Load diff
13392
lib/openflow/enums.ex
13392
lib/openflow/enums.ex
File diff suppressed because it is too large
Load diff
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue