Fix to accept transaction_id to all message structs
This commit is contained in:
parent
bb74f3d8c4
commit
4803c61061
29 changed files with 118 additions and 34 deletions
|
|
@ -15,11 +15,12 @@ defmodule Openflow.GroupMod do
|
|||
def ofp_type, do: 15
|
||||
|
||||
def new(options \\ []) do
|
||||
xid = Keyword.get(options, :xid, 0)
|
||||
command = Keyword.get(options, :command, :add)
|
||||
type = Keyword.get(options, :type, :all)
|
||||
group_id = Keyword.get(options, :group_id, 0)
|
||||
buckets = Keyword.get(options, :buckets, [])
|
||||
%GroupMod{command: command, type: type, group_id: group_id, buckets: buckets}
|
||||
%GroupMod{xid: xid, command: command, type: type, group_id: group_id, buckets: buckets}
|
||||
end
|
||||
|
||||
def read(<<command_int::16, type_int::8, _::8, group_id_int::32, buckets_bin::bytes>>) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue