[Ryu-devel] [PATCH 13/16] topology.switches: fix bin vs text address problem

2013-08-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/topology/switches.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py index cf8fdea..7cb0d26 100644 --- a/ryu/topology/switches.py +++ b/ryu/topology/switches.py @@ -26,7 +26,7 @@ fr

[Ryu-devel] [PATCH 02/16] of12: use text address for OFPPort.hw_addr and OFPPortMod.hw_addr

2013-08-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/ofproto/ofproto_v1_2_parser.py | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index e6dc5c6..94e8e2e 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ry

[Ryu-devel] [PATCH 14/16] a simple script to plot rest_topology's output

2013-08-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- tools/topology_graphviz.py | 33 + 1 file changed, 33 insertions(+) create mode 100755 tools/topology_graphviz.py diff --git a/tools/topology_graphviz.py b/tools/topology_graphviz.py new file mode 100755 index 000..e7884fc

[Ryu-devel] [PATCH 06/16] StringifyMixin: add a way to override converter for specific keys

2013-08-15 Thread YAMAMOTO Takashi
allow a sub class to override method to convert values from/to external representations by defining a class attribute _JSON_FORMATTER. Signed-off-by: YAMAMOTO Takashi --- ryu/lib/stringify.py | 100 +-- 1 file changed, 65 insertions(+), 35 deletion

[Ryu-devel] [PATCH 01/16] of10: use text address for OFPPhyPort.hw_addr and OFPPortMod.hw_addr

2013-08-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/ofproto/ofproto_v1_0_parser.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_v1_0_parser.py index 3fae86d..e1951c8 100644 --- a/ryu/ofproto/ofproto_v1_0_parser.py +++ b/ryu

[Ryu-devel] [PATCH 16/16] rest_router: update after ofproto hw_addr changes

