summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/lib/exabgp.py
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-11-07 19:44:59 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-11-08 05:05:36 -0800
commit2f6db55c6743cdd568f1555b91017a6f2c09695d (patch)
treef022bb9bae68b89d3a682edeb2bfcdac7005eedb /test/scenario_test/lib/exabgp.py
parentd53a5d11d9f3b0ee762a0510ff6608e69ed595ff (diff)
scenario_test: test local-pref and med handling
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/lib/exabgp.py')
-rw-r--r--test/scenario_test/lib/exabgp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/scenario_test/lib/exabgp.py b/test/scenario_test/lib/exabgp.py
index af310530..e14a084b 100644
--- a/test/scenario_test/lib/exabgp.py
+++ b/test/scenario_test/lib/exabgp.py
@@ -93,6 +93,8 @@ class ExaBGPContainer(BGPContainer):
r << 'community [{0}]'.format(' '.join(c for c in route['community']))
if route['med']:
r << 'med {0}'.format(route['med'])
+ if route['local-pref']:
+ r << 'local-preference {0}'.format(route['local-pref'])
if route['extended-community']:
r << 'extended-community [{0}]'.format(route['extended-community'])
if route['attr']: