Signed-off-by: Simon Horman <[email protected]>

---
v2
* first post
---
 .../packet_data/of14/5-23-ofp_table_mod.packet     | Bin 16 -> 88 bytes
 ryu/tests/packet_data_generator/src/x5.erl         |  21 ++++++++-
 .../json/of14/5-23-ofp_table_mod.packet.json       |  47 ++++++++++++++++++++-
 3 files changed, 66 insertions(+), 2 deletions(-)

diff --git a/ryu/tests/packet_data/of14/5-23-ofp_table_mod.packet 
b/ryu/tests/packet_data/of14/5-23-ofp_table_mod.packet
index 
6e1ce45b6f2deb2848273684a432996d95aa043a..8df2590cdcb547fe1e9042c2b403d3df1e36f184
 100644
GIT binary patch
literal 88
zcmZP-WQbq@g8v`_1eh2&z%(<2{{NqW2gpwaivbBBUjWKy1k#K^z6g}h1mXiRh-Lr)
DlpYA<

literal 16
RcmZP-WDsBgg8v`_2mlHv0VV(d

diff --git a/ryu/tests/packet_data_generator/src/x5.erl 
b/ryu/tests/packet_data_generator/src/x5.erl
index 91ccc68..81bb769 100644
--- a/ryu/tests/packet_data_generator/src/x5.erl
+++ b/ryu/tests/packet_data_generator/src/x5.erl
@@ -489,7 +489,26 @@ x() ->
             config = [],mask = [],
             properties = 
                 [#ofp_port_mod_prop_ethernet{advertise = [fiber]}]},
-        #ofp_table_mod{table_id = all},
+        #ofp_table_mod{
+            properties =
+                 [#ofp_table_mod_prop_eviction{flags = []},
+                  #ofp_table_mod_prop_vacancy{
+                      vacancy = 0,
+                      vacancy_down = 0,
+                      vacancy_up = 0},
+                  #ofp_table_mod_prop_experimenter{
+                      experimenter = 101,
+                      exp_type = 0,
+                      data = <<>>},
+                  #ofp_table_mod_prop_experimenter{
+                      experimenter = 101,
+                      exp_type = 1,
+                      data = <<1:32>>},
+                  #ofp_table_mod_prop_experimenter{
+                      experimenter = 101,
+                      exp_type = 2,
+                      data = <<1:32,2:32>>}],
+            table_id = all},
         #ofp_desc_request{},
         #ofp_aggregate_stats_request{
             flags = [],table_id = all,out_port = any,out_group = any,
diff --git a/ryu/tests/unit/ofproto/json/of14/5-23-ofp_table_mod.packet.json 
b/ryu/tests/unit/ofproto/json/of14/5-23-ofp_table_mod.packet.json
index 5019c29..1725e19 100644
--- a/ryu/tests/unit/ofproto/json/of14/5-23-ofp_table_mod.packet.json
+++ b/ryu/tests/unit/ofproto/json/of14/5-23-ofp_table_mod.packet.json
@@ -1,6 +1,51 @@
 {
    "OFPTableMod": {
       "config": 0, 
-      "table_id": 255
+      "table_id": 255, 
+       "properties": [
+           {
+               "OFPTableModPropEviction": {
+                   "flags": 0, 
+                   "length": 8, 
+                   "type": 2
+               }
+           },
+           {
+               "OFPTableModPropVacancy": {
+                   "length": 8, 
+                   "type": 3, 
+                   "vacancy": 0, 
+                   "vacancy_down": 0, 
+                   "vacancy_up": 0
+               }
+           },
+           {
+               "OFPTableModPropExperimenter": {
+                   "length": 12, 
+                   "type": 65535, 
+                   "exp_type": 0, 
+                   "experimenter": 101, 
+                   "data": []
+               }
+           },
+           {
+               "OFPTableModPropExperimenter": {
+                   "length": 16, 
+                   "type": 65535, 
+                   "exp_type": 1, 
+                   "experimenter": 101, 
+                   "data": [1]
+               }
+           },
+           {
+               "OFPTableModPropExperimenter": {
+                   "length": 20, 
+                   "type": 65535, 
+                   "exp_type": 2, 
+                   "experimenter": 101, 
+                   "data": [1, 2]
+               }
+           }
+       ]
    }
 }
-- 
1.8.5.2


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to