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

---
v3
* First post
---
 .../of14/5-30-ofp_port_stats_reply.packet          | Bin 304 -> 360 bytes
 ryu/tests/packet_data_generator/src/x5.erl         |  14 +++++++++-
 .../of14/5-30-ofp_port_stats_reply.packet.json     |  29 ++++++++++++++++++++-
 3 files changed, 41 insertions(+), 2 deletions(-)

diff --git a/ryu/tests/packet_data/of14/5-30-ofp_port_stats_reply.packet 
b/ryu/tests/packet_data/of14/5-30-ofp_port_stats_reply.packet
index 
5ce188b08612d08a1334e69d7af55eba56c05b90..0fd4fea90fdb9c109e4551a7c73aa05f4ca234a3
 100644
GIT binary patch
delta 91
zcmdnM^nyu(RhTh@0R&jUBm=_(FwH*EQGB9)r^)~S3_L)ARH!5akS_q`GXiNwAYTN^
NX9Dqom}%mc8UUuS4yXVC

delta 38
kcmaFCw1G*2RhZF$0R&jUBm=_=FwH*EQGB9)=fn>c0A)f3+yDRo

diff --git a/ryu/tests/packet_data_generator/src/x5.erl 
b/ryu/tests/packet_data_generator/src/x5.erl
index 481e8b8..de3af57 100644
--- a/ryu/tests/packet_data_generator/src/x5.erl
+++ b/ryu/tests/packet_data_generator/src/x5.erl
@@ -552,7 +552,19 @@ x() ->
                              tx_pwr = 2000,
                              rx_pwr = 2000,
                              bias_current = 300,
-                             temperature = 273}]},
+                             temperature = 273},
+                          #ofp_port_stats_prop_experimenter{
+                              experimenter = 101,
+                              exp_type = 0,
+                              data = <<>>},
+                          #ofp_port_stats_prop_experimenter{
+                              experimenter = 101,
+                              exp_type = 1,
+                              data = <<1:32>>},
+                          #ofp_port_stats_prop_experimenter{
+                              experimenter = 101,
+                              exp_type = 2,
+                              data = <<1:32,2:32>>}]},
                  #ofp_port_stats{
                      port_no = 6,rx_packets = 4,tx_packets = 4,rx_bytes = 336,
                      tx_bytes = 336,rx_dropped = 0,tx_dropped = 0,
diff --git 
a/ryu/tests/unit/ofproto/json/of14/5-30-ofp_port_stats_reply.packet.json 
b/ryu/tests/unit/ofproto/json/of14/5-30-ofp_port_stats_reply.packet.json
index 0376e7b..eb39856 100644
--- a/ryu/tests/unit/ofproto/json/of14/5-30-ofp_port_stats_reply.packet.json
+++ b/ryu/tests/unit/ofproto/json/of14/5-30-ofp_port_stats_reply.packet.json
@@ -5,7 +5,7 @@
             "OFPPortStats": {
                "duration_nsec": 0, 
                "duration_sec": 0, 
-               "length": 168, 
+               "length": 224, 
                "port_no": 7, 
                "properties": [
                   {
@@ -34,6 +34,33 @@
                           "type": 1, 
                           "tx_grid_span": 500
                       }
+                  },
+                  {
+                     "OFPPortStatsPropExperimenter": {
+                         "length": 12, 
+                         "type": 65535, 
+                         "exp_type": 0, 
+                         "experimenter": 101, 
+                         "data": []
+                     }
+                  }, 
+                  {
+                     "OFPPortStatsPropExperimenter": {
+                         "length": 16, 
+                         "type": 65535, 
+                         "exp_type": 1, 
+                         "experimenter": 101, 
+                         "data": [1]
+                     }
+                  }, 
+                  {
+                     "OFPPortStatsPropExperimenter": {
+                         "length": 20, 
+                         "type": 65535, 
+                         "exp_type": 2, 
+                         "experimenter": 101, 
+                         "data": [1, 2]
+                     }
                   }
                ], 
                "rx_bytes": 0, 
-- 
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