Exemple #1
0
 def get(self, request, response):
     actual_get = lambda req, rep: self._get()
     return AbstractNetworkMapBackend.get(self, request, response, actual_get)
Exemple #2
0
 def __init__(self, config, rid, **args):
     AbstractNetworkMapBackend.__init__(self, config)
     self.odl_args = { info : args.pop(info) for info in ODL_INFO }
     BasicIRDResource.__init__(self, rid, 'costmap', **args)
     self.connector = ODLAdapter(self.odl_args)
Exemple #3
0
 def post(self, request, response):
     actual_post = lambda req, rep: self._post(req, rep)
     return AbstractNetworkMapBackend.post(self, request, response, actual_post)
Exemple #4
0
 def __init__(self, config, global_config, rid, **args):
     meta, data = args.pop('meta'), args.pop('data')
     AbstractNetworkMapBackend.__init__(self, config)
     BasicIRDResource.__init__(self, rid, **meta)
     self._data = data
Exemple #5
0
 def __init__(self, config, networkmap):
     AbstractNetworkMapBackend.__init__(self, config, True)
     self.networkmap = networkmap