summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/lib/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/scenario_test/lib/base.py')
-rw-r--r--test/scenario_test/lib/base.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/scenario_test/lib/base.py b/test/scenario_test/lib/base.py
index 8a81c245..d3cb9bd9 100644
--- a/test/scenario_test/lib/base.py
+++ b/test/scenario_test/lib/base.py
@@ -286,7 +286,8 @@ class BGPContainer(Container):
def add_route(self, route, rf='ipv4', attribute=None, aspath=None,
community=None, med=None, extendedcommunity=None,
- nexthop=None, matchs=None, thens=None):
+ nexthop=None, matchs=None, thens=None,
+ local_pref=None):
self.routes[route] = {'prefix': route,
'rf': rf,
'attr': attribute,
@@ -294,6 +295,7 @@ class BGPContainer(Container):
'as-path': aspath,
'community': community,
'med': med,
+ 'local-pref': local_pref,
'extended-community': extendedcommunity,
'matchs': matchs,
'thens' : thens}