python3: fix bgp reggression
fix the c0590ea903
commit.
Reported-by: Toshiki Tsuboi <t.tsubo2000@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tested-by: Toshiki Tsuboi <t.tsubo2000@gmail.com>
This commit is contained in:
parent
ffb409135e
commit
fe128c1172
@ -1,4 +1,4 @@
|
|||||||
import io
|
import six
|
||||||
|
|
||||||
|
|
||||||
class RouteFormatterMixin(object):
|
class RouteFormatterMixin(object):
|
||||||
@ -17,7 +17,12 @@ class RouteFormatterMixin(object):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _format_family(cls, dest_list):
|
def _format_family(cls, dest_list):
|
||||||
msg = io.StringIO()
|
if six.PY3:
|
||||||
|
import io
|
||||||
|
msg = io.StringIO()
|
||||||
|
else:
|
||||||
|
import StringIO
|
||||||
|
msg = StringIO.StringIO()
|
||||||
|
|
||||||
def _append_path_info(buff, path, is_best, show_prefix):
|
def _append_path_info(buff, path, is_best, show_prefix):
|
||||||
aspath = path.get('aspath')
|
aspath = path.get('aspath')
|
||||||
|
Loading…
Reference in New Issue
Block a user