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 <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2018-08-22 15:03:18 -04:00
parent 9aecc71d53
commit a93eb16a51

View 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')