From 55e0097545cfbf14f94b03edca2a8099bc673c3b Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Mon, 22 Aug 2016 17:21:28 +0900 Subject: packet/bgp: Fix to serialize BGPNotification on Python3 Signed-off-by: IWASE Yusuke Signed-off-by: FUJITA Tomonori --- ryu/lib/packet/bgp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index 697eff3a..5846dbad 100644 --- a/ryu/lib/packet/bgp.py +++ b/ryu/lib/packet/bgp.py @@ -3321,7 +3321,7 @@ class BGPNotification(BGPMessage): def __init__(self, error_code, error_subcode, - data='', + data=b'', type_=BGP_MSG_NOTIFICATION, len_=None, marker=None): super(BGPNotification, self).__init__(marker=marker, len_=len_, type_=type_) -- cgit v1.2.3