f.write("%s\n" % value)
f.close()
STATUS="OFF"
- if int(value) >= 1:
+ if value:
STATUS="ON"
logger.log("%s: network namespace %s\n" % (slicename, STATUS))
for attribute in sliver['attributes']:
attrs[attribute['name']] = attribute['value']
if 'netns' in attrs:
- writeConf(sliver['name'], attrs['netns'])
- netns = attrs['netns']
+ netns = int(attrs['netns'])
+ writeConf(sliver['name'], netns)
else:
netns = 0