diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2016-01-18 10:56:16 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-01-19 10:52:08 +0900 |
commit | de2602bac7bcf647ea56c84a1dcd4419ceafb287 (patch) | |
tree | 767398fa6caba5ed869398756049fe791ffb10ea | |
parent | aa3a2d594976cbc3d640b4ef1dd50b6bc0e01ef9 (diff) |
test_parser: Add expected json representations
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
4 files changed, 24 insertions, 3 deletions
diff --git a/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-features_reply.packet.json b/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-features_reply.packet.json new file mode 100644 index 00000000..3d828093 --- /dev/null +++ b/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-features_reply.packet.json @@ -0,0 +1,9 @@ +{ + "OFPSwitchFeatures": { + "auxiliary_id": 0, + "capabilities": 79, + "datapath_id": 1, + "n_buffers": 255, + "n_tables": 255 + } +} diff --git a/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-get_config_reply.packet.json b/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-get_config_reply.packet.json new file mode 100644 index 00000000..62b37b4d --- /dev/null +++ b/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-get_config_reply.packet.json @@ -0,0 +1,6 @@ +{ + "OFPGetConfigReply": { + "flags": 0, + "miss_send_len": 128 + } +} diff --git a/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-set_config.packet.json b/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-set_config.packet.json new file mode 100644 index 00000000..cd5398b7 --- /dev/null +++ b/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-set_config.packet.json @@ -0,0 +1,6 @@ +{ + "OFPSetConfig": { + "flags": 0, + "miss_send_len": 128 + } +} diff --git a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-features_reply.packet.json b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-features_reply.packet.json index 12e8744a..3d828093 100644 --- a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-features_reply.packet.json +++ b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-features_reply.packet.json @@ -1,9 +1,9 @@ { "OFPSwitchFeatures": { - "auxiliary_id": 99, + "auxiliary_id": 0, "capabilities": 79, - "datapath_id": 9210263729383, - "n_buffers": 0, + "datapath_id": 1, + "n_buffers": 255, "n_tables": 255 } } |