]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Always attempt to set mpls platform_labels
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 22 Aug 2018 19:03:18 +0000 (15:03 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:14 +0000 (20:22 -0500)
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 <sharpd@cumulusnetworks.com>
tests/topotests/lib/topotest.py

index dc67342fc13017902f190bdb9d2b7db33653616a..5cc222e1490cba1d185801c1c326e8bab1d5f4a2 100644 (file)
@@ -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')