Loading src/device/service/drivers/gnmi_openconfig/handlers/Interface.py +6 −0 Original line number Diff line number Diff line Loading @@ -86,9 +86,15 @@ class InterfaceHandler(_Handler): json_data = json_data['openconfig-interfaces:interface'][0] str_data = json.dumps(json_data) LOGGER.warning('Releasing...') while not objects_to_free.empty(): LOGGER.warning('Getting...') obj = objects_to_free.get() LOGGER.warning('Releasing: {:s} => {:s}'.format( str(obj.path()), str(obj.print_mem('json')) )) obj.free() LOGGER.warning('Release done') return str_path, str_data def parse( Loading Loading
src/device/service/drivers/gnmi_openconfig/handlers/Interface.py +6 −0 Original line number Diff line number Diff line Loading @@ -86,9 +86,15 @@ class InterfaceHandler(_Handler): json_data = json_data['openconfig-interfaces:interface'][0] str_data = json.dumps(json_data) LOGGER.warning('Releasing...') while not objects_to_free.empty(): LOGGER.warning('Getting...') obj = objects_to_free.get() LOGGER.warning('Releasing: {:s} => {:s}'.format( str(obj.path()), str(obj.print_mem('json')) )) obj.free() LOGGER.warning('Release done') return str_path, str_data def parse( Loading