summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-03-23 17:50:47 +0100
committerGitHub <noreply@github.com>2024-03-23 17:50:47 +0100
commit19df61f2291f19cbbea1dc94587f3ee8bb251212 (patch)
treeaf171e642e4fb97857523a8fb1a04444d165b93b /smoketest/scripts
parent91cd3ea5908f4f0ed8e3d9a91138479e08fc34b3 (diff)
parent6fa72591972618f02ac1c66c084a99e006ce18f3 (diff)
downloadvyos-1x-19df61f2291f19cbbea1dc94587f3ee8bb251212.tar.gz
vyos-1x-19df61f2291f19cbbea1dc94587f3ee8bb251212.zip
Merge pull request #3151 from HollyGurza/T6106
bgp: T6106: Valid commit error for route-reflector-client option defiā€¦
Diffstat (limited to 'smoketest/scripts')
-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 1d68ae08b..1dc865977 100755
--- a/smoketest/scripts/cli/test_protocols_bgp.py
+++ b/smoketest/scripts/cli/test_protocols_bgp.py
@@ -1236,6 +1236,13 @@ class TestProtocolsBGP(VyOSUnitTestSHIM.TestCase):
self.assertIn(f' neighbor {pg_ipv6} activate', afiv6_config)
self.assertIn(f' neighbor {pg_ipv6} maximum-prefix {ipv6_max_prefix}', afiv6_config)
+ def test_bgp_26_commit_error(self):
+ self.cli_set(base_path + ['peer-group', 'peer1', 'address-family', 'l2vpn-evpn', 'route-reflector-client'])
+ with self.assertRaises(ConfigSessionError) as e:
+ self.cli_commit()
+
+ self.assertTrue("% Invalid command. Not an internal neighbor" in str(e.exception))
+
def test_bgp_99_bmp(self):
target_name = 'instance-bmp'
target_address = '127.0.0.1'