2013-08-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/app/rest_router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/app/rest_router.py b/ryu/app/rest_router.py index 6bc5717..e0ca1bf 100644 --- a/ryu/app/rest_router.py +++ b/ryu/app/rest_router.py @@ -1237,7 +1237,7 @@ class Port(o

[Ryu-devel] [PATCH 00/16] use text addr for port.hw_addr and port_mod.hw_addr

2013-08-15 Thread YAMAMOTO Takashi
this set includes: - make ofproto use text hw_addr for OFPPort/OFPPortMod - change json representation of these attributes accordingly - associated application updates and fixes - update tests YAMAMOTO Takashi (16): of10: use text address for OFPPhyPort.hw_addr and OFPPortMod.hw_addr of12: use

[Ryu-devel] [PATCH 10/16] of12: update tests

2013-08-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- .../json/of12/3-22-ofp_port_mod.packet.json| 2 +- .../json/of12/3-39-ofp_port_status.packet.json | 2 +- .../json/of12/3-6-ofp_features_reply.packet.json | 4 +- ryu/tests/unit/ofproto/test_parser_v12.py | 58 +++--- 4

[Ryu-devel] [PATCH 07/16] of10: fix json representation of OFPPhyPort.hw_addr and OFPPortMod.hw_addr

2013-08-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/ofproto/ofproto_v1_0_parser.py | 5 + 1 file changed, 5 insertions(+) diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_v1_0_parser.py index e1951c8..03cbc65 100644 --- a/ryu/ofproto/ofproto_v1_0_parser.py +++ b/ryu/ofproto/ofproto

[Ryu-devel] [PATCH 15/16] rest_router: fix of10 case

2013-08-15 Thread YAMAMOTO Takashi
looks like a regression in commit db40bc0f98abc84dcdbd3fa4d19aa573d94188d9. (rest_router: follow packet lib api change) Signed-off-by: YAMAMOTO Takashi --- ryu/app/rest_router.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ryu/app/rest_router.py b/ryu/app/rest_route

[Ryu-devel] [PATCH 04/16] addrconv: add no-op converter

2013-08-15 Thread YAMAMOTO Takashi
to be used for the following ofproto json changes Signed-off-by: YAMAMOTO Takashi --- ryu/lib/addrconv.py | 25 + 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/ryu/lib/addrconv.py b/ryu/lib/addrconv.py index 7641750..bac6da1 100644 --- a/ryu/lib/addrconv.

[Ryu-devel] [PATCH 11/16] of13: fix json representation of OFPPort.hw_addr and OFPPortMod.hw_addr

2013-08-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/ofproto/ofproto_v1_3_parser.py | 5 + 1 file changed, 5 insertions(+) diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index b4b9b0c..3eeda5f 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ryu/ofproto/ofproto

[Ryu-devel] [PATCH 05/16] stringify: make _encode_value and _decode_value take key name

2013-08-15 Thread YAMAMOTO Takashi
a preparation for the following changes. no functional changes yet. Signed-off-by: YAMAMOTO Takashi --- ryu/lib/stringify.py | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ryu/lib/stringify.py b/ryu/lib/stringify.py index 5766f4a..8b755c5 100644 --- a/ryu/

[Ryu-devel] [PATCH 03/16] of13: use text address for OFPPort.hw_addr and OFPPortMod.hw_addr

2013-08-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/ofproto/ofproto_v1_3_parser.py | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index 0d38dee..b4b9b0c 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ry

[Ryu-devel] [PATCH 08/16] of10: update tests

2013-08-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- .../ofproto/json/of10/1-6-ofp_switch_features.packet.json | 4 ++-- ryu/tests/unit/ofproto/test_parser_v10.py | 15 --- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/ryu/tests/unit/ofproto/json/of10/1-6-ofp_switch

[Ryu-devel] [PATCH 09/16] of12: fix json representation of OFPPort.hw_addr and OFPPortMod.hw_addr

2013-08-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/ofproto/ofproto_v1_2_parser.py | 5 + 1 file changed, 5 insertions(+) diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index 94e8e2e..23c90dc 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto

[Ryu-devel] [PATCH 12/16] of13: update tests

2013-08-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/tests/unit/ofproto/json/of13/4-22-ofp_port_mod.packet.json| 2 +- ryu/tests/unit/ofproto/json/of13/4-39-ofp_port_status.packet.json | 2 +- ryu/tests/unit/ofproto/json/of13/4-54-ofp_port_desc_reply.packet.json | 4 ++-- 3 files changed, 4 insert

[Ryu-devel] help

2013-08-15 Thread wangan1213
Hi all, I am trying to modify the original simple_switch application so that it has a daemon thread doing the statistic request periodically. So, in the __init__ of class SimpleSwitch I add self.thread = hub.spawn(self._ststistic_request) where _statistic_request is a function defined in t

Re: [Ryu-devel] [PATCH 1/2] topology.switches: fix bin vs text address problem

2013-08-15 Thread YAMAMOTO Takashi
> On Thu, 15 Aug 2013 16:04:23 +0900 > YAMAMOTO Takashi wrote: > >> Signed-off-by: YAMAMOTO Takashi >> --- >> ryu/topology/switches.py | 7 --- >> 1 file changed, 4 insertions(+), 3 deletions(-) >> >> diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py >> index cf8fdea..850359

Re: [Ryu-devel] [PATCH 1/2] topology.switches: fix bin vs text address problem

2013-08-15 Thread FUJITA Tomonori
On Thu, 15 Aug 2013 16:04:23 +0900 YAMAMOTO Takashi wrote: > Signed-off-by: YAMAMOTO Takashi > --- > ryu/topology/switches.py | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py > index cf8fdea..8503598 100644 > --

[Ryu-devel] [PATCH 2/2] a simple script to plot rest_topology's output

2013-08-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- tools/topology_graphviz.py | 33 + 1 file changed, 33 insertions(+) create mode 100755 tools/topology_graphviz.py diff --git a/tools/topology_graphviz.py b/tools/topology_graphviz.py new file mode 100755 index 000..e7884fc

[Ryu-devel] [PATCH 1/2] topology.switches: fix bin vs text address problem

2013-08-15 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/topology/switches.py | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py index cf8fdea..8503598 100644 --- a/ryu/topology/switches.py +++ b/ryu/topology/switches.py @@ -26,7 +26,8 @@