summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_protocols_bgp.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-30 22:04:09 +0200
committerGitHub <noreply@github.com>2021-07-30 22:04:09 +0200
commitc8ca485148659cca72c0e7f07c53d1b858d932ac (patch)
treec428929699d3314a6c2e4539ba2e1dbb0f12ca7b /smoketest/scripts/cli/test_protocols_bgp.py
parentf89a0cfc7d0d908cbe1715b760b07926ffa3f7b9 (diff)
parente4a24c4e6ce555ad6762f2cc6a414351209f2581 (diff)
downloadvyos-1x-c8ca485148659cca72c0e7f07c53d1b858d932ac.tar.gz
vyos-1x-c8ca485148659cca72c0e7f07c53d1b858d932ac.zip
Merge pull request #949 from sever-sever/T1176-curr
bgp: T1176: Add solo option for neighbor
Diffstat (limited to 'smoketest/scripts/cli/test_protocols_bgp.py')
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_bgp.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_protocols_bgp.py b/smoketest/scripts/cli/test_protocols_bgp.py
index a1b3356ce..c3a2ffbf9 100755
--- a/smoketest/scripts/cli/test_protocols_bgp.py
+++ b/smoketest/scripts/cli/test_protocols_bgp.py
@@ -694,5 +694,21 @@ class TestProtocolsBGP(VyOSUnitTestSHIM.TestCase):
self.assertIn(f' neighbor {interface} activate', frrconfig)
self.assertIn(f' exit-address-family', frrconfig)
+ def test_bgp_13_solo(self):
+ remote_asn = str(int(ASN) + 150)
+ neighbor = '192.0.2.55'
+
+ self.cli_set(base_path + ['local-as', ASN])
+ self.cli_set(base_path + ['neighbor', neighbor, 'remote-as', remote_asn])
+ self.cli_set(base_path + ['neighbor', neighbor, 'solo'])
+
+ # commit changes
+ self.cli_commit()
+
+ # Verify FRR bgpd configuration
+ frrconfig = self.getFRRconfig(f'router bgp {ASN}')
+ self.assertIn(f'router bgp {ASN}', frrconfig)
+ self.assertIn(f' neighbor {neighbor} solo', frrconfig)
+
if __name__ == '__main__':
unittest.main(verbosity=2) \ No newline at end of file