import sys
import plc
-import auth
-api = plc.PLC(auth.auth, auth.plc)
-import config
+api = plc.getAuthAPI()
+import util.file
if len(sys.argv[1:]) > 0:
for host in sys.argv[1:]:
#print nn2['nodenetwork_id']
#api.DeleteNodeNetwork(nn2['nodenetwork_id'])
else:
- nnids = config.getListFromFile('nnids.txt')
+ nnids = util.file.getListFromFile('nnids.txt')
nnids = [ int(i) for i in nnids]
for id in nnids:
nnet2 = api.GetNodeNetworks(id)