openflow/multipart: Add support NXST_FLOW_MONITOR
This commit is contained in:
parent
d1b5777b73
commit
c7f7873493
2 changed files with 31 additions and 0 deletions
|
|
@ -990,6 +990,14 @@ defmodule Openflow.EnumGen do
|
||||||
apply_setfield_miss: 15,
|
apply_setfield_miss: 15,
|
||||||
experimenter: 0xFFFE,
|
experimenter: 0xFFFE,
|
||||||
experimenter_miss: 0xFFFF
|
experimenter_miss: 0xFFFF
|
||||||
|
],
|
||||||
|
nx_flow_monitor_flags: [
|
||||||
|
initial: 1 <<< 0,
|
||||||
|
add: 1 <<< 1,
|
||||||
|
delete: 1 <<< 2,
|
||||||
|
modify: 1 <<< 3,
|
||||||
|
action: 1 <<< 4,
|
||||||
|
own: 1 <<< 5
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
23
lib/openflow/multipart/flow_monitor/request.ex
Normal file
23
lib/openflow/multipart/flow_monitor/request.ex
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
defmodule Openflow.Multipart.FlowMonitor.Request do
|
||||||
|
defstruct(
|
||||||
|
version: 4,
|
||||||
|
xid: 0,
|
||||||
|
# virtual field
|
||||||
|
datapath_id: nil,
|
||||||
|
id: 0,
|
||||||
|
flags: [],
|
||||||
|
out_port: :none,
|
||||||
|
table_id: :all,
|
||||||
|
match: []
|
||||||
|
)
|
||||||
|
|
||||||
|
alias __MODULE__
|
||||||
|
|
||||||
|
def new(%Request{}) do
|
||||||
|
<<>>
|
||||||
|
end
|
||||||
|
|
||||||
|
def read(_binary) do
|
||||||
|
%Request{}
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue