summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/lib/exabgp.py
diff options
context:
space:
mode:
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']: