コード例 #1
0
ファイル: sliver_status.py プロジェクト: HalasNet/felix
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
ファイル: create_sliver.py プロジェクト: HalasNet/felix
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
ファイル: list_resources.py プロジェクト: HalasNet/felix
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, [], {})