mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-05 20:36:10 +02:00
of14: Add bundle add message unit test
Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
7938d73f57
commit
9128082fae
BIN
ryu/tests/packet_data/of14/5-70-ofp_bundle_add_msg.packet
Normal file
BIN
ryu/tests/packet_data/of14/5-70-ofp_bundle_add_msg.packet
Normal file
Binary file not shown.
@ -2960,6 +2960,28 @@ x() ->
|
||||
bundle_id = 1234,
|
||||
type = open_request,
|
||||
flags = [atomic],
|
||||
properties =
|
||||
[#ofp_bundle_prop_experimenter{
|
||||
experimenter = 101,
|
||||
exp_type = 0,
|
||||
data = <<>>},
|
||||
#ofp_bundle_prop_experimenter{
|
||||
experimenter = 101,
|
||||
exp_type = 1,
|
||||
data = <<1:32>>},
|
||||
#ofp_bundle_prop_experimenter{
|
||||
experimenter = 101,
|
||||
exp_type = 2,
|
||||
data = <<1:32,2:32>>}]},
|
||||
#ofp_bundle_add_msg{
|
||||
bundle_id = 1234,
|
||||
flags = [atomic],
|
||||
message =
|
||||
#ofp_message{
|
||||
version = 5,
|
||||
type = echo_request,
|
||||
xid = 0,
|
||||
body = #ofp_echo_request{}},
|
||||
properties =
|
||||
[#ofp_bundle_prop_experimenter{
|
||||
experimenter = 101,
|
||||
|
||||
@ -0,0 +1,40 @@
|
||||
{
|
||||
"OFPBundleAddMsg": {
|
||||
"bundle_id": 1234,
|
||||
"flags": 1,
|
||||
"message": {
|
||||
"OFPEchoRequest": {
|
||||
"data": null
|
||||
}
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"OFPBundlePropExperimenter": {
|
||||
"data": "",
|
||||
"exp_type": 0,
|
||||
"experimenter": 101,
|
||||
"length": 12,
|
||||
"type": 65535
|
||||
}
|
||||
},
|
||||
{
|
||||
"OFPBundlePropExperimenter": {
|
||||
"data": "AAAAAQ==",
|
||||
"exp_type": 1,
|
||||
"experimenter": 101,
|
||||
"length": 16,
|
||||
"type": 65535
|
||||
}
|
||||
},
|
||||
{
|
||||
"OFPBundlePropExperimenter": {
|
||||
"data": "AAAAAQAAAAI=",
|
||||
"exp_type": 2,
|
||||
"experimenter": 101,
|
||||
"length": 20,
|
||||
"type": 65535
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@ -114,6 +114,7 @@ implemented = {
|
||||
ofproto_v1_4.OFPT_ROLE_STATUS: (True, False),
|
||||
ofproto_v1_4.OFPT_TABLE_STATUS: (True, False),
|
||||
ofproto_v1_4.OFPT_BUNDLE_CONTROL: (False, True),
|
||||
ofproto_v1_4.OFPT_BUNDLE_ADD_MESSAGE: (False, True),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user