Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 .../of13/libofproto-OFP13-flow_mod.packet.json     | 79 +++++++++++++++++++++-
 .../of15/libofproto-OFP15-bundle_add.packet.json   | 79 +++++++++++++++++++++-
 .../of15/libofproto-OFP15-flow_mod.packet.json     | 79 +++++++++++++++++++++-
 3 files changed, 234 insertions(+), 3 deletions(-)

diff --git 
a/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-flow_mod.packet.json 
b/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-flow_mod.packet.json
index 1428c5d..2381214 100644
--- a/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-flow_mod.packet.json
+++ b/ryu/tests/unit/ofproto/json/of13/libofproto-OFP13-flow_mod.packet.json
@@ -27,9 +27,86 @@
                            }
                         }
                      }
+                  }, 
+                  {
+                     "NXActionLearn": {
+                        "cookie": 0, 
+                        "experimenter": 8992, 
+                        "fin_hard_timeout": 0, 
+                        "fin_idle_timeout": 0, 
+                        "flags": 0, 
+                        "hard_timeout": 300, 
+                        "idle_timeout": 0, 
+                        "len": 96, 
+                        "priority": 1, 
+                        "specs": [
+                           {
+                              "NXFlowSpecMatch": {
+                                 "dst": [
+                                    "vlan_vid", 
+                                    0
+                                 ], 
+                                 "n_bits": 12, 
+                                 "src": [
+                                    "vlan_vid", 
+                                    0
+                                 ]
+                              }
+                           }, 
+                           {
+                              "NXFlowSpecMatch": {
+                                 "dst": [
+                                    "eth_dst_nxm", 
+                                    0
+                                 ], 
+                                 "n_bits": 48, 
+                                 "src": [
+                                    "eth_src_nxm", 
+                                    0
+                                 ]
+                              }
+                           }, 
+                           {
+                              "NXFlowSpecLoad": {
+                                 "dst": [
+                                    "vlan_vid", 
+                                    0
+                                 ], 
+                                 "n_bits": 12, 
+                                 "src": 0
+                              }
+                           }, 
+                           {
+                              "NXFlowSpecLoad": {
+                                 "dst": [
+                                    "tunnel_id_nxm", 
+                                    0
+                                 ], 
+                                 "n_bits": 64, 
+                                 "src": [
+                                    "tunnel_id_nxm", 
+                                    0
+                                 ]
+                              }
+                           }, 
+                           {
+                              "NXFlowSpecOutput": {
+                                 "dst": "", 
+                                 "n_bits": 32, 
+                                 "src": [
+                                    "in_port", 
+                                    0
+                                 ]
+                              }
+                           }
+                        ], 
+                        "subtype": 16, 
+                        "table_id": 99, 
+                        "type": 65535
+                     }
                   }
                ], 
-               "len": 32, 
+               "len": 128, 
                "type": 4
             }
          }, 
diff --git 
a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-bundle_add.packet.json 
b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-bundle_add.packet.json
index 7e6fcf5..6010698 100644
--- a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-bundle_add.packet.json
+++ b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-bundle_add.packet.json
@@ -32,9 +32,86 @@
                                  }
                               }
                            }
