)]}'
{"neutron/services/metering/agents/metering_agent.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6c2a641550ed929c1cb4315573e746e17309cde1","unresolved":false,"context_lines":[{"line_number":120,"context_line":"            info[\u0027time\u0027] \u003d 0"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    def _notify_port_stats(self):"},{"line_number":123,"context_line":"        ovs \u003d ovs_lib.BaseOVS()"},{"line_number":124,"context_line":"        data \u003d json.dumps(ovs.ovsdb.db_list(\u0027Interface\u0027,"},{"line_number":125,"context_line":"            columns\u003d[\u0027name\u0027, \u0027statistics\u0027]).execute(),"},{"line_number":126,"context_line":"            ensure_ascii\u003dFalse)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3aaa91ec_56daa1ea","line":123,"updated":"2016-06-27 14:45:32.000000000","message":"what happens if this environment is not using ovs but linuxbridge? You need to apply a more flexible approach, have a look at MeteringAbstractDriver [1], you should implement it and create a new driver.\n\n[1] https://github.com/openstack/neutron/blob/master/neutron/services/metering/drivers/abstract_driver.py","commit_id":"dc459613097a985c2ff15a09124989c3a6f578d9"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6c2a641550ed929c1cb4315573e746e17309cde1","unresolved":false,"context_lines":[{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    def _notify_port_stats(self):"},{"line_number":123,"context_line":"        ovs \u003d ovs_lib.BaseOVS()"},{"line_number":124,"context_line":"        data \u003d json.dumps(ovs.ovsdb.db_list(\u0027Interface\u0027,"},{"line_number":125,"context_line":"            columns\u003d[\u0027name\u0027, \u0027statistics\u0027]).execute(),"},{"line_number":126,"context_line":"            ensure_ascii\u003dFalse)"},{"line_number":127,"context_line":"        LOG.debug(\"Send metering report: %s\", data)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3aaa91ec_ece020fd","line":124,"updated":"2016-06-27 14:45:32.000000000","message":"you will need to filter the data based on which metering labels and rules were created. The user will first create a metering label that might be associated with a tenant. Then it will associated specific rules to this label, see MeteringLabelRule [1] to get a list of the fields available. Data can be filtered based on the IP, direction and a boolean to indicate if excluded.\n\n[1] https://github.com/openstack/neutron/blob/master/neutron/db/metering/metering_db.py","commit_id":"dc459613097a985c2ff15a09124989c3a6f578d9"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6c2a641550ed929c1cb4315573e746e17309cde1","unresolved":false,"context_lines":[{"line_number":178,"context_line":""},{"line_number":179,"context_line":"        report_interval \u003d self.conf.report_interval"},{"line_number":180,"context_line":"        if delta \u003e\u003d report_interval:"},{"line_number":181,"context_line":"            self._notify_port_stats()"},{"line_number":182,"context_line":"            self._metering_notification()"},{"line_number":183,"context_line":"            self._purge_metering_info()"},{"line_number":184,"context_line":"            self.last_report \u003d ts"}],"source_content_type":"text/x-python","patch_set":1,"id":"3aaa91ec_b6f1456d","line":181,"updated":"2016-06-27 14:45:32.000000000","message":"you don\u0027t need this extra call if you implement a MeteringDriver","commit_id":"dc459613097a985c2ff15a09124989c3a6f578d9"}]}
