from sfa.trust.certificate import Keypair, Certificate
from sfa.trust.credential import Credential
-from sfa.trust.gid import create_uuid
-from sfa.util.newgeniclient import GeniClient
+from sfa.util.geniclient import GeniClient
from sfa.util.record import *
from sfa.util.rspec import Rspec
+from sfa.util.xmlrpcprotocol import ServerException
# xxx todo xxx auto-load ~/.sfi/sfi_config
slice_hrn = args[0]
slice_cred = get_slice_cred(slice_hrn)
rspec_file = get_rspec_file(args[1])
- with open(rspec_file) as f:
- rspec = f.read()
+ rspec=open(rspec_file).read()
return slicemgr.create_slice(slice_cred, slice_hrn, rspec)
# delete named slice