+                        }, 
+                        {
+                           "NXActionLearn": {
+                              "cookie": 0, 
+                              "experimenter": 8992, 
+                              "fin_hard_timeout": 0, 
+                              "fin_idle_timeout": 0, 
+                              "flags": 0, 
+                              "hard_timeout": 300, 
+                              "idle_timeout": 0, 
+                              "len": 96, 
+                              "priority": 1, 
+                              "specs": [
+                                 {
+                                    "NXFlowSpecMatch": {
+                                       "dst": [
+                                          "vlan_vid", 
+                                          0
+                                       ], 
+                                       "n_bits": 12, 
+                                       "src": [
+                                          "vlan_vid", 
+                                          0
+                                       ]
+                                    }
+                                 }, 
+                                 {
+                                    "NXFlowSpecMatch": {
+                                       "dst": [
+                                          "eth_dst_nxm", 
+                                          0
+                                       ], 
+                                       "n_bits": 48, 
+                                       "src": [
+                                          "eth_src_nxm", 
+                                          0
+                                       ]
+                                    }
+                                 }, 
+                                 {
+                                    "NXFlowSpecLoad": {
+                                       "dst": [
+                                          "vlan_vid", 
+                                          0
+                                       ], 
+                                       "n_bits": 12, 
+                                       "src": 0
+                                    }
+                                 }, 
+                                 {
+                                    "NXFlowSpecLoad": {
+                                       "dst": [
+                                          "tunnel_id_nxm", 
+                                          0
+                                       ], 
+                                       "n_bits": 64, 
+                                       "src": [
+                                          "tunnel_id_nxm", 
+                                          0
+                                       ]
+                                    }
+                                 }, 
+                                 {
+                                    "NXFlowSpecOutput": {
+                                       "dst": "", 
+                                       "n_bits": 32, 
+                                       "src": [
+                                          "in_port", 
+                                          0
+                                       ]
+                                    }
+                                 }
+                              ], 
+                              "subtype": 16, 
+                              "table_id": 99, 
+                              "type": 65535
+                           }
                         }
                      ], 
-                     "len": 32, 
+                     "len": 128, 
                      "type": 4
                   }
                }, 
diff --git 
a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-flow_mod.packet.json 
b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-flow_mod.packet.json
index d4cef97..8a02842 100644
--- a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-flow_mod.packet.json
+++ b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-flow_mod.packet.json
@@ -28,9 +28,86 @@
                            }
                         }
                      }
+                  }, 
+                  {
+                     "NXActionLearn": {
+                        "cookie": 0, 
+                        "experimenter": 8992, 
+                        "fin_hard_timeout": 0, 
+                        "fin_idle_timeout": 0, 
+                        "flags": 0, 
+                        "hard_timeout": 300, 
+                        "idle_timeout": 0, 
+                        "len": 96, 
+                        "priority": 1, 
+                        "specs": [
+                           {
+                              "NXFlowSpecMatch": {
+                                 "dst": [
+                                    "vlan_vid", 
+                                    0
+                                 ], 
+                                 "n_bits": 12, 
+                                 "src": [
+                                    "vlan_vid", 
+                                    0
+                                 ]
+                              }
+                           }, 
+                           {
+                              "NXFlowSpecMatch": {
+                                 "dst": [
+                                    "eth_dst_nxm", 
+                                    0
+                                 ], 
+                                 "n_bits": 48, 
+                                 "src": [
+                                    "eth_src_nxm", 
+                                    0
+                                 ]
+                              }
+                           }, 
+                           {
+                              "NXFlowSpecLoad": {
+                                 "dst": [
+                                    "vlan_vid", 
+                                    0
+                                 ], 
+                                 "n_bits": 12, 
+                                 "src": 0
+                              }
+                           }, 
+                           {
+                              "NXFlowSpecLoad": {
+                                 "dst": [
+                                    "tunnel_id_nxm", 
+                                    0
+                                 ], 
+                                 "n_bits": 64, 
+                                 "src": [
+                                    "tunnel_id_nxm", 
+                                    0
+                                 ]
+                              }
+                           }, 
+                           {
+                              "NXFlowSpecOutput": {
+                                 "dst": "", 
+                                 "n_bits": 32, 
+                                 "src": [
+                                    "in_port", 
+                                    0
+                                 ]
+                              }
+                           }
+                        ], 
+                        "subtype": 16, 
+                        "table_id": 99, 
+                        "type": 65535
+                     }
                   }
                ], 
-               "len": 32, 
+               "len": 128, 
                "type": 4
             }
          }, 
-- 
2.2.1


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to