diff options
author | Christian Breunig <christian@breunig.cc> | 2023-12-13 13:07:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-13 13:07:16 +0100 |
commit | fd74eb2e388308b9bd50ccc4236d53baa53a8da2 (patch) | |
tree | 4f3be6ea2a1d80f3795bec344af85e680ced2545 /smoketest/scripts/cli/test_protocols_bgp.py | |
parent | 6b18f0d0bd6d688b84d54aec8f5a46687c7317f6 (diff) | |
parent | 5904a4163d004561b8cb51ad76212a841ce85832 (diff) | |
download | vyos-1x-fd74eb2e388308b9bd50ccc4236d53baa53a8da2.tar.gz vyos-1x-fd74eb2e388308b9bd50ccc4236d53baa53a8da2.zip |
Merge pull request #2626 from vyos/mergify/bp/sagitta/pr-2606
SRv6: T591: initial implementation to support locator definition (backport #2606)
Diffstat (limited to 'smoketest/scripts/cli/test_protocols_bgp.py')
-rwxr-xr-x | smoketest/scripts/cli/test_protocols_bgp.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_protocols_bgp.py b/smoketest/scripts/cli/test_protocols_bgp.py index 71e2142f9..97dab255e 100755 --- a/smoketest/scripts/cli/test_protocols_bgp.py +++ b/smoketest/scripts/cli/test_protocols_bgp.py @@ -1133,5 +1133,20 @@ class TestProtocolsBGP(VyOSUnitTestSHIM.TestCase): self.assertIn(f' mpls bgp forwarding', frrconfig) self.cli_delete(['interfaces', 'ethernet', interface, 'vrf']) + def test_bgp_24_srv6_sid(self): + locator_name = 'VyOS_foo' + sid = 'auto' + + self.cli_set(base_path + ['srv6', 'locator', locator_name]) + self.cli_set(base_path + ['sid', 'vpn', 'per-vrf', 'export', sid]) + + self.cli_commit() + + frrconfig = self.getFRRconfig(f'router bgp {ASN}') + self.assertIn(f'router bgp {ASN}', frrconfig) + self.assertIn(f' segment-routing srv6', frrconfig) + self.assertIn(f' locator {locator_name}', frrconfig) + self.assertIn(f' sid vpn per-vrf export {sid}', frrconfig) + if __name__ == '__main__': unittest.main(verbosity=2) |