further removal and refactoring of methods used within misc/utils.py

This commit is contained in:
Blake J. Harnden 2018-03-02 09:15:52 -08:00
parent 6211b09585
commit 00b3c97448
23 changed files with 181 additions and 293 deletions

View file

@ -86,4 +86,4 @@ def ngloadkernelmodule(name):
:param str name: module name
:return: nothing
"""
utils.mutecall(["kldload", name])
utils.check_cmd(["kldload", name])

View file

@ -263,7 +263,7 @@ class SimpleJailNode(PyCoreNode):
self.attachnet(ifindex, net)
if hwaddr:
self.sethwaddr(ifindex, hwaddr)
for addr in utils.maketuple(addrlist):
for addr in utils.make_tuple(addrlist):
self.addaddr(ifindex, addr)
self.ifup(ifindex)
return ifindex