[Ryu-devel] [PATCH 7/8] core_managers/test_table_manager: Add unit tests for Flow Specification

2017-03-24 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- .../bgp/core_managers/test_table_manager.py| 252 + 1 file changed, 252 insertions(+) diff --git a/ryu/tests/unit/services/protocols/bgp/core_managers/test_table_manager.py b/ryu/tests/unit/se

[Ryu-devel] [PATCH 1/8] packet/bgp: Implement the utility of Flow Specification for BGPSpeaker

2017-03-24 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/bgp.py | 92 +++ 1 file changed, 92 insertions(+) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index 1a5bd65..454a3f6 100644 --- a/ryu/lib/packet/

[Ryu-devel] [PATCH 4/8] BGPSpeaker: Support Flow Specification update messages

2017-03-24 Thread Shinpei Muraoka
This patch enables BGPSpeaker to store FlowSpec routes into the global table and VRF tables and to provide the API for advertising routes. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/services/protocols/bgp/api/base.py | 3 + ryu/services/protocols/b

[Ryu-devel] [PATCH 8/8] utils/test_bgp: Add unit tests for Flow Specification

2017-03-24 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- .../unit/services/protocols/bgp/utils/test_bgp.py | 85 ++ 1 file changed, 85 insertions(+) create mode 100644 ryu/tests/unit/services/protocols/bgp/utils/test_bgp.py diff --git a/ryu/tests/unit/se

[Ryu-devel] [PATCH 3/8] BGPSpeaker/SSH: Supports display of Flow Specification RIB

2017-03-24 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/services/protocols/bgp/operator/commands/show/neighbor.py | 2 +- ryu/services/protocols/bgp/operator/commands/show/rib.py | 11 ++- .../bgp/operator/commands/show/route_formatter_mixin.py | 2 +- ryu/se

[Ryu-devel] [PATCH 0/8] Support Flow Specification update messages

2017-03-24 Thread Shinpei Muraoka
Please reflect the following patch before this patch. "Implement user interface of Flow Specification" Shinpei Muraoka (8): packet/bgp: Implement the utility of Flow Specification for BGPSpeaker BGPSpeaker/info_base: Add tables for Flow Specification BGPSpeaker/SSH: Supports displ

[Ryu-devel] [PATCH 2/8] BGPSpeaker/info_base: Add tables for Flow Specification

2017-03-24 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/services/protocols/bgp/info_base/ipv4fs.py | 93 + ryu/services/protocols/bgp/info_base/vpnv4fs.py | 66 ++ ryu/services/protocols/bgp/info_base/vrf.py | 11 +++ ryu/services/pro

[Ryu-devel] [PATCH 5/8] library_packet_ref: Add description of action for Flow Specification

2017-03-24 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- doc/source/library_packet_ref.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/doc/source/library_packet_ref.rst b/doc/source/library_packet_ref.rst index 85b6071..48a5fc6 100644 --- a/doc/

[Ryu-devel] [PATCH 6/8] test_bgpspeaker: Add unit tests for Flow Specification

2017-03-24 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- .../unit/services/protocols/bgp/test_bgpspeaker.py | 153 + 1 file changed, 153 insertions(+) diff --git a/ryu/tests/unit/services/protocols/bgp/test_bgpspeaker.py b/ryu/tests/unit/services/protoco

[Ryu-devel] [PATCH 1/7] packet/bgp: Implement user interface of Flow Specification

2017-03-20 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/bgp.py | 247 +- 1 file changed, 244 insertions(+), 3 deletions(-) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index cfe8cff..47feeb3 100644 --- a/r

[Ryu-devel] [PATCH 0/7] Implement user interface of Flow Specification

2017-03-20 Thread Shinpei Muraoka
The following patches add the user interface of Flow Specification. Also, add the Route Distinguisher to data structure for VPNv4 Flow Specification. Shinpei Muraoka (7): packet/bgp: Implement user interface of Flow Specification test_bgp: Add test cases for user interface of Flow

[Ryu-devel] [PATCH 7/7] packet/bgp: Fix subtype for Traffic Filtering Actions of Flow Specification

2017-03-20 Thread Shinpei Muraoka
This patch sets the constant value so that you can omit argument "subtype" for Traffic Filtering Action of Flow Specification. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/bgp.py | 44 1 file change

[Ryu-devel] [PATCH 5/7] packet/bgp: Add the address converter for Flow Specification

2017-03-20 Thread Shinpei Muraoka
Argument "addr" of "_FlowSpecPrefixBase" must be specified in the network address. If argument "addr" specified in the host address, this patch converts the given address into the network address. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> -

[Ryu-devel] [PATCH 2/7] test_bgp: Add test cases for user interface of Flow Specification

