diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-06-29 18:34:28 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-06-29 18:34:28 +0200 |
commit | 6152084f5f497e2f4827ec5271b9112d976cf19b (patch) | |
tree | 5ec7d8324b174b574123a101d68d196f0d5b1ef4 /smoketest/scripts | |
parent | 0751065ffa2161bedd040197dd51ad6ece5ab19b (diff) | |
download | vyos-1x-6152084f5f497e2f4827ec5271b9112d976cf19b.tar.gz vyos-1x-6152084f5f497e2f4827ec5271b9112d976cf19b.zip |
smoketest: bgp: T3657: test ipv6 link-local peering
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-x | smoketest/scripts/cli/test_protocols_bgp.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_protocols_bgp.py b/smoketest/scripts/cli/test_protocols_bgp.py index c51d83875..a1b3356ce 100755 --- a/smoketest/scripts/cli/test_protocols_bgp.py +++ b/smoketest/scripts/cli/test_protocols_bgp.py @@ -674,5 +674,25 @@ class TestProtocolsBGP(VyOSUnitTestSHIM.TestCase): self.assertIn(f' bgp confederation identifier {confed_id}', frrconfig) self.assertIn(f' bgp confederation peers {confed_asns}', frrconfig) + + def test_bgp_12_v6_link_local(self): + remote_asn = str(int(ASN) + 10) + interface = 'eth0' + + self.cli_set(base_path + ['local-as', ASN]) + self.cli_set(base_path + ['neighbor', interface, 'address-family', 'ipv6-unicast']) + self.cli_set(base_path + ['neighbor', interface, 'interface', 'v6only', 'remote-as', remote_asn]) + + # 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 {interface} interface v6only remote-as {remote_asn}', frrconfig) + self.assertIn(f' address-family ipv6 unicast', frrconfig) + self.assertIn(f' neighbor {interface} activate', frrconfig) + self.assertIn(f' exit-address-family', frrconfig) + if __name__ == '__main__': unittest.main(verbosity=2)
\ No newline at end of file |