)]}'
{"networking_ovn/common/ovn_client.py":[{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"7c2d521085fd4226620fc30b77422504578bde0a","unresolved":false,"context_lines":[{"line_number":830,"context_line":"                txn.add(self._nb_idl.set_lswitch_ext_id("},{"line_number":831,"context_line":"                        network_name, [ovn_const.OVN_NETWORK_NAME_EXT_ID_KEY,"},{"line_number":832,"context_line":"                                       network[\u0027name\u0027]]))"},{"line_number":833,"context_line":"            txn.add(self._nb_idl.set_lswitch_ext_id("},{"line_number":834,"context_line":"                    network_name, [ovn_const.OVN_REV_NUMBER_EXT_ID_KEY,"},{"line_number":835,"context_line":"                                   str(network.get(\u0027revision_number\u0027, \u00270\u0027))]))"},{"line_number":836,"context_line":"        self._qos_driver.update_network(network, original_network)"},{"line_number":837,"context_line":""},{"line_number":838,"context_line":"    def _add_subnet_dhcp_options(self, subnet, network, ovn_dhcp_options\u003dNone,"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_744ac927","line":835,"range":{"start_line":833,"start_character":12,"end_line":835,"end_character":78},"updated":"2017-10-19 14:53:44.000000000","message":"Before, we updated the OVN db only if the name changed. Now we\u0027re updating it always. I guess that it\u0027s not possible but, do we want to make sure that the revision number we\u0027re writing is actually higher than the one we have? Otherwise throw some exception? It\u0027s probably not needed though so it\u0027s up to you. I think that it can\u0027t happen but not sure if we\u0027re missing some path.","commit_id":"811f37fb5ed1dd0ca99ce17541affa8c29cb4d45"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"7c2d521085fd4226620fc30b77422504578bde0a","unresolved":false,"context_lines":[{"line_number":835,"context_line":"                                   str(network.get(\u0027revision_number\u0027, \u00270\u0027))]))"},{"line_number":836,"context_line":"        self._qos_driver.update_network(network, original_network)"},{"line_number":837,"context_line":""},{"line_number":838,"context_line":"    def _add_subnet_dhcp_options(self, subnet, network, ovn_dhcp_options\u003dNone,"},{"line_number":839,"context_line":"                                 metadata_port_ip\u003dNone):"},{"line_number":840,"context_line":"        if utils.is_dhcp_options_ignored(subnet):"},{"line_number":841,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_74cf697f","line":838,"range":{"start_line":838,"start_character":8,"end_line":838,"end_character":32},"updated":"2017-10-19 14:53:44.000000000","message":"This function is not really adding the DHCP options anymore, right? Shall we rename it? Maybe _get_add_subnet_dhcp_options_commands?","commit_id":"811f37fb5ed1dd0ca99ce17541affa8c29cb4d45"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"7c2d521085fd4226620fc30b77422504578bde0a","unresolved":false,"context_lines":[{"line_number":925,"context_line":""},{"line_number":926,"context_line":"        return dhcpv6_opts"},{"line_number":927,"context_line":""},{"line_number":928,"context_line":"    def _remove_subnet_dhcp_options(self, subnet_id):"},{"line_number":929,"context_line":"        commands \u003d []"},{"line_number":930,"context_line":"        dhcp_options \u003d self._nb_idl.get_subnet_and_ports_dhcp_options("},{"line_number":931,"context_line":"            subnet_id)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_1418351b","line":928,"range":{"start_line":928,"start_character":8,"end_line":928,"end_character":35},"updated":"2017-10-19 14:53:44.000000000","message":"Ditto. Maybe _get_remove_subnet_dhcp_options_commands?","commit_id":"811f37fb5ed1dd0ca99ce17541affa8c29cb4d45"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"7c2d521085fd4226620fc30b77422504578bde0a","unresolved":false,"context_lines":[{"line_number":939,"context_line":"    def _enable_subnet_dhcp_options(self, subnet, network,"},{"line_number":940,"context_line":"                                    metadata_port_ip\u003dNone):"},{"line_number":941,"context_line":"        if utils.is_dhcp_options_ignored(subnet):"},{"line_number":942,"context_line":"            return []"},{"line_number":943,"context_line":""},{"line_number":944,"context_line":"        filters \u003d {\u0027fixed_ips\u0027: {\u0027subnet_id\u0027: [subnet[\u0027id\u0027]]}}"},{"line_number":945,"context_line":"        all_ports \u003d self._plugin.get_ports(n_context.get_admin_context(),"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_b4aa8182","line":942,"range":{"start_line":942,"start_character":19,"end_line":942,"end_character":21},"updated":"2017-10-19 14:53:44.000000000","message":"nit: Just like in the method above, declare commands \u003d [] before and just return commands here?","commit_id":"811f37fb5ed1dd0ca99ce17541affa8c29cb4d45"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"7c2d521085fd4226620fc30b77422504578bde0a","unresolved":false,"context_lines":[{"line_number":987,"context_line":"                                **columns))"},{"line_number":988,"context_line":"        return commands"},{"line_number":989,"context_line":""},{"line_number":990,"context_line":"    def _update_subnet_dhcp_options(self, subnet, network,"},{"line_number":991,"context_line":"                                    metadata_port_ip\u003dNone):"},{"line_number":992,"context_line":"        if utils.is_dhcp_options_ignored(subnet):"},{"line_number":993,"context_line":"            return []"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_14edd5ee","line":990,"range":{"start_line":990,"start_character":8,"end_line":990,"end_character":35},"updated":"2017-10-19 14:53:44.000000000","message":"Ditto. This method is not updating database anymore, maybe _get_update_subnet_dhcp_options_commands?","commit_id":"811f37fb5ed1dd0ca99ce17541affa8c29cb4d45"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"7c2d521085fd4226620fc30b77422504578bde0a","unresolved":false,"context_lines":[{"line_number":1032,"context_line":""},{"line_number":1033,"context_line":"    def update_subnet(self, subnet, original_subnet, network):"},{"line_number":1034,"context_line":"        network_name \u003d utils.ovn_name(network[\u0027id\u0027])"},{"line_number":1035,"context_line":"        with self._nb_idl.transaction(check_error\u003dTrue) as txn:"},{"line_number":1036,"context_line":"            txn.add(self._nb_idl.set_lswitch_ext_id("},{"line_number":1037,"context_line":"                    network_name, [ovn_const.OVN_REV_NUMBER_EXT_ID_KEY,"},{"line_number":1038,"context_line":"                                   str(network.get(\u0027revision_number\u0027, \u00270\u0027))]))"},{"line_number":1039,"context_line":""},{"line_number":1040,"context_line":"            if not any((subnet[\u0027enable_dhcp\u0027],"},{"line_number":1041,"context_line":"                        original_subnet[\u0027enable_dhcp\u0027])):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_d4bcddbc","line":1038,"range":{"start_line":1035,"start_character":0,"end_line":1038,"end_character":78},"updated":"2017-10-19 14:53:44.000000000","message":"Ditto. Extra check worth to make sure that rev number in OVN db is actually lower than the network?\nAs we don\u0027t have \u0027subnets\u0027 in OVN and we are reusing the revision_number of the network, I\u0027m not sure how this maps with Neutron ones. Does Neutron reuse the revision number as well for subnets and networks? If not I guess this is not needed in any case. What do you think?","commit_id":"811f37fb5ed1dd0ca99ce17541affa8c29cb4d45"}],"networking_ovn/db/revision.py":[{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"7c2d521085fd4226620fc30b77422504578bde0a","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        row \u003d session.merge(models.OVNRevisionNumbers("},{"line_number":73,"context_line":"            standard_attr_id\u003dstd_attr_id, resource_uuid\u003dresource_uuid))"},{"line_number":74,"context_line":"        if revision_number \u003c row.revision_number:"},{"line_number":75,"context_line":"            return"},{"line_number":76,"context_line":"        row.revision_number \u003d revision_number"},{"line_number":77,"context_line":"        session.merge(row)"},{"line_number":78,"context_line":"    LOG.info(\u0027Successfully bumped revision number for resource \u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_f42a39e5","line":75,"range":{"start_line":75,"start_character":12,"end_line":75,"end_character":18},"updated":"2017-10-19 14:53:44.000000000","message":"Do we want to log some message here for debugging purpose?","commit_id":"811f37fb5ed1dd0ca99ce17541affa8c29cb4d45"}]}
