예제 #1
0
from openflow.optin_manager.sfa.OFSfaDriver import OFSfaDriver

driver = OFSfaDriver(None)

print driver.sliver_status('URN:topdomain.subdomain.slice1.urn_more_or_less','topdomain.subdomain',[],{})
예제 #2
0
from openflow.optin_manager.sfa.OFSfaDriver import OFSfaDriver

driver = OFSfaDriver(None)

print driver.sliver_status('URN:topdomain.subdomain.slice1.urn_more_or_less',
                           'topdomain.subdomain', [], {})
예제 #3
0
from openflow.optin_manager.sfa.OFSfaDriver import OFSfaDriver
from openflow.optin_manager.sfa.sliver_example import rspec
driver = OFSfaDriver(None)

print driver.create_sliver('URN:topdomain.subdomain.slice1.urn_more_or_less','topdomain.subdomain',rspec,[],{})

예제 #4
0
from openflow.optin_manager.sfa.OFSfaDriver import OFSfaDriver
from openflow.optin_manager.sfa.sliver_example import rspec
driver = OFSfaDriver(None)

print driver.create_sliver('URN:topdomain.subdomain.slice1.urn_more_or_less',
                           'topdomain.subdomain', rspec, [], {})
예제 #5
0
from openflow.optin_manager.sfa.OFSfaDriver import OFSfaDriver

driver = OFSfaDriver(None)

print driver.list_resources(None,None,[],{})
예제 #6
0
from openflow.optin_manager.sfa.OFSfaDriver import OFSfaDriver
from openflow.optin_manager.opts.models import Experiment

driver = OFSfaDriver(None)
print '================================='
print 'STARTING SLICE'
print driver.crud_slice('URN:topdomain.subdomain.slice1.urn_more_or_less','topdomain.subdomain',[],'start_slice')
print '================================='
print '\n================================='
print 'STOPPING SLICE'
print driver.crud_slice('URN:topdomain.subdomain.slice1.urn_more_or_less','topdomain.subdomain',[],'stop_slice')
print '================================='
print '\n================================='
print 'REBOOTING SLICE'
print driver.crud_slice('URN:topdomain.subdomain.slice1.urn_more_or_less','topdomain.subdomain',[],'reset_slice')
print '================================='
print '\n================================='
print 'DELETING SLICE'
print driver.crud_slice('URN:topdomain.subdomain.slice1.urn_more_or_less','topdomain.subdomain',[],'delete_slice')
print '================================='

print '\n================================='
print 'Getting deleted slice from experiment model'
print Experiment.objects.get(slice_id='URN:topdomain.subdomain.slice1.urn_more_or_less')
print '==================================='
예제 #7
0
from openflow.optin_manager.sfa.OFSfaDriver import OFSfaDriver

driver = OFSfaDriver(None)

print driver.list_resources(None, None, [], {})