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 ry
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
---
ryu/ofproto/ofproto_v1_0_parser.py | 30 +++---
ryu/ofproto/ofproto_v1_2_parser.py | 31 ++
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/ofproto_v1_0
Signed-off-by: Shinpei Muraoka
---
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/ryu/lib/packet/packet.py
+++ b/ryu/lib/p
Signed-off-by: Shinpei Muraoka
---
...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
...roto-OFP14-ofp_packet_out_packet_library
Signed-off-by: IWASE Yusuke
---
.../unit/services/protocols/bgp/test_bgpspeaker.py | 276 +
1 file changed, 276 insertions(+)
create mode 100644 ryu/tests/unit/services/protocols/bgp/test_bgpspeaker.py
diff --git a/ryu/tests/unit/services/protocols/bgp/test_bgpspeaker.py
b/
Signed-off-by: IWASE Yusuke
---
ryu/services/protocols/bgp/bgpspeaker.py | 66 ++---
ryu/services/protocols/bgp/info_base/base.py | 85 +---
2 files changed, 72 insertions(+), 79 deletions(-)
diff --git a/ryu/services/protocols/bgp/bgpspeaker.py
b/ryu
This patch enables BGPSpeaker to advertise BGP EVPN routes and
store the advertised BGP EVPN routes from the neighbors.
TODO:
- To support the VRF table for BGP EVPN routes.
This patch supports the global table only.
- To implement Multihoming Functions.
Currently, ONLY Single-Homing is su
Signed-off-by: IWASE Yusuke
---
.../bgp/core_managers/test_table_manager.py| 91 ++
1 file changed, 91 insertions(+)
diff --git
a/ryu/tests/unit/services/protocols/bgp/core_managers/test_table_manager.py
b/ryu/tests/unit/services/protocols/bgp/core_managers/test_tab
This patch remames the internal (not for users) API for the consistency,
and add missing docstring.
Signed-off-by: IWASE Yusuke
---
ryu/services/protocols/bgp/api/rtconf.py | 4 ++--
.../protocols/bgp/core_managers/table_manager.py | 20 +---
2 files changed, 15
Signed-off-by: IWASE Yusuke
---
.../protocols/bgp/core_managers/table_manager.py | 4 +
ryu/services/protocols/bgp/info_base/vrf.py| 5 +
.../protocols/bgp/core_managers/__init__.py| 0
.../bgp/core_managers/test_table_manager.py| 264 +
4 files
This patch enables BGPSpeaker to store EVPN routes into the VRF
tables and to provide the API for advertising routes.
Usage example:
speaker = BGPSpeaker(as_number=65001,
router_id='172.17.0.1')
speaker.neighbor_add(address='172.17.0.2', remote_as=65002,
In the validator for the API arguments should raise exception
when the validator detects invalid arguments, otherwise the
decorator for registering API functions, RegisterWithArgChecks,
can pass through the invalid arguments.
This patch fixes this problem.
Signed-off-by: IWASE Yusuke
---
ryu/se
This patch fixes the TCP packet parser to return the BGP packet
parser class if the TCP src or dst port is the reserved BGP port
and enable to parse the entire packet data.
Signed-off-by: IWASE Yusuke
---
ryu/lib/packet/bgp.py | 8 ++--
ryu/lib/packet/bmp.py
Signed-off-by: IWASE Yusuke
---
ryu/services/protocols/bgp/base.py | 32 ++---
ryu/services/protocols/bgp/bgpspeaker.py | 133 -
.../protocols/bgp/core_managers/table_manager.py | 3 -
.../protocols/bgp/operator/commands/show/rib.py| 10 +-
Because the NLRI_CLASS of the VRF EVPN Table is the same as the
NLRI_CLASS of the Global EVPN Table, the str representation can not
be distinguished with 'formatted_nlri_str' format.
So, 'show vrf' commands on the SSH console returns the str outputs
with Route Distinguisher (RD) even if the route o
Signed-off-by: IWASE Yusuke
---
ryu/services/protocols/bgp/info_base/base.py | 18 ++
1 file changed, 18 insertions(+)
diff --git a/ryu/services/protocols/bgp/info_base/base.py
b/ryu/services/protocols/bgp/info_base/base.py
index 54e02bb..a11de7f 100644
--- a/ryu/services/protoc
Currently, SSH console of BGPSpeaker fails to recieve commands from
user when it is running on Python3 due to the binary conversion.
This patch fixes this problem and enables to use SSH console on
Python3.
Signed-off-by: IWASE Yusuke
---
.../protocols/bgp/operator/commands/show/route_formatter_m
Signed-off-by: IWASE Yusuke
---
ryu/tests/packet_data/bgp4/evpn_esi_arbitrary.pcap | Bin 0 -> 156 bytes
ryu/tests/packet_data/bgp4/evpn_esi_as_based.pcap | Bin 0 -> 156 bytes
ryu/tests/packet_data/bgp4/evpn_esi_l2_bridge.pcap | Bin 0 -> 156 bytes
ryu/tests/packet_data/bgp4/evpn_esi_lacp.pcap
Signed-off-by: IWASE Yusuke
---
ryu/lib/packet/afi.py | 1 +
ryu/lib/packet/bgp.py | 806 +++--
ryu/lib/packet/safi.py | 1 +
3 files changed, 777 insertions(+), 31 deletions(-)
diff --git a/ryu/lib/packet/afi.py b/ryu/lib/packet/afi.py
index c84
Signed-off-by: IWASE Yusuke
---
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 697eff3..457f87b 100644
--- a/ryu/lib/packet/bgp.py
+++ b/ryu/lib/packet/bgp.py
@@ -3321,13 +3321,13 @@ class BGPNoti
This patch fixes to reduce Pylint warnings, to use 'netaddr' utilities
and to reduce redundant if statements.
Signed-off-by: IWASE Yusuke
---
ryu/services/protocols/bgp/utils/validation.py | 190 +++--
1 file changed, 82 insertions(+), 108 deletions(-)
diff --git a/ryu/servi
Signed-off-by: IWASE Yusuke
---
.../unit/services/protocols/bgp/utils/__init__.py | 0
.../protocols/bgp/utils/test_validation.py | 203 +
2 files changed, 203 insertions(+)
create mode 100644 ryu/tests/unit/services/protocols/bgp/utils/__init__.py
create mode 100
Currently, RegisterWithArgChecks validates only required arguments,
so invalid arguments might be passed through if the arguments are
registered as optionals.
This patch fixes to enable validation for optional arguments.
Signed-off-by: IWASE Yusuke
---
ryu/services/protocols/bgp/api/base.py | 12
Signed-off-by: IWASE Yusuke
---
ryu/services/protocols/bgp/bgpspeaker.py | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/ryu/services/protocols/bgp/bgpspeaker.py
b/ryu/services/protocols/bgp/bgpspeaker.py
index 4608524..b6128ec 100644
--- a/ryu/services/protocols/bgp
This patch enables BGPSpeaker to advertise MPLS-Based Ethernet
VPN (RFC7432) routes and store the advertised BGP EVPN routes
from the neighbors.
Also, includes the Python3 compatibility improvements and the
updates of the API reference of BGPSpeaker.
IWASE Yusuke (20):
packet/bgp: Enable to pars
26 matches
Mail list logo