X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=vsys.py;h=a429760fa702bfd2a5d39715aab66ee05a06a1ab;hb=f8a8c61aad675b62ce85c80edce84ee17f6aaeb4;hp=fa49b4ba7cf6e03e0a9de78efff2acbc43f3ef97;hpb=20e922b7418549bf5318e074ef5386792aea314b;p=nodemanager.git diff --git a/vsys.py b/vsys.py index fa49b4b..a429760 100644 --- a/vsys.py +++ b/vsys.py @@ -36,7 +36,7 @@ def GetSlivers(data): 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") @@ -123,6 +123,9 @@ def writeConf(slivers, oldslivers): f.write("/vservers/%(name)s/vsys %(name)s\n" % {"name": sliver}) f.truncate() f.close() + return True + else: + return False def parseConf():