2017-03-20 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/tests/unit/packet/test_bgp.py | 133 ++ 1 file changed, 133 insertions(+) diff --git a/ryu/tests/unit/packet/test_bgp.py b/ryu/tests/unit/packet/test_bgp.py index 07b21f9..dec1dae

[Ryu-devel] [PATCH 6/7] packet/bgp: Unify variable names for Flow Specification

2017-03-20 Thread Shinpei Muraoka
Currently, FLOW_SPEC and FLOWSPEC constants are mixed, so this patch will unify to FLOWSPEC. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/bgp.py | 20 ++-- ryu/lib/packet/safi.py | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-)

[Ryu-devel] [PATCH 4/7] packet/bgp: Fix data structure for VPNv4 Flow Specification

2017-03-20 Thread Shinpei Muraoka
The Route Distinguisher did not include in data structure for VPNv4 Flow Specification. This patch adds the Route Distinguisher to data structure for VPNv4 Flow Specification. For details, refer to Chapter 8 of RFC 5575. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- r

[Ryu-devel] [PATCH 3/7] library_packet_ref:Add bgp reference for Flow Specification

2017-03-20 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- doc/source/library_packet_ref.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/source/library_packet_ref.rst b/doc/source/library_packet_ref.rst index 2e8ee1a..85b6071 100644 --- a/doc/source/library_packet_r

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

2017-02-08 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- 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

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

2017-02-08 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- 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/

