From e0c7d1823a0ffa5661f7b2dd54810e0fd92f72fb Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sat, 22 Aug 2015 17:42:29 +0900 Subject: test: enable parallel execution of malformed test Signed-off-by: ISHIDA Wataru --- test/scenario_test/lib/exabgp.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/scenario_test/lib/exabgp.py') diff --git a/test/scenario_test/lib/exabgp.py b/test/scenario_test/lib/exabgp.py index f5cdd313..cf5fbc1a 100644 --- a/test/scenario_test/lib/exabgp.py +++ b/test/scenario_test/lib/exabgp.py @@ -82,7 +82,10 @@ class ExaBGPContainer(BGPContainer): cmd << ' static {' for route in routes: r = CmdBuffer(' ') - r << ' route {0} next-hop {1}'.format(route['prefix'], local_addr) + nexthop = local_addr + if route['next-hop']: + nexthop = route['next-hop'] + r << ' route {0} next-hop {1}'.format(route['prefix'], nexthop) if route['as-path']: r << 'as-path [{0}]'.format(' '.join(str(i) for i in route['as-path'])) if route['community']: @@ -92,7 +95,7 @@ class ExaBGPContainer(BGPContainer): if route['extended-community']: r << 'extended-community [{0}]'.format(route['extended-community']) if route['attr']: - r << 'attribute {0}'.format(route['attr']) + r << 'attribute [ {0} ]'.format(route['attr']) cmd << '{0};'.format(str(r)) cmd << ' }' -- cgit v1.2.3