Signed-off-by: Simon Horman <[email protected]>
---
 .../packet_data/of14/5-37-ofp_port_status.packet   | Bin 128 -> 184 bytes
 ryu/tests/packet_data_generator/src/x5.erl         |  14 +++++++++-
 .../json/of14/5-37-ofp_port_status.packet.json     |  31 +++++++++++++++++++--
 3 files changed, 42 insertions(+), 3 deletions(-)

diff --git a/ryu/tests/packet_data/of14/5-37-ofp_port_status.packet 
b/ryu/tests/packet_data/of14/5-37-ofp_port_status.packet
index 
e8310212b732fa30440297f6d9ffb0e59366d1a7..e8c67823e8b497afd62dc2e04954d8ee086b8894
 100644
GIT binary patch
delta 87
zcmZo*+`%Zu%EPdO0Tr+_te7a4W%2(%0}oIl6($Mf3qbjdK$;QA7lHDbKztwu(F_1S
CM+<TQ

delta 30
ZcmdnN*uW^p%EQpWfC|_d3MPtW0RT4g18M*O

diff --git a/ryu/tests/packet_data_generator/src/x5.erl 
b/ryu/tests/packet_data_generator/src/x5.erl
index e1cbde5..93a426b 100644
--- a/ryu/tests/packet_data_generator/src/x5.erl
+++ b/ryu/tests/packet_data_generator/src/x5.erl
@@ -609,7 +609,19 @@ x() ->
                              rx_max_freq_lmda = 2000,
                              rx_grid_freq_lmda = 1500,
                              tx_pwr_min = 1000,
-                             tx_pwr_max = 2000}]}
+                             tx_pwr_max = 2000},
+                          #ofp_port_desc_prop_experimenter{
+                              experimenter = 101,
+                              exp_type = 0,
+                              data = <<>>},
+                          #ofp_port_desc_prop_experimenter{
+                              experimenter = 101,
+                              exp_type = 1,
+                              data = <<1:32>>},
+                          #ofp_port_desc_prop_experimenter{
+                              experimenter = 101,
+                              exp_type = 2,
+                              data = <<1:32,2:32>>}]}
         },
         #ofp_flow_removed{
             cookie = <<0,0,0,0,0,0,0,0>>,
diff --git a/ryu/tests/unit/ofproto/json/of14/5-37-ofp_port_status.packet.json 
b/ryu/tests/unit/ofproto/json/of14/5-37-ofp_port_status.packet.json
index b572fd6..d3277ff 100644
--- a/ryu/tests/unit/ofproto/json/of14/5-37-ofp_port_status.packet.json
+++ b/ryu/tests/unit/ofproto/json/of14/5-37-ofp_port_status.packet.json
@@ -4,7 +4,7 @@
          "OFPPort": {
             "config": 0, 
             "hw_addr": "f2:0b:a4:d0:3f:70", 
-            "length": 112, 
+            "length": 168, 
             "name": "\u79c1\u306e\u30dd\u30fc\u30c8", 
             "port_no": 7, 
             "properties": [
@@ -34,7 +34,34 @@
                        "tx_pwr_max": 2000, 
                        "tx_pwr_min": 1000
                    }
-               }
+                },
+                {
+                   "OFPPortDescPropExperimenter": {
+                       "length": 12, 
+                       "type": 65535, 
+                       "exp_type": 0, 
+                       "experimenter": 101, 
+                       "data": []
+                   }
+                },
+                {
+                   "OFPPortDescPropExperimenter": {
+                       "length": 16, 
+                       "type": 65535, 
+                       "exp_type": 1, 
+                       "experimenter": 101, 
+                       "data": [1]
+                   }
+                },
+                {
+                   "OFPPortDescPropExperimenter": {
+                       "length": 20, 
+                       "type": 65535, 
+                       "exp_type": 2, 
+                       "experimenter": 101, 
+                       "data": [1, 2]
+                   }
+                }
             ],
             "state": 4
          }
-- 
1.8.5.2


------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to