bgp/cli: fix internel data destruction due to cli show command

Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
ISHIDA Wataru 2015-01-21 14:03:10 +09:00 committed by FUJITA Tomonori
parent 611ffbe5a6
commit 578327edc9

View File

@ -102,7 +102,7 @@ class SentRoutes(Command):
aspath = path.get('as_path')
origin = path.get('origin')
if origin:
aspath.append(origin)
aspath = aspath + [origin]
next_hop = path.get('nexthop')
med = path.get('metric')