def get(self, request, response): actual_get = lambda req, rep: self._get() return AbstractNetworkMapBackend.get(self, request, response, actual_get)
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)
def post(self, request, response): actual_post = lambda req, rep: self._post(req, rep) return AbstractNetworkMapBackend.post(self, request, response, actual_post)
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
def __init__(self, config, networkmap): AbstractNetworkMapBackend.__init__(self, config, True) self.networkmap = networkmap