This commit is contained in:
Vincent JARDIN 2025-04-29 16:20:41 +00:00 committed by GitHub
commit 97d79b8ace
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1799,7 +1799,10 @@ class Router(Node):
# Really want to use sysctl_atleast here, but only when MPLS is actually being
# used
self.cmd("echo 100000 > /proc/sys/net/mpls/platform_labels")
if self.hasmpls == True:
self.cmd("echo 100000 > /proc/sys/net/mpls/platform_labels")
else:
self.cmd("echo 100000 > /proc/sys/net/mpls/platform_labels")
if g_pytest_config.name_in_option_list(self.name, "--shell"):
self.run_in_window(os.getenv("SHELL", "bash"), title="sh-%s" % self.name)