this avoids the vsys update, which may wipe out the current /etc/vsys.conf
file, from keeping vsys dysfunctional forever. Previously, vsys never would
have been restarted.
scripts[attribute['value']].append(sliver['name'])
# Write the conf
- writeConf(slices, parseConf())
+ _restart = writeConf(slices, parseConf()) or _restart
# Write out the ACLs
if writeAcls(scripts, parseAcls()) or _restart:
logger.log("vsys: restarting vsys service")
f.write("/vservers/%(name)s/vsys %(name)s\n" % {"name": sliver})
f.truncate()
f.close()
+ return True
+ else:
+ return False
def parseConf():