From a93eb16a516ad20097fecc318fb621233ffbf5cb Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 22 Aug 2018 15:03:18 -0400 Subject: [PATCH] lib: Always attempt to set mpls platform_labels The code was not attempting to set the max platform_labels on a per router basis, leaving us w/ situations where mpls install would fail because platform_labels was 0. Signed-off-by: Donald Sharp --- tests/topotests/lib/topotest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index dc67342fc1..5cc222e149 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -788,7 +788,7 @@ class Router(Node): self.hasmpls = True if self.hasmpls != True: return "LDP/MPLS Tests need mpls kernel modules" - self.cmd('echo 100000 > /proc/sys/net/mpls/platform_labels') + self.cmd('echo 100000 > /proc/sys/net/mpls/platform_labels') if self.daemons['eigrpd'] == 1: eigrpd_path = os.path.join(self.daemondir, 'eigrpd')