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

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

View file

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