This is necessary to make some tests work correctly. Only topologies
created using the topogen framework benefit from this change.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
from lib import topotest
from lib.topolog import logger, logger_config
+from lib.topotest import set_sysctl
CWD = os.path.dirname(os.path.realpath(__file__))
if result != '':
self.tgen.set_error(result)
+ else:
+ # Enable MPLS processing on all interfaces.
+ for interface in self.links.keys():
+ set_sysctl(nrouter, 'net.mpls.conf.{}.input'.format(interface), 1)
return result