Example #1
0
class OFSfaDriver:

	def __init__ (self, config=None):
		self.aggregate = OFAggregate()

	def list_resources (self,slice_urn=None, slice_leaf=None, creds=[], options={},):

		version_manager = VersionManager()
		rspec_version = 'OcfOf'
        	version_string = "rspec_%s" % (rspec_version)
                if slice_urn:
                    options['slice_urn'] = slice_urn
	        rspec =  self.aggregate.get_rspec(version=rspec_version,options=options)
       		return rspec
Example #2
0
class OFSfaDriver:
    def __init__(self, config=None):
        self.aggregate = OFAggregate()

    def list_resources(
        self,
        slice_urn=None,
        slice_leaf=None,
        creds=[],
        options={},
    ):

        version_manager = VersionManager()
        rspec_version = 'OcfOf'
        version_string = "rspec_%s" % (rspec_version)
        if slice_urn:
            options['slice_urn'] = slice_urn
        rspec = self.aggregate.get_rspec(version=rspec_version,
                                         options=options)
        return rspec
Example #3
0
 def __init__(self, config=None):
     self.aggregate = OFAggregate()
Example #4
0
	def __init__ (self, config=None):
		self.aggregate = OFAggregate()