summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2016-08-22 17:21:28 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-25 13:33:03 +0900
commit55e0097545cfbf14f94b03edca2a8099bc673c3b (patch)
treed70cd278f36f255373ebfe918766cc0aa93d58e9
parentb999b8a14fefd8c15f053405442fa3bd5354e817 (diff)
packet/bgp: Fix to serialize BGPNotification on Python3
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/lib/packet/bgp.py2
1 files changed, 1 insertions, 1 deletions
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_)