diff options
author | khramshinr <khramshinr@gmail.com> | 2024-03-19 17:50:11 +0800 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-03-23 16:51:21 +0000 |
commit | 25252cdbfcef43980c2586a16f676e94f29a64bf (patch) | |
tree | bd363a64b5c446bf9b41d48656b5a0dcffaa06d7 /smoketest | |
parent | a72102b89566451bce40beb1ffdb5d2bf0b1dcc2 (diff) | |
download | vyos-1x-25252cdbfcef43980c2586a16f676e94f29a64bf.tar.gz vyos-1x-25252cdbfcef43980c2586a16f676e94f29a64bf.zip |
bgp: T6106: Valid commit error for route-reflector-client option defined in peer-group
handle vtysh bgp error
(cherry picked from commit 6fa72591972618f02ac1c66c084a99e006ce18f3)
Diffstat (limited to 'smoketest')
-rwxr-xr-x | smoketest/scripts/cli/test_protocols_bgp.py | 7 |
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' |