summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-24 17:48:09 +0100
committerGitHub <noreply@github.com>2024-03-24 17:48:09 +0100
commit810ad5c718d685e0835b91eea17b5cf90b96fb5f (patch)
tree285db875571a7fc1776130d0a3a7698b7da646a8 /smoketest
parent8ca9e5930cd1154309036ef0ebd40821bab91991 (diff)
parent25252cdbfcef43980c2586a16f676e94f29a64bf (diff)
downloadvyos-1x-810ad5c718d685e0835b91eea17b5cf90b96fb5f.tar.gz
vyos-1x-810ad5c718d685e0835b91eea17b5cf90b96fb5f.zip
Merge pull request #3175 from vyos/mergify/bp/sagitta/pr-3151
bgp: T6106: Show complete FRR output on internal errors (backport #3151)
Diffstat (limited to 'smoketest')
-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'