Esempio n. 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',[],{})
Esempio n. 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', [], {})
Esempio n. 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,[],{})

Esempio n. 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, [], {})
Esempio n. 5
0
from openflow.optin_manager.sfa.OFSfaDriver import OFSfaDriver

driver = OFSfaDriver(None)

print driver.list_resources(None,None,[],{})
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 '==================================='
from openflow.optin_manager.sfa.OFSfaDriver import OFSfaDriver

driver = OFSfaDriver(None)

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