[Ryu-devel] [PATCH 2/2] ofctl_v1_*: Use utility functions of ofctl_utils

2017-02-08 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/lib/ofctl_utils.py | 11 ++-- ryu/lib/ofctl_v1_2.py | 140 - ryu/lib/ofctl_v1_3.py | 8 ++- ryu/lib/ofctl_v1_4.py | 8 ++- ryu/lib/ofctl_v1_5.py | 9 +++- 5 files changed, 48 insertions(+), 128 deletion

[Ryu-devel] [PATCH 1/2] ofctl_v1_*: Use str_to_int instead of builtin int

2017-02-08 Thread IWASE Yusuke
This patch fixes lib/ofctl_v1_* to use the utility function str_to_int() instead of the builtin function int(). With this change, lib/ofctl_v1_* can convert the user input values into integer even if non-decimal string values (e.g. hexadecimal "0x80"). Signed-off-by: IWASE Yusuke --- ryu/lib/ofc

[Ryu-devel] [PATCH 0/2] Fix regression of lib/ofctl_v1_*

2017-02-08 Thread IWASE Yusuke
Currently, ofctl_rest.py raise error if the following example command described at Ryu documentaion received. http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html#example-of-set-field-action The cause of this problem is that lib/ofctl_v1_* fails to convert the hexadecimal {"dl_type": "0x8000

[Ryu-devel] [PATCH 2/3] packet/bgp: Support Flow Specification

2017-02-08 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka --- ryu/lib/packet/bgp.py | 496 - ryu/lib/packet/safi.py | 2 + 2 files changed, 496 insertions(+), 2 deletions(-) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index 8359412..c787d82 100644 --- a/ryu

[Ryu-devel] [PATCH 1/3] pakcket/bgp: pylint

2017-02-08 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka --- ryu/lib/packet/bgp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index 29c10a4..8359412 100644 --- a/ryu/lib/packet/bgp.py +++ b/ryu/lib/packet/bgp.py @@ -3579,9 +3579,9 @@ class PmsiTu

[Ryu-devel] [PATCH 0/3] Support Flow Specification

2017-02-08 Thread Shinpei Muraoka
The following patches support Flow Specification for BGP. Shinpei Muraoka (3): pakcket/bgp: pylint packet/bgp: Support Flow Specification test_bgp: Add test cases for Flow Specification ryu/lib/packet/bgp.py | 502 - ryu/lib/packet/safi.py

[Ryu-devel] [PATCH 3/3] test_bgp: Add test cases for Flow Specification

2017-02-08 Thread Shinpei Muraoka
This patch adds the test cases for Flow Specification NLRI in MP_REAACH NLRI and Traffic Filtering Actions in EXTENDED_COMMUNITIES. Signed-off-by: Shinpei Muraoka --- ryu/tests/packet_data/bgp4/flowspec_action_redirect.pcap | Bin 0 -> 173 bytes .../packet_data/bgp4/flowspec_action_traffic_acti

Re: [Ryu-devel] BGP RIB table

2017-02-08 Thread Iwase Yusuke
Hi, For install routes into your dataplane (e.g. OpenFlow switches, Linux's routing tables), it is required to implement your Ryu application. In other words, Ryu does not have any dataplane feature in its self. OTOH, for monitoring the best paths, I realized that it is difficult to get notific

Re: [Ryu-devel] BGP Add-paths RFC7911

2017-02-08 Thread Iwase Yusuke
Hi Trung, We want to support BGP Add-paths feature, but there seems not to be any schedule to implement it... If you can try to implement this feature, we welcome your contribution! Any question for Ryu BGP implementation, please post it on this mailing list. Thanks, Iwase On 2017年02月02日 08:11,

Re: [Ryu-devel] Fwd: Fwd: RYUv4.6 send hello without 'bitmap'

2017-02-08 Thread mark
Hi Iwase, thanks for quick reply. i test OVS also, and OVS can successfully establish connection when specify as "of13". the switch vendor says they always send bitmap and negotiate of-version depends on whether controller sends bitmap too. that's why negotiation is failed. BR< MARK

Re: [Ryu-devel] Fwd: Fwd: RYUv4.6 send hello without 'bitmap'

2017-02-08 Thread Iwase Yusuke
Hi Mark, As you pointed out, Ryu does not always send bitmaps of the supported version. https://github.com/osrg/ryu/blob/master/ryu/controller/controller.py#L369 But, OpenFlow Spec 1.3 says the bitmaps element is optional and the smaller version should be negotiated if no bitmaps element provid

Re: [Ryu-devel] Regarding how to pass a text file as an argument to Ryu application.

2017-02-08 Thread Iwase Yusuke
Hi, For setting VLAN_VID with "set-field action", please try the following. $ curl -X POST -d '{ "dpid": 1, "match":{ "dl_type": 0x8000 }, "actions":[ { "type": "PUSH_VLAN", # Push a new VLAN tag if a input frame is non-VLAN-tagged "eth

Re: [Ryu-devel] Regarding how to pass a text file as an argument to Ryu application.

2017-02-08 Thread raghu rathode
Dear Iwase, could you please me help me out, how to "set-field action" to set vlan_vid for OpenFlow 1.3 version (HP openFlow Switch). It throws an error when I followed the example "http://ryu.readthedocs.io/en/ latest/app/ofctl_rest.html?highlight=ofctl#example-of-vlan-id-match-field". I am try

Re: [Ryu-devel] Regarding how to pass a text file as an argument to Ryu application.

2017-02-08 Thread raghu rathode
Dear Iwase, could you please me help me out, how to "set-field action" to set vlan_vid for OpenFlow 1.3 version (HP openFlow Switch). It throws an error when I followed the example " http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html?highlight=ofctl#example-of-vlan-id-match-field ". for exa