summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-17 20:52:26 +0100
committerChristian Poessinger <christian@poessinger.com>2021-03-17 20:52:35 +0100
commit5591edc5358c88a8ff947831fdc03b5949f09bee (patch)
treea86eb83826bdcc54f1bebf9c2c8b25f38e85d536 /smoketest/scripts/cli
parenta334b8bd2a6695413712f0801200682e9d44c4c7 (diff)
downloadvyos-1x-5591edc5358c88a8ff947831fdc03b5949f09bee.tar.gz
vyos-1x-5591edc5358c88a8ff947831fdc03b5949f09bee.zip
smoketest: static: add required vrf to setUp()
When we leak routes to a VRF it is verified that the target VRF actually exists.
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_static.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/smoketest/scripts/cli/test_protocols_static.py b/smoketest/scripts/cli/test_protocols_static.py
index 407734fcb..75d3e6a42 100755
--- a/smoketest/scripts/cli/test_protocols_static.py
+++ b/smoketest/scripts/cli/test_protocols_static.py
@@ -83,6 +83,10 @@ routes = {
tables = ['80', '81', '82']
class StaticRouteTest(VyOSUnitTestSHIM.TestCase):
+ def setUp(self):
+ # This is our "target" VRF when leaking routes:
+ self.cli_set(['vrf', 'name', 'black', 'table', '43210'])
+
def tearDown(self):
for route, route_config in routes.items():
route_type = 'route'
@@ -94,8 +98,6 @@ class StaticRouteTest(VyOSUnitTestSHIM.TestCase):
self.cli_delete(base_path + ['table', table])
tmp = self.getFRRconfig('', end='')
- import pprint
- pprint.pprint(tmp)
self.cli_commit()
def test_protocols_static(self):
@@ -288,7 +290,6 @@ class StaticRouteTest(VyOSUnitTestSHIM.TestCase):
'green' : { 'table' : '2000' },
'blue' : { 'table' : '3000' },
}
- self.debug = True
for vrf, vrf_config in vrfs.items():
vrf_base_path = ['vrf', 'name', vrf]