Package openflow :: Package plugin :: Package gapi :: Module rpc
[hide private]
[frames] | no frames]

Module rpc

source code

Created on Oct 1, 2010


Author: jnaous

Functions [hide private]
 
no_such_slice(slice_urn)
Raise a no such slice exception.
source code
 
duplicate_slice_name(slice_name)
Raise duplicate slice name exception.
source code
 
require_creds(use_slice_urn)
Decorator to verify credentials
source code
 
ping(str, **kwargs) source code
 
GetVersion(**kwargs) source code
 
ListResources(credentials, options, **kwargs) source code
 
CreateSliver(slice_urn, credentials, rspec, users, **kwargs) source code
 
DeleteSliver(slice_urn, credentials, **kwargs) source code
 
SliverStatus(slice_urn, credentials, **kwargs) source code
 
RenewSliver(slice_urn, credentials, expiration_time, **kwargs) source code
 
Shutdown(slice_urn, credentials, **kwargs) source code
Variables [hide private]
  logger = logging.getLogger("openflow.plugin.gapi.rpc")
  CREDENTIALS_TYPE = 'array'
  OPTIONS_TYPE = 'struct'
  RSPEC_TYPE = 'string'
  VERSION_TYPE = 'struct'
  URN_TYPE = 'string'
  SUCCESS_TYPE = 'boolean'
  STATUS_TYPE = 'struct'
  TIME_TYPE = 'string'
  PRIVS_MAP = {'CreateSliver': ('createsliver'), 'DeleteSliver':...
  __package__ = 'openflow.plugin.gapi'
Function Details [hide private]

ping(str, **kwargs)

source code 
Decorators:
  • @rpcmethod(signature= ['string', 'string'], url_name= "openflow_gapi")

GetVersion(**kwargs)

source code 
Decorators:
  • @rpcmethod(signature= [VERSION_TYPE], url_name= "openflow_gapi")

ListResources(credentials, options, **kwargs)

source code 
Decorators:
  • @rpcmethod(signature= [RSPEC_TYPE, CREDENTIALS_TYPE, OPTIONS_TYPE], url_name= "openflow_gapi")
  • @require_creds(False)

CreateSliver(slice_urn, credentials, rspec, users, **kwargs)

source code 
Decorators:
  • @require_creds(True)
  • @rpcmethod(signature= [RSPEC_TYPE, URN_TYPE, CREDENTIALS_TYPE, OPTIONS_TYPE], url_name= "openflow_gapi")

DeleteSliver(slice_urn, credentials, **kwargs)

source code 
Decorators:
  • @require_creds(True)
  • @rpcmethod(signature= [SUCCESS_TYPE, URN_TYPE, CREDENTIALS_TYPE], url_name= "openflow_gapi")

SliverStatus(slice_urn, credentials, **kwargs)

source code 
Decorators:
  • @require_creds(True)
  • @rpcmethod(signature= [STATUS_TYPE, URN_TYPE, CREDENTIALS_TYPE], url_name= "openflow_gapi")

RenewSliver(slice_urn, credentials, expiration_time, **kwargs)

source code 
Decorators:
  • @require_creds(True)
  • @rpcmethod(signature= [SUCCESS_TYPE, URN_TYPE, CREDENTIALS_TYPE, TIME_TYPE], url_name= "openflow_gapi")

Shutdown(slice_urn, credentials, **kwargs)

source code 
Decorators:
  • @require_creds(True)
  • @rpcmethod(signature= [SUCCESS_TYPE, URN_TYPE, CREDENTIALS_TYPE], url_name= "openflow_gapi")

Variables Details [hide private]

PRIVS_MAP

Value:
{'CreateSliver': ('createsliver'),
 'DeleteSliver': ('deleteslice'),
 'ListResources': (),
 'RenewSliver': ('renewsliver'),
 'Shutdown': ('shutdown'),
 'SliverStatus': ('getsliceresources')}