def __repr__(self):
return self.api.__repr__()
+def getAuthAPI():
+ import auth
+ return PLC(auth.auth, auth.plc)
+
'''
Returns list of nodes in dbg as reported by PLC
'''
sites = []
anon = {'AuthMethod': "anonymous"}
try:
- sites = api.GetSites(anon, filter, fields)
+ #sites = api.GetSites(anon, filter, fields)
+ sites = api.GetSites(auth.auth, filter, fields)
except Exception, exc:
+ import traceback
+ traceback.print_exc()
print "getSites: %s" % exc
logger.info("getSites: %s" % exc)
return sites
Removes ability to create slices. Returns previous max_slices
'''
def removeSliceCreation(nodename):
+ print "removeSliceCreation(%s)" % nodename
api = xmlrpclib.Server(XMLRPC_SERVER, verbose=False)
try:
loginbase = siteId(nodename)