summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-18 11:12:08 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-18 12:57:14 +0200
commit73c0e87109855f9b3372540b4ace03c6fb517c2a (patch)
tree1431a67fbd2df5fc6b8f24025eb0800304ca08c7 /smoketest/scripts/cli
parent4058e389f1ca1398ad4fca790839c638a58f7aa3 (diff)
downloadvyos-1x-73c0e87109855f9b3372540b4ace03c6fb517c2a.tar.gz
vyos-1x-73c0e87109855f9b3372540b4ace03c6fb517c2a.zip
bgp: T3759: add l3vpn "label vpn export" commands
Add the following new commands: * set protocols bgp address-family ipv4-unicast label vpn export (auto | 0-1048575) * set protocols bgp address-family ipv6-unicast label vpn export (auto | 0-1048575)
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_bgp.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/test_protocols_bgp.py b/smoketest/scripts/cli/test_protocols_bgp.py
index 7a470abf9..d3d061229 100755
--- a/smoketest/scripts/cli/test_protocols_bgp.py
+++ b/smoketest/scripts/cli/test_protocols_bgp.py
@@ -730,11 +730,14 @@ class TestProtocolsBGP(VyOSUnitTestSHIM.TestCase):
remote_asn = str(int(ASN) + 150)
neighbor = '192.0.2.55'
vrf_name = 'red'
+ label = 'auto'
self.cli_set(base_path + ['local-as', ASN])
# testing only one AFI is sufficient as it's generic code
- self.cli_set(base_path + ['address-family', 'ipv6-unicast', 'export', 'vpn'])
- self.cli_set(base_path + ['address-family', 'ipv6-unicast', 'import', 'vpn'])
+ for afi in ['ipv4-unicast', 'ipv6-unicast']:
+ self.cli_set(base_path + ['address-family', afi, 'export', 'vpn'])
+ self.cli_set(base_path + ['address-family', afi, 'import', 'vpn'])
+ self.cli_set(base_path + ['address-family', afi, 'label', 'vpn', 'export', label])
# commit changes
self.cli_commit()