[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 <shinpei.mura...@gmail.com> --- ryu/tests/packet_data/bgp4/flowspec_action_redirect.pcap | Bin 0 -> 173 bytes .../packet_

Re: [Ryu-devel] TypeError: unpack_from ( ) argument 1 must be convertible to a buffer, not dhcp

2017-01-30 Thread Shinpei Muraoka
Hi I think probably pkt.protocols[-1] is fragmented dhcp packet. For older files, fragmented dhcp packet is set with binary data. For new files, fragmented dhcp packet is set with instance of dhcp. By changing to a new file,, instance of dhcp was set in pkt.protocols[-1] and an error occurred.

Re: [Ryu-devel] Modify packet header (destination ip and mac) and forward the packet to the new destination

2017-01-12 Thread Shinpei Muraoka
Hi, > The code is below. I can't do what i want. > > what should i do ? Your code insufficient the match condition. Please add eth_type to the match condition. match1 = parser.OFPMatch(eth_type=0x0800, in_port=3,

[Ryu-devel] [PATCH 3/3] doc: library_packet_ref: Add reference of openflow

2017-01-12 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- doc/source/library_packet_ref.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/source/library_packet_ref.rst b/doc/source/library_packet_ref.rst index f44811c..7246c00 100644 --- a/doc/source/library_packet_r

[Ryu-devel] [PATCH 0/3] packet lib: Add packet library of OpenFlow

2017-01-12 Thread Shinpei Muraoka
Shinpei Muraoka (3): packet lib: Add packet library of OpenFlow test_openflow: Add unit tests for OpenFlow packet library doc: library_packet_ref: Add reference of openflow doc/source/library_packet_ref.rst | 3 + ryu/lib/packet/openflow.py | 113

Re: [Ryu-devel] Firewall bringing "invalid parameter"

2017-01-04 Thread Shinpei Muraoka
Hi, That problem does not occur in my environment. $ curl -X POST -d '{"nw_src":"10.0.0.1/32", "nw_dst":"10.0.0.2/32","nw_proto":"ICMP", "actions":"DENY", "priority":"10"}' http://localhost:8080/firewall/rules/0001 [{"switch_id": "0001", "command_result": [{"result":

Re: [Ryu-devel] Setting up firewall across 3 linear connected switches

2017-01-04 Thread Shinpei Muraoka
and where. And how to set the > table id as 0 for rest_router and 1 for rest_firewall. > > > > > > *From: *Shinpei Muraoka <mailto:shinpei.mura...@gmail.com> > *Sent: *Wednesday, December 21, 2016 7:27 PM > *To: *bayoaded...@live.com <mailto:bayoaded...@live

[Ryu-devel] [PATCH 0/4] packet/dhcp: Support fragmented options

2017-01-03 Thread Shinpei Muraoka
Shinpei Muraoka (4): packet/dhcp: Support fragmented options packet/dhcp: Revert b'str' conversion test_dhcp: Extend unit test for fragmented options library_packet_ref: Update dhcp reference method doc/source/library_packet_ref.rst | 6 +- ryu/lib/packet/dhcp.py | 175

[Ryu-devel] [PATCH 2/4] packet/dhcp: Revert b'str' conversion

2017-01-03 Thread Shinpei Muraoka
This patch partially reverts 75e8c58916524243e6796e73c371981e14fff6ee and 536a42d8c1c0be48e78d5f29b6fd55a38012d953. dhcp.boot_file is ascii. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/dhcp.py | 9 + 1 file changed, 5 insertions(+), 4 deletions(-)

[Ryu-devel] [PATCH 1/4] packet/dhcp: Support fragmented options

2017-01-03 Thread Shinpei Muraoka
Currently, if you set fragmented option data for the packet library of dhcp, Traceback occurs. This patch fixes to analyze up to options not corrupting data. The remaining corrupting data will be appended at the end of option list. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.

[Ryu-devel] [PATCH] library_bgp_speaker_ref: Fix unexpected unindent

2016-12-27 Thread Shinpei Muraoka
This patch fixes unexpected unindent that occur when building. Also, add ESI type to be specified for argument esi of evpn_prefix_add and evpn_prefix_del. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- doc/source/library_packet_ref.rst| 15 +++ ryu/lib/

Re: [Ryu-devel] Trouble parsing DHCP packets

2016-12-25 Thread Shinpei Muraoka
/Ryuretic/RyureticLabs/ > as well under mininet/examples/Ryuretic/DHCP_Topo.py. > > Thanks, > Jacob > https://www.linkedin.com/in/jacobcox74 > > > > > > > > -Original Message- > From: Shinpei Muraoka [mailto:shinpei.mura...@gmail

Re: [Ryu-devel] Trouble parsing DHCP packets

2016-12-21 Thread Shinpei Muraoka
Hi, I am thinking of creating a patch using your source code. I have a question for your source code. The size of "sname" and "file" are defined by RFC 2131. ("sname" size is 64 bytes, "file" size is 128 bytes) In your source code there are cases where "sname" is 40 bytes and "file" does not

Re: [Ryu-devel] R: Info about RYU

2016-12-21 Thread Shinpei Muraoka
a way to do this? Where to start? > > Thank you really a lot! > > Federico Livi > > > > *Da: *Shinpei Muraoka <mailto:shinpei.mura...@gmail.com> > *Inviato: *martedì 20 dicembre 2016 07:02 > *A: *federico.l...@gmail.com <mailto:federico.l...@

Re: [Ryu-devel] Setting up firewall across 3 linear connected switches

2016-12-21 Thread Shinpei Muraoka
> the two app in order for me to have one app that run router and firewall > together. > > Thank you. > > > > *From: *Shinpei Muraoka <mailto:shinpei.mura...@gmail.com> > *Sent: *Tuesday, December 20, 2016 12:59 AM > *To: *bayoaded...@live.com <mailto:bayoaded

Re: [Ryu-devel] Info about RYU

2016-12-19 Thread Shinpei Muraoka
Hi If you just want to run rest api easily, please try using the following. https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo If you want to make web page using Ryu

[Ryu-devel] [PATCH 1/2] packet lib: Add packet library of Geneve

2016-12-19 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- doc/source/library_packet_ref.rst | 3 + ryu/lib/packet/ether_types.py | 1 + ryu/lib/packet/geneve.py | 189 ++ ryu/lib/packet/udp.py | 3 + 4 files change

[Ryu-devel] [PATCH 2/2] test_gre: Add unit tests for NVGRE

2016-12-19 Thread Shinpei Muraoka
This patch adds test case of NVGRE. Also, fixes unit tests for GRE to the method using packet capture. For that reason, add packet capture files. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/tests/packet_data/pcap/gre_full_options.pcap | Bin 0 -> 190 bytes

[Ryu-devel] [PATCH 0/2] packet lib: Add packet library of Geneve

2016-12-19 Thread Shinpei Muraoka
Shinpei Muraoka (2): packet lib: Add packet library of Geneve test_geneve: Add unit tests for Geneve doc/source/library_packet_ref.rst | 3 + ryu/lib/packet/ether_types.py | 1 + ryu/lib/packet/geneve.py | 189

[Ryu-devel] [PATCH 2/2] test_geneve: Add unit tests for Geneve

2016-12-19 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/tests/packet_data/pcap/geneve_unknown.pcap | Bin 0 -> 196 bytes ryu/tests/unit/packet/test_geneve.py | 62 + 2 files changed, 62 insertions(+) create mode 100644 ryu/tests/packet_

[Ryu-devel] [PATCH 1/2] packet/gre: Support NVGRE extension

2016-12-19 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/gre.py | 128 ++ 1 file changed, 108 insertions(+), 20 deletions(-) diff --git a/ryu/lib/packet/gre.py b/ryu/lib/packet/gre.py index c22032e..a62f0d1 100644 --- a/r

[Ryu-devel] [PATCH 0/2] packet/gre: Support NVGRE extension

2016-12-19 Thread Shinpei Muraoka
Shinpei Muraoka (2): packet/gre: Support NVGRE extension test_gre: Add unit tests for NVGRE ryu/lib/packet/gre.py| 128 + ryu/tests/packet_data/pcap/gre_full_options.pcap | Bin 0 -> 190 bytes ryu/tests/packet_data/pcap/gre_no_option.p

[Ryu-devel] [PATCH] doc: library_packet_ref: Update references

2016-12-19 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- doc/source/library_packet_ref.rst | 15 ++- ryu/lib/packet/mpls.py| 2 ++ ryu/lib/packet/vxlan.py | 35 +-- 3 files changed, 25 insertions(+), 27 deletions(-)

[Ryu-devel] [PATCH 0/2] BGPSpeaker-Support-Ethernet-A-D-Route-and-Ethernet-S.patch

2016-11-22 Thread Shinpei Muraoka
This patch supports Ethernet Auto-discovery Route and Ethernet Segment Route in BGPSpeaker. Shinpei Muraoka (2): packet/bgp: Fix the ESI Label Extended Community to use mpls_label BGPSpeaker: Support Ethernet A-D Route and Ethernet Segment Route ryu/lib/packet/bgp.py

[Ryu-devel] [PATCH 1/2] packet/bgp: Fix the ESI Label Extended Community to use mpls_label

2016-11-22 Thread Shinpei Muraoka
Currently, ESI Label in BGPEvpnEsiLabelExtendedCommunity has 3 byte integer set. This patch fixes to use the mpls_label for ESI Label of BGPEvpnEsiLabelExtendedCommunity. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/bgp.py

[Ryu-devel] [PATCH 2/2] BGPSpeaker: Support Ethernet A-D Route and Ethernet Segment Route

2016-11-22 Thread Shinpei Muraoka
This patch supports Ethernet Auto-discovery Route and Ethernet Segment Route in BGPSpeaker. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/bgp.py | 6 + ryu/services/protocols/bgp/api/base.py | 1 + ryu/se

Re: [Ryu-devel] Ryu-App-advices

2016-11-15 Thread Shinpei Muraoka
how you are start with Ryu app and are you > build any Ryu Application ? > > Thank you very much. > Best Regards > Munther Numan > Master Student > Faculty of Engineering > Universiti Putra Malaysia > > -Original Message- > From: Shinpei Muraoka [mailto:shinpe

Re: [Ryu-devel] Ryu-App-advices

2016-11-13 Thread Shinpei Muraoka
Hi, For sample application of Ryu, please refer to the following. https://github.com/osrg/ryu/tree/master/ryu/app If you want to build you own Ryu Application, the followings might be helpful. http://ryu.readthedocs.org/en/latest/developing.html

[Ryu-devel] [PATCH 2/5] packet/bgp: Fix the EvpnNLRI to use the ryu.lib.packet.mpls

2016-11-08 Thread Shinpei Muraoka
Also, this patch changes name of is_stack to is_bos. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/bgp.py | 31 --- ryu/lib/packet/mpls.py | 2 +- 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/ryu/lib/packet/

[Ryu-devel] [PATCH 1/5] packet/bgp: Fix the EvpnNLRI to use the ryu.lib.ip

2016-11-08 Thread Shinpei Muraoka
Also, this patch changes size of ip_len from bit to byte. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/bgp.py | 21 + 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index a

[Ryu-devel] [PATCH 3/5] packet/bgp: Fix the EvpnNLRI to use the ryu.lib.packet.vxlan

2016-11-08 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/bgp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index 837f9d7..6c52781 100644 --- a/ryu/lib/packet/bgp.py +++ b/ryu/lib/packet/

[Ryu-devel] [PATCH 4/5] packet/bgp: Support for IP Prefix Route encoding

2016-11-08 Thread Shinpei Muraoka
This patch supports on the basis of the [draft-ietf-bess-evpn-prefix-advertisement-03] Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/bgp.py | 138 + .../packet_data/bgp4/evpn_nlri_ip_prefix.pcap | Bin 0

[Ryu-devel] [PATCH 0/5] packet/bgp: Support for IP Prefix Route encoding

2016-11-08 Thread Shinpei Muraoka
The following pathes supports on the basis of the [draft-ietf-bess-evpn-prefix-advertisement-03]. Please reflect the following patches after reflecting "BGPSpeaker Support IPv6 and VPNv6 unicast routes". Shinpei Muraoka (5): packet/bgp: Fix the EvpnNLRI to use the ryu.lib.ip packe

[Ryu-devel] [PATCH 5/5] BGPSpeaker: Support to advertise EVPN IP Prefix route

2016-11-08 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/services/protocols/bgp/api/base.py | 2 + ryu/services/protocols/bgp/api/prefix.py | 27 - ryu/services/protocols/bgp/bgp_sample_conf.py | 17 ryu/services/protocols/bgp/bgpspea

Re: [Ryu-devel] Problem in adding flow with ip_proto

2016-11-07 Thread Shinpei Muraoka
Hi, > My code works well if I use OFPMatch with eth_dst or eth_type. but If I > want to add a flow to goto another table, it can't be added. Argument actions of add_flow is missing. So I think argument error occurred during add_flow execution. Please add actions as an argument of add_flow.

Re: [Ryu-devel] Ryu controller refused openvswitch

2016-10-28 Thread Shinpei Muraoka
Hi, > Why? What should i do to solve this question? There may be a problem with the destination port. Please execute the following command. $ ryu-manager --verbose --ofp-tcp-listen-port 6653 If Ryu can connect to the OVS, the following log is output.

[Ryu-devel] [PATCH v2 2/5] packet/mpls: Add method to convert the format of label

2016-10-26 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/mpls.py | 30 ++ ryu/tests/unit/packet/test_mpls.py | 36 +++- 2 files changed, 61 insertions(+), 5 deletions(-) diff --git a/ryu/lib/

[Ryu-devel] [PATCH v2 4/5] packet/bgp: Add PMSI Tunnel Attribute

2016-10-26 Thread Shinpei Muraoka
This patch adds the support for BGP PMSI Tunnel Attribute [RFC6514]. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/bgp.py | 215 ++ ryu/tests/unit/packet/test_bgp.py | 57 ++ 2 files changed, 272 inse

[Ryu-devel] [PATCH v2 1/5] lib/ip: Add method to convert the format of Ipv4 or Ipv6

2016-10-26 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/ip.py | 31 +++ ryu/tests/unit/lib/test_ip.py | 26 ++ 2 files changed, 57 insertions(+) diff --git a/ryu/lib/ip.py b/ryu/lib/ip.py index 6630418..1

[Ryu-devel] [PATCH v2 0/5] packet/bgp: Add PMSI Tunnel Attribute

2016-10-26 Thread Shinpei Muraoka
The following patch implements some extensions for PMSI Tunnel Attribute. v2: Fix conflict points Shinpei Muraoka (5): lib/ip: Add method to convert the format of Ipv4 or Ipv6 packet/mpls: Add method to convert the format of label packet/vxlan: Add method to convert the format of vni

[Ryu-devel] [PATCH v2 3/5] packet/vxlan: Add method to convert the format of vni

2016-10-26 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/vxlan.py | 22 +- ryu/tests/unit/packet/test_vxlan.py | 7 +++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/ryu/lib/packet/vxlan.py b/ryu/lib/packet/vxlan.py

[Ryu-devel] [PATCH v2 5/5] BGPSpeaker: Support to advertise PMSI Tunnel Attribute

2016-10-26 Thread Shinpei Muraoka
This patch adds support to advertise the BGP PMSI Tunnel Attribute for the Path attributes. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/services/protocols/bgp/api/base.py | 1 + ryu/services/protocols/bgp/api/prefix.py | 23 - ryu/se

Re: [Ryu-devel] [PATCH 5/5] BGPSpeaker: Support to advertise PMSI Tunnel Attribute

2016-10-26 Thread Shinpei Muraoka
Hi Fujita-San, > Hmm, seems that I can't apply this cleanly. Sorry. I correct the conflict points and will post again. Thanks, On 2016年10月25日 22:56, FUJITA Tomonori wrote: > On Tue, 25 Oct 2016 11:38:00 +0900 > Shinpei Muraoka <shinpei.mura...@gmail.com> wrote: > >>

Re: [Ryu-devel] RYU error message

2016-10-24 Thread Shinpei Muraoka
Hi, The value of selected_server_outport is not integer. Please check the value of selected_server_outport. Thanks, On 2016年10月23日 09:11, Mohamed Ibrahem wrote: > i am building load balancer application and the following error is displayed. > please, help me to fix this? > > this is some of

[Ryu-devel] [PATCH 4/5] packet/bgp: Add PMSI Tunnel Attribute

2016-10-24 Thread Shinpei Muraoka
This patch adds the support for BGP PMSI Tunnel Attribute [RFC6514]. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/bgp.py | 215 ++ ryu/tests/unit/packet/test_bgp.py | 57 ++ 2 files changed, 272 inse

[Ryu-devel] [PATCH 2/5] packet/mpls: Add method to convert the format of label

2016-10-24 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/mpls.py | 30 ++ ryu/tests/unit/packet/test_mpls.py | 36 +++- 2 files changed, 61 insertions(+), 5 deletions(-) diff --git a/ryu/lib/

[Ryu-devel] [PATCH 3/5] packet/vxlan: Add method to convert the format of vni

2016-10-24 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/vxlan.py | 22 +- ryu/tests/unit/packet/test_vxlan.py | 7 +++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/ryu/lib/packet/vxlan.py b/ryu/lib/packet/vxlan.py

[Ryu-devel] [PATCH 0/5] packet/bgp: Add PMSI Tunnel Attribute

2016-10-24 Thread Shinpei Muraoka
The following patch implements some extensions for PMSI Tunnel Attribute. Shinpei Muraoka (5): lib/ip: Add method to convert the format of Ipv4 or Ipv6 packet/mpls: Add method to convert the format of label packet/vxlan: Add method to convert the format of vni packet/bgp: Add PMSI Tunnel

[Ryu-devel] [PATCH 5/5] BGPSpeaker: Support to advertise PMSI Tunnel Attribute

2016-10-24 Thread Shinpei Muraoka
This patch adds support to advertise the BGP PMSI Tunnel Attribute for the Path attributes. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/services/protocols/bgp/api/base.py | 1 + ryu/services/protocols/bgp/api/prefix.py | 23 - ryu/se

[Ryu-devel] [PATCH 1/5] lib/ip: Add method to convert the format of Ipv4 or Ipv6

2016-10-24 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/ip.py | 31 +++ ryu/tests/unit/lib/test_ip.py | 26 ++ 2 files changed, 57 insertions(+) diff --git a/ryu/lib/ip.py b/ryu/lib/ip.py index 6630418..1

Re: [Ryu-devel] [PATCH] ofproto/nicira_ext: Add missing NXMs in OVS v2.6.0

2016-09-30 Thread Shinpei Muraoka
, Takashi YAMAMOTO wrote: > > > On Fri, Sep 30, 2016 at 1:22 PM, Shinpei Muraoka > <shinpei.mura...@gmail.com <mailto:shinpei.mura...@gmail.com>> wrote: > > Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com > <mailto:shinpei.mura...@gmail.com>

[Ryu-devel] [PATCH v2] ofproto/nicira_ext: Add missing NXMs in OVS v2.6.0

2016-09-30 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/ofproto/nicira_ext.py | 180 +- 1 file changed, 178 insertions(+), 2 deletions(-) diff --git a/ryu/ofproto/nicira_ext.py b/ryu/ofproto/nicira_ext.py index ef44ccf..64b570f

Re: [Ryu-devel] [PATCH] ofproto/nicira_ext: Add missing NXMs in OVS v2.6.0

2016-09-30 Thread Shinpei Muraoka
Hi Iwamoto-San > Will we call OF1.5 registers as xreg, following the ovs-ofctl style? > (Just asking, not asking for implementing that.) I agree with you. Thanks, On 2016年09月30日 13:41, IWAMOTO Toshihiro wrote: > At Fri, 30 Sep 2016 13:22:03 +0900, > Shinpei Muraoka wrote: &

[Ryu-devel] [PATCH] ofproto/nicira_ext: Add missing NXMs in OVS v2.6.0

2016-09-29 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/ofproto/nicira_ext.py | 179 +- 1 file changed, 177 insertions(+), 2 deletions(-) diff --git a/ryu/ofproto/nicira_ext.py b/ryu/ofproto/nicira_ext.py index ef44ccf..4b7704e

[Ryu-devel] [PATCH] ofproto/nicira_ext: Add missing NXMs in OVS v2.6.0

2016-09-29 Thread Shinpei Muraoka
Shinpei Muraoka (1): ofproto/nicira_ext: Add missing NXMs in OVS v2.6.0 ryu/ofproto/nicira_ext.py | 179 +- 1 file changed, 177 insertions(+), 2 deletions(-) -- 2.7.4

[Ryu-devel] [PATCH 2/2] stplib: Fix to store current OFPPort status

2016-09-26 Thread Shinpei Muraoka
red status. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/stplib.py | 29 + 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/ryu/lib/stplib.py b/ryu/lib/stplib.py index ff28d9e..97752f1 100644 --- a/ryu/lib/stplib.py +++ b/r

[Ryu-devel] [PATCH 0/2] Improvements of stplib

2016-09-26 Thread Shinpei Muraoka
The following patches improves Spanning Tree implementation. Shinpei Muraoka (2): stplib: Fix to compare MAC address and Bridge ID stplib: Fix to store current OFPPort status ryu/lib/mac.py| 9 + ryu/lib/stplib.py | 35 +-- 2 files changed, 30

[Ryu-devel] [PATCH 1/2] stplib: Fix to compare MAC address and Bridge ID

2016-09-26 Thread Shinpei Muraoka
this problem. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/mac.py| 9 + ryu/lib/stplib.py | 6 -- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ryu/lib/mac.py b/ryu/lib/mac.py index 88ab336..4ebac00 100644 --- a/ryu/lib/mac.py +++

Re: [Ryu-devel] [PATCH] app: Integrate aplication of Ryu-book

2016-09-22 Thread Shinpei Muraoka
, FUJITA Tomonori wrote: > On Tue, 20 Sep 2016 13:49:18 +0900 > Shinpei Muraoka <shinpei.mura...@gmail.com> wrote: > >> Henceforth, Ryu-Book includes the source files for application of Ryu. >> This patch Integrates the source files for application of Ryu-Book. >> Just

[Ryu-devel] [PATCH] Integrate aplication of Ryu-book

2016-09-19 Thread Shinpei Muraoka
Shinpei Muraoka (1): app: Integrate aplication of Ryu-book ryu/app/simple_monitor_13.py | 95 ++ ryu/app/simple_switch_igmp_13.py | 92 + ryu/app/simple_switch_lacp_13.py | 106 ++ ryu/app

[Ryu-devel] [PATCH] app: Integrate aplication of Ryu-book

2016-09-19 Thread Shinpei Muraoka
Henceforth, Ryu-Book includes the source files for application of Ryu. This patch Integrates the source files for application of Ryu-Book. Just for information, the source files for application of Ryu-Book will Integrate as for OpenFlow1.3. Signed-off-by: Shinpei Muraoka <shinpei.m

Re: [Ryu-devel] Application specific settings

2016-09-15 Thread Shinpei Muraoka
Hi, Ryu config must be set when ryu-manager to start. Please try following either method. - Add config to ryu/ryu/flags.py - Include your app to ryu/ryu/cmd/manager.py Thanks, On 2016年09月14日 23:38, Nick Sedelnikov wrote: > Hello all, > > I'm trying to add configuration flags for my ryu

Re: [Ryu-devel] Official NAT App

2016-09-14 Thread Shinpei Muraoka
tion/port approach ? > > > 2016-09-11 19:43 GMT-06:00 Shinpei Muraoka <shinpei.mura...@gmail.com > <mailto:shinpei.mura...@gmail.com>>: > > Hi, > > Ryu does not have any official NAT application. > If you want to use NAT, pleas

Re: [Ryu-devel] Ho to extract message type (e.g. pktIN/pktOut) from OpenFlow v1.3 header structure?

2016-09-14 Thread Shinpei Muraoka
version 3.29 and the original file > ryu/controller/controller.py is different from what you have posted to me. > Can you send that modified version? > Thanks > Maurizio > > > > > -------- > *Da:* Shinpei

Re: [Ryu-devel] Ho to extract message type (e.g. pktIN/pktOut) from OpenFlow v1.3 header structure?

2016-09-13 Thread Shinpei Muraoka
o do with @set_ev_cls()? > Maurizio. > > > > ------------ > *Da:* Shinpei Muraoka <shinpei.mura...@gmail.com> > *Inviato:* martedì 13 settembre 2016 04.59 > *A:* soldie...@hotmail.it; ryu-devel@lists.sourceforge.net > *Oggetto:* Re: [Ryu-d

Re: [Ryu-devel] Ho to extract message type (e.g. pktIN/pktOut) from OpenFlow v1.3 header structure?

2016-09-12 Thread Shinpei Muraoka
ample in simple_switch_13.py script, how > can I use the class: class ryu.ofproto.ofproto_parser.MsgBase (* args, > ** kwargs) to take msg_type == pktOut ? > Thanks so much. > Maurizio > > > > > > ------------ >

Re: [Ryu-devel] Official NAT App

2016-09-11 Thread Shinpei Muraoka
Hi, Ryu does not have any official NAT application. If you want to use NAT, please refer to the following. http://ryu.readthedocs.io/en/latest/nicira_ext_ref.html#ryu.ofproto.ofproto_v1_3_parser.NXActionNAT Thanks, On 2016年09月11日 02:11, Luis Zárate wrote: > Is there any official nat app for

Re: [Ryu-devel] Ho to extract message type (e.g. pktIN/pktOut) from OpenFlow v1.3 header structure?

2016-09-11 Thread Shinpei Muraoka
Hi, Please refer to the following for extraction method of the type of OpenFlow message. http://ryu.readthedocs.io/en/latest/ofproto_base.html#base-class-for-openflow-messages Also, Please refer to the chapter 7.1.1 of OpenFlow Spec version 1.3.5 for the type of OpenFlow message. Thanks, On

Re: [Ryu-devel] Application on RYU controller and OpenVswitch

2016-09-05 Thread Shinpei Muraoka
Hi Please refer to the following documents. I think these will be your help. https://osrg.github.io/ryu-book/en/html/ http://ryu.readthedocs.io/en/latest/index.html Thanks, On 2016年09月02日 17:28, Naveena Alishetty wrote: > hello,iam naveena > I have just installed openwrt and want to install

Re: [Ryu-devel] Using the REST API to change IP protocol not working.

2016-08-30 Thread Shinpei Muraoka
Hi, Code that can be set by the REST API is the following. { "actions": [ { "field": "ipv4_src", "type": "SET_FIELD", "value": "10.10.10.10" }, { "field": "ipv4_dst", "type": "SET_FIELD",

Re: [Ryu-devel] dont download qos_simple_switch_13

2016-08-24 Thread Shinpei Muraoka
Hi qos_simple_switch_13.py is the file to be created on the basis of simple_switch_13.py. So it does not exist in the package of Ryu. Please see below for more details. http://shinpeimuraoka.github.io/ryu-book/en/build/html/rest_qos.html#example-of-the-operation-of-the-per-flow-qos Thanks,

Re: [Ryu-devel] error in qos_simple_switch_13

2016-08-21 Thread Shinpei Muraoka
Hi Closing parentheses does not exist in line 57. Please try to impart closing parentheses. >mod = parser.OFPFlowMod(datapath=datapath, priority=priority, >match=match, instructions=inst, table_id=1 Thanks, On 2016年08月20日 17:30, wesam kh wrote: > hi

[Ryu-devel] [PATCH 1/3] ofproto: Enable to specify packet library for OFPPacketOut.data

2016-08-21 Thread Shinpei Muraoka
So far if you set the packet library to OFPPacketOut.data, error occurred. This patch will be able to set the packet library in OFPPacketOut.data. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/ofproto/ofproto_v1_0_parser.py | 30 +++--- ryu/o

[Ryu-devel] [PATCH 0/3] Enable to specify packet library for OFPPacketOut.data

2016-08-21 Thread Shinpei Muraoka
Shinpei Muraoka (3): ofproto: Enable to specify packet library for OFPPacketOut.data lib/packet: Support the Json format data tests: Add tests for specifying Packet library for OFPPacketOut.data ryu/lib/packet/packet.py | 39 - ryu/ofproto

[Ryu-devel] [PATCH 2/3] lib/packet: Support the Json format data

2016-08-21 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/lib/packet/packet.py | 39 +-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/ryu/lib/packet/packet.py b/ryu/lib/packet/packet.py index 85e826f..043dae7 100644 --- a/r

[Ryu-devel] [PATCH 3/3] tests: Add tests for specifying Packet library for OFPPacketOut.data

2016-08-21 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ...roto-OFP10-ofp_packet_out_packet_library.packet | Bin 0 -> 122 bytes ...roto-OFP12-ofp_packet_out_packet_library.packet | Bin 0 -> 138 bytes ...roto-OFP13-ofp_packet_out_packet_library.packet | Bin 0 -> 138 bytes

[Ryu-devel] [PATCH] Add packet library of GRE

2016-07-27 Thread Shinpei Muraoka
This patch add packet libraly of GRE. Also, add the test cases and the documentation. Shinpei Muraoka (1): packet lib: Add packet library of GRE doc/source/library_packet_ref.rst | 3 + ryu/lib/packet/gre.py | 129 ++ ryu/lib/packet

[Ryu-devel] [PATCH] packet lib: Add packet library of GRE

2016-07-27 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- doc/source/library_packet_ref.rst | 3 + ryu/lib/packet/gre.py | 129 ++ ryu/lib/packet/in_proto.py| 1 + ryu/lib/packet/ipv4.py| 2 + ryu/lib/packet/i

Re: [Ryu-devel] Query regarding learning flow configuration

2016-07-26 Thread Shinpei Muraoka
Hi > This learning flow is not getting configured on the switch due to command syntax error. > There is some mistake with the command syntax. > > Could you please send me an example of a learning flow similar to what i have done ? or is it possible to point out the mistake in above syntax

[Ryu-devel] [PATCH v4 2/2] ofproto/nx_actions: Update argument of NXActionCT

2016-07-26 Thread Shinpei Muraoka
. Signed-off-by: Shinpei Muraoka <shinpei.mura...@gmail.com> --- ryu/ofproto/nx_actions.py | 41 ++--- .../of13/ovs-ofctl-of13-action_ct.packet | Bin 104 -> 104 bytes ryu/tests/packet_data_generator3/gen.py| 2 +- .../json/of13/

  1   2   >