Skip to content

Commit

Permalink
Merge pull request #18 from opensourcerouting/ARM-fixes
Browse files Browse the repository at this point in the history
Fixes to run topotest on ARM7 testbeds (and more reliable on other systems)
  • Loading branch information
mwinter-osr authored Jul 26, 2017
2 parents b07381e + e4d872e commit 691e76b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 9 additions & 0 deletions lib/topotest.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,15 @@ def startRouter(self):
logger.warning("LDP Test need Linux Kernel 4.5 minimum")
return "LDP Test need Linux Kernel 4.5 minimum"

# Check if required kernel modules are available with a dryrun modprobe
# Silent accept of modprobe command assumes ok status
if self.cmd('/sbin/modprobe -n mpls-router' ) != "":
logger.warning("LDP Test needs mpls-router kernel module")
return "LDP Test needs mpls-router kernel module"
if self.cmd('/sbin/modprobe -n mpls-iptunnel') != "":
logger.warning("LDP Test needs mpls-iptunnel kernel module")
return "LDP Test needs mpls-router kernel module"

self.cmd('/sbin/modprobe mpls-router')
self.cmd('/sbin/modprobe mpls-iptunnel')
self.cmd('echo 100000 > /proc/sys/net/mpls/platform_labels')
Expand Down
1 change: 0 additions & 1 deletion ospf-topo1/test_ospf_topo1.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ def test_ospf_json():
'spfScheduleDelayMsecs': 0,
'holdtimeMinMsecs': 50,
'holdtimeMaxMsecs': 5000,
'spfLastDurationMsecs': 0,
'lsaMinIntervalMsecs': 5000,
'lsaMinArrivalMsecs': 1000,
'writeMultiplier': 20,
Expand Down

0 comments on commit 691e76b

Please sign in to comment.