summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_protocols_bgp.py
diff options
context:
space:
mode:
authorkhramshinr <khramshinr@gmail.com>2024-03-29 22:38:27 +0800
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-03-30 12:07:45 +0000
commit210358615269d406873b5e00b77347392145e140 (patch)
tree637d1d34bd84126e6d1a7e945e3235c1058abf66 /smoketest/scripts/cli/test_protocols_bgp.py
parentb593eb5d7fd61bddeddcf300890521c1c1ec4335 (diff)
downloadvyos-1x-210358615269d406873b5e00b77347392145e140.tar.gz
vyos-1x-210358615269d406873b5e00b77347392145e140.zip
bgp: T6106: Valid commit error for route-reflector-client option defined in peer-group
changed exception condition Improved route_reflector_client test (cherry picked from commit 84f05b1dd41bea5de16d707aa77a467f8d499323)
Diffstat (limited to 'smoketest/scripts/cli/test_protocols_bgp.py')
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_bgp.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_protocols_bgp.py b/smoketest/scripts/cli/test_protocols_bgp.py
index 5f238b25a..e8556cf44 100755
--- a/smoketest/scripts/cli/test_protocols_bgp.py
+++ b/smoketest/scripts/cli/test_protocols_bgp.py
@@ -1241,6 +1241,13 @@ class TestProtocolsBGP(VyOSUnitTestSHIM.TestCase):
with self.assertRaises(ConfigSessionError) as e:
self.cli_commit()
+ self.cli_set(base_path + ['peer-group', 'peer1', 'remote-as', 'internal'])
+ self.cli_commit()
+
+ conf = self.getFRRconfig(' address-family l2vpn evpn')
+
+ self.assertIn('neighbor peer1 route-reflector-client', conf)
+
def test_bgp_99_bmp(self):
target_name = 'instance-bmp'
target_address = '127.0.0.1'