summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-26 22:49:44 +0100
committerGitHub <noreply@github.com>2021-02-26 22:49:44 +0100
commit6342735d51ee057a55d7fb9f2a53ff0dfaa1febf (patch)
treed5c905c590ad6567c63d38124dca507fa1a7b15d /smoketest/scripts
parentcaf6e392f025139f962395d162b433a4d038eeee (diff)
parent4bf55f9732dd44d2297d70c0587604df90a39757 (diff)
downloadvyos-1x-6342735d51ee057a55d7fb9f2a53ff0dfaa1febf.tar.gz
vyos-1x-6342735d51ee057a55d7fb9f2a53ff0dfaa1febf.zip
Merge pull request #744 from Cheeze-It/current
bgp: T2100: Changing RFC8212 behavior and option toggle
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_bgp.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_protocols_bgp.py b/smoketest/scripts/cli/test_protocols_bgp.py
index b6a6a493c..607dfc116 100755
--- a/smoketest/scripts/cli/test_protocols_bgp.py
+++ b/smoketest/scripts/cli/test_protocols_bgp.py
@@ -221,12 +221,13 @@ class TestProtocolsBGP(unittest.TestCase):
self.session.set(base_path + ['parameters', 'router-id', router_id])
self.session.set(base_path + ['parameters', 'log-neighbor-changes'])
- # Default local preference (higher=more preferred)
+ # Default local preference (higher = more preferred, default value is 100)
self.session.set(base_path + ['parameters', 'default', 'local-pref', local_pref])
# Deactivate IPv4 unicast for a peer by default
self.session.set(base_path + ['parameters', 'default', 'no-ipv4-unicast'])
self.session.set(base_path + ['parameters', 'graceful-restart', 'stalepath-time', stalepath_time])
self.session.set(base_path + ['parameters', 'graceful-shutdown'])
+ self.session.set(base_path + ['parameters', 'ebgp-requires-policy'])
# commit changes
self.session.commit()
@@ -240,6 +241,7 @@ class TestProtocolsBGP(unittest.TestCase):
self.assertIn(f' no bgp default ipv4-unicast', frrconfig)
self.assertIn(f' bgp graceful-restart stalepath-time {stalepath_time}', frrconfig)
self.assertIn(f' bgp graceful-shutdown', frrconfig)
+ self.assertIn(f' bgp ebgp-requires-policy', frrconfig)
def test_bgp_02_neighbors(self):