openflow: Add bundle support
This commit is contained in:
parent
db68e81954
commit
283f487c6b
4 changed files with 227 additions and 1 deletions
22
lib/openflow/bundle/add.ex
Normal file
22
lib/openflow/bundle/add.ex
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
defmodule Openflow.Bundle.Add do
|
||||
defstruct(
|
||||
version: 4,
|
||||
xid: 0,
|
||||
datapath_id: "",
|
||||
aux_id: 0,
|
||||
# bundle header
|
||||
bundle_id: 0,
|
||||
flags: [],
|
||||
message: nil,
|
||||
)
|
||||
|
||||
alias __MODULE__
|
||||
|
||||
# ONF Experimenter
|
||||
@experimenter 0x4F4E4600
|
||||
# BUNDLE_ADD
|
||||
@onf_type 2301
|
||||
|
||||
# experimenter
|
||||
def ofp_type, do: 4
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue