summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-20 18:17:54 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-20 18:18:26 +0200
commitf7e3f5562458da4d80b272f1524c27727799e57b (patch)
tree3f59f88f308af28e9ef9c0addc355b37806935ef /smoketest/scripts/cli
parent2591adc9ad25906bf58b42a70409d40d8b339ed6 (diff)
downloadvyos-1x-f7e3f5562458da4d80b272f1524c27727799e57b.tar.gz
vyos-1x-f7e3f5562458da4d80b272f1524c27727799e57b.zip
bgp: T3759: add IPv4/IPv6 unicast AFI route-map for VPN import/export
This adds the following new commands: set protocols bgp address-family ipv4-unicast route-map vpn export foo-map-out set protocols bgp address-family ipv4-unicast route-map vpn import foo-map-in set protocols bgp address-family ipv6-unicast route-map vpn export foo-map-out set protocols bgp address-family ipv6-unicast route-map vpn import foo-map-in
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_bgp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_protocols_bgp.py b/smoketest/scripts/cli/test_protocols_bgp.py
index dbe1a81d6..f535408db 100755
--- a/smoketest/scripts/cli/test_protocols_bgp.py
+++ b/smoketest/scripts/cli/test_protocols_bgp.py
@@ -751,6 +751,8 @@ class TestProtocolsBGP(VyOSUnitTestSHIM.TestCase):
self.assertIn(f' import vpn', afi_config)
self.assertIn(f' label vpn export {label}', afi_config)
self.assertIn(f' rd vpn export {rd}', afi_config)
+ self.assertIn(f' route-map vpn export {route_map_out}', afi_config)
+ self.assertIn(f' route-map vpn import {route_map_in}', afi_config)
self.assertIn(f' exit-address-family', afi_config)
afi_config = self.getFRRconfig(f' address-family ipv4 unicast', endsection='exit-address-family', daemon='bgpd')