)]}'
{"networking_ovn/common/ovn_client.py":[{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"effd40675e934c9a226ca7acdf77bc0932e4d914","unresolved":false,"context_lines":[{"line_number":840,"context_line":"        columns \u003d {}"},{"line_number":841,"context_line":"        if tag:"},{"line_number":842,"context_line":"            columns[\u0027tag\u0027] \u003d tag"},{"line_number":843,"context_line":"            columns[\u0027parent_name\u0027] \u003d []  # XXX what should this be???"},{"line_number":844,"context_line":"        txn.add(self._nb_idl.lsp_add("},{"line_number":845,"context_line":"            switch\u003dutils.ovn_name(network[\u0027id\u0027]),"},{"line_number":846,"context_line":"            port\u003dutils.ovn_provnet_port_name(network[\u0027id\u0027]),"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_84fc643e","line":843,"range":{"start_line":843,"start_character":11,"end_line":843,"end_character":69},"updated":"2017-11-17 10:49:24.000000000","message":"This should left be empty since a localnet port won\u0027t have a parent port.","commit_id":"9490e5784371b268102649cbf03f78b9defa1357"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"9e3716881d312a5287bb346db218b788f88740b6","unresolved":false,"context_lines":[{"line_number":840,"context_line":"        columns \u003d {}"},{"line_number":841,"context_line":"        if tag:"},{"line_number":842,"context_line":"            columns[\u0027tag\u0027] \u003d tag"},{"line_number":843,"context_line":"            columns[\u0027parent_name\u0027] \u003d []  # XXX what should this be???"},{"line_number":844,"context_line":"        txn.add(self._nb_idl.lsp_add("},{"line_number":845,"context_line":"            switch\u003dutils.ovn_name(network[\u0027id\u0027]),"},{"line_number":846,"context_line":"            port\u003dutils.ovn_provnet_port_name(network[\u0027id\u0027]),"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_bdd88aee","line":843,"range":{"start_line":843,"start_character":11,"end_line":843,"end_character":69},"in_reply_to":"1f485f77_84fc643e","updated":"2017-11-17 16:52:10.000000000","message":"The ovn-nbctl lsp-add command only allow passing tag with a parent name, so this code confuses me a little.\n\nThe original code never passed parent info, and would possibly set the tag.","commit_id":"9490e5784371b268102649cbf03f78b9defa1357"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"67ec06c908e1965241db80ec040976670177962d","unresolved":false,"context_lines":[{"line_number":840,"context_line":"        columns \u003d {}"},{"line_number":841,"context_line":"        if tag:"},{"line_number":842,"context_line":"            columns[\u0027tag\u0027] \u003d tag"},{"line_number":843,"context_line":"            columns[\u0027parent_name\u0027] \u003d []  # XXX what should this be???"},{"line_number":844,"context_line":"        txn.add(self._nb_idl.lsp_add("},{"line_number":845,"context_line":"            switch\u003dutils.ovn_name(network[\u0027id\u0027]),"},{"line_number":846,"context_line":"            port\u003dutils.ovn_provnet_port_name(network[\u0027id\u0027]),"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff82abbf_b7341ae0","line":843,"range":{"start_line":843,"start_character":11,"end_line":843,"end_character":69},"in_reply_to":"1f485f77_bdd88aee","updated":"2017-11-20 09:04:47.000000000","message":"HMmm, good point Terry. I don\u0027t think there\u0027s a case where we want to set tag without a parent port but it may be that I\u0027m missing something. The only use case I know is for a subport where we need to specify the parent port and the vlan tag to be added/stripped by ovn-controller. It\u0027s out of this patch intent so maybe you can keep the old code behavior and we can look deeper into it later? Thanks!","commit_id":"9490e5784371b268102649cbf03f78b9defa1357"}],"networking_ovn/ovsdb/commands.py":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"c40896af50ac31bb4c9a087844c68d62b464ad31","unresolved":false,"context_lines":[{"line_number":135,"context_line":"            port.dhcpv6_options \u003d dhcpv6_options"},{"line_number":136,"context_line":"        else:"},{"line_number":137,"context_line":"            port.dhcpv6_options \u003d [dhcpv6_options.result]"},{"line_number":138,"context_line":"        for col, val in self.columns.items():"},{"line_number":139,"context_line":"            setattr(port, col, val)"},{"line_number":140,"context_line":"        # add the newly created port to existing lswitch"},{"line_number":141,"context_line":"        _addvalue_to_list(lswitch, \u0027ports\u0027, port.uuid)"},{"line_number":142,"context_line":"        self.result \u003d port.uuid"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff82abbf_2592f1f7","side":"PARENT","line":139,"range":{"start_line":138,"start_character":0,"end_line":139,"end_character":35},"updated":"2017-11-21 10:44:26.000000000","message":"Hi Terry,\n\nOne thing here, I\u0027ve had to modify this method here [0] to use setkey() for external_ids otherwise one command would overwrite others changes. For example:\n\nCommand 1 appends {\"foo\": \"bar\"} to external_ids\n\nCommand 2 appends {\"hey\": \"ho\"} to external_ids\n\nWith the code right now, the change committed will be {\"hey\": \"ho\"}, and the update from the first command will be lost.\n\nIt seems that ovsdbapp is doing the same [1]. I will try to work on ovsdbapp to change it as well, but would be nice if we could merge this after that is done so we don\u0027t step on each others toes here.\n\n[0] https://review.openstack.org/#/c/521476/\n[1] https://github.com/openstack/ovsdbapp/blob/158ae06bce0f56e93677f94c59f81e5e76ee1ccc/ovsdbapp/schema/ovn_northbound/commands.py#L217","commit_id":"e1c96527984a32f4c6389422c6d15c762ccb35fc"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"9d00baff9e6517de2dff3a73528eef1b2c7412f6","unresolved":false,"context_lines":[{"line_number":135,"context_line":"            port.dhcpv6_options \u003d dhcpv6_options"},{"line_number":136,"context_line":"        else:"},{"line_number":137,"context_line":"            port.dhcpv6_options \u003d [dhcpv6_options.result]"},{"line_number":138,"context_line":"        for col, val in self.columns.items():"},{"line_number":139,"context_line":"            setattr(port, col, val)"},{"line_number":140,"context_line":"        # add the newly created port to existing lswitch"},{"line_number":141,"context_line":"        _addvalue_to_list(lswitch, \u0027ports\u0027, port.uuid)"},{"line_number":142,"context_line":"        self.result \u003d port.uuid"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff82abbf_28b88828","side":"PARENT","line":139,"range":{"start_line":138,"start_character":0,"end_line":139,"end_character":35},"in_reply_to":"ff82abbf_2592f1f7","updated":"2017-11-21 10:51:08.000000000","message":"Oh my bad, my patch is actually changing the SetLSwitchPortCommand. But still applicable I guess ? Perhaps we should use setkeys() for map types anyway. What do you think ?","commit_id":"e1c96527984a32f4c6389422c6d15c762ccb35fc"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"effd40675e934c9a226ca7acdf77bc0932e4d914","unresolved":false,"context_lines":[{"line_number":154,"context_line":"            setattr(port, col, val)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"class DelLSwitchPortCommand(command.BaseCommand):"},{"line_number":158,"context_line":"    def __init__(self, api, lport, lswitch, if_exists):"},{"line_number":159,"context_line":"        super(DelLSwitchPortCommand, self).__init__(api)"},{"line_number":160,"context_line":"        self.lport \u003d lport"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_441d4c72","line":157,"range":{"start_line":157,"start_character":6,"end_line":157,"end_character":27},"updated":"2017-11-17 10:49:24.000000000","message":"You\u0027re removing AddLSwitchPortCommand but leaving DelLSwitchPortCommand can be a bit confusing? I know you\u0027re leaving it to delete also the DHCP options...\nWould it be better to work out another command to delete the dhcp options and call it from lsp_del in impl_idl_ovn?\nWhat do you think?","commit_id":"9490e5784371b268102649cbf03f78b9defa1357"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"9e3716881d312a5287bb346db218b788f88740b6","unresolved":false,"context_lines":[{"line_number":154,"context_line":"            setattr(port, col, val)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"class DelLSwitchPortCommand(command.BaseCommand):"},{"line_number":158,"context_line":"    def __init__(self, api, lport, lswitch, if_exists):"},{"line_number":159,"context_line":"        super(DelLSwitchPortCommand, self).__init__(api)"},{"line_number":160,"context_line":"        self.lport \u003d lport"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_5d66362c","line":157,"range":{"start_line":157,"start_character":6,"end_line":157,"end_character":27},"in_reply_to":"1f485f77_2f7c6981","updated":"2017-11-17 16:52:10.000000000","message":"Because ovsdbapp tries to follow ovn-nbctl as closely as possible, not networking-ovn. This particular issue I had trouble coming up with a solution that I liked. Like you said, lsp_del has to return a single Command. In my ideal world, DHCP_Options wouldn\u0027t be a root table and would automatically be deleted by ovsdb-server if the options weren\u0027t attached to a port--but I don\u0027t know enough about the usage to say whether that would be bad.","commit_id":"9490e5784371b268102649cbf03f78b9defa1357"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"bddfce2121ee9fb8ca81c17a2a2c37845702096d","unresolved":false,"context_lines":[{"line_number":154,"context_line":"            setattr(port, col, val)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"class DelLSwitchPortCommand(command.BaseCommand):"},{"line_number":158,"context_line":"    def __init__(self, api, lport, lswitch, if_exists):"},{"line_number":159,"context_line":"        super(DelLSwitchPortCommand, self).__init__(api)"},{"line_number":160,"context_line":"        self.lport \u003d lport"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_2f7c6981","line":157,"range":{"start_line":157,"start_character":6,"end_line":157,"end_character":27},"in_reply_to":"1f485f77_441d4c72","updated":"2017-11-17 11:06:13.000000000","message":"I think that for practicality leaving it as part of the DelSwitchPortCommand is easier. If we add it to lsp_del() the method would need to return a list of commands to be added to the transaction and I\u0027m not sure if txn.add() can receive a list.\n\nOr, if we have another command we can add then separated to the transaction as:\n\ntxn.add(del_lsp_dhcp_opts())\ntxn.add(lsp_del())\n\nBut still, it\u0027s kinda loosely and could be error prone.\n\n...\n\n@Terry, why the logic to delete the DHCP Options associated with the port wasn\u0027t carried over to ovsdbapp ?","commit_id":"9490e5784371b268102649cbf03f78b9defa1357"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"c59350014365d2cecf7132cedd2a979fad9c18db","unresolved":false,"context_lines":[{"line_number":154,"context_line":"            setattr(port, col, val)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"class DelLSwitchPortCommand(command.BaseCommand):"},{"line_number":158,"context_line":"    def __init__(self, api, lport, lswitch, if_exists):"},{"line_number":159,"context_line":"        super(DelLSwitchPortCommand, self).__init__(api)"},{"line_number":160,"context_line":"        self.lport \u003d lport"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff82abbf_370d6a90","line":157,"range":{"start_line":157,"start_character":6,"end_line":157,"end_character":27},"in_reply_to":"1f485f77_5d66362c","updated":"2017-11-20 09:29:06.000000000","message":"That makes a lot of sense, kinda like a foreginkey + ondelete\u003dcascade. That would be handy!","commit_id":"9490e5784371b268102649cbf03f78b9defa1357"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"bddfce2121ee9fb8ca81c17a2a2c37845702096d","unresolved":false,"context_lines":[{"line_number":171,"context_line":"            msg \u003d _(\"Port %s does not exist\") % self.lport"},{"line_number":172,"context_line":"            raise RuntimeError(msg)"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        for uuid in get_lsp_dhcp_options_uuids(lport, self.lport):"},{"line_number":175,"context_line":"            dhcp_opt \u003d self.api.lookup(\u0027DHCP_Options\u0027, uuid)"},{"line_number":176,"context_line":"            dhcp_opt.delete()"},{"line_number":177,"context_line":"        nb_commands.LspDelCommand(self.api, lport.uuid, self.lswitch,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_0ff2cd06","line":174,"range":{"start_line":174,"start_character":12,"end_line":174,"end_character":16},"updated":"2017-11-17 11:06:13.000000000","message":"just a nit:\n\nuuid is the name of a standardlib in python (import uuid), I wouldn\u0027t overwrite it here.","commit_id":"9490e5784371b268102649cbf03f78b9defa1357"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"9e3716881d312a5287bb346db218b788f88740b6","unresolved":false,"context_lines":[{"line_number":171,"context_line":"            msg \u003d _(\"Port %s does not exist\") % self.lport"},{"line_number":172,"context_line":"            raise RuntimeError(msg)"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        for uuid in get_lsp_dhcp_options_uuids(lport, self.lport):"},{"line_number":175,"context_line":"            dhcp_opt \u003d self.api.lookup(\u0027DHCP_Options\u0027, uuid)"},{"line_number":176,"context_line":"            dhcp_opt.delete()"},{"line_number":177,"context_line":"        nb_commands.LspDelCommand(self.api, lport.uuid, self.lswitch,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_3d525a3c","line":174,"range":{"start_line":174,"start_character":12,"end_line":174,"end_character":16},"in_reply_to":"1f485f77_0ff2cd06","updated":"2017-11-17 16:52:10.000000000","message":"Done","commit_id":"9490e5784371b268102649cbf03f78b9defa1357"}],"networking_ovn/tests/unit/fakes.py":[{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"effd40675e934c9a226ca7acdf77bc0932e4d914","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        self.ls_del \u003d mock.Mock()"},{"line_number":51,"context_line":"        self.lsp_add \u003d mock.Mock()"},{"line_number":52,"context_line":"        self.set_lswitch_port \u003d mock.Mock()"},{"line_number":53,"context_line":"        self.lsp_del \u003d mock.Mock()"},{"line_number":54,"context_line":"        self.get_acls_for_lswitches \u003d mock.Mock()"},{"line_number":55,"context_line":"        self.create_lrouter \u003d mock.Mock()"},{"line_number":56,"context_line":"        self.update_lrouter \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_c4101c5a","line":53,"updated":"2017-11-17 10:49:24.000000000","message":"I think we want to mock lookup method as well:\nAttributeError: \u0027FakeOvsdbNbOvnIdl\u0027 object has no attribute \u0027lookup\u0027","commit_id":"9490e5784371b268102649cbf03f78b9defa1357"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"bddfce2121ee9fb8ca81c17a2a2c37845702096d","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        self.ls_del \u003d mock.Mock()"},{"line_number":51,"context_line":"        self.lsp_add \u003d mock.Mock()"},{"line_number":52,"context_line":"        self.set_lswitch_port \u003d mock.Mock()"},{"line_number":53,"context_line":"        self.lsp_del \u003d mock.Mock()"},{"line_number":54,"context_line":"        self.get_acls_for_lswitches \u003d mock.Mock()"},{"line_number":55,"context_line":"        self.create_lrouter \u003d mock.Mock()"},{"line_number":56,"context_line":"        self.update_lrouter \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_4fd56543","line":53,"in_reply_to":"1f485f77_c4101c5a","updated":"2017-11-17 11:06:13.000000000","message":"++","commit_id":"9490e5784371b268102649cbf03f78b9defa1357"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"9e3716881d312a5287bb346db218b788f88740b6","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        self.ls_del \u003d mock.Mock()"},{"line_number":51,"context_line":"        self.lsp_add \u003d mock.Mock()"},{"line_number":52,"context_line":"        self.set_lswitch_port \u003d mock.Mock()"},{"line_number":53,"context_line":"        self.lsp_del \u003d mock.Mock()"},{"line_number":54,"context_line":"        self.get_acls_for_lswitches \u003d mock.Mock()"},{"line_number":55,"context_line":"        self.create_lrouter \u003d mock.Mock()"},{"line_number":56,"context_line":"        self.update_lrouter \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_5d34f6fb","line":53,"in_reply_to":"1f485f77_c4101c5a","updated":"2017-11-17 16:52:10.000000000","message":"Yeah, working on it. Unfortunately, it is a little more complex. :/ I\u0027m trying to update the unit tests just to show that they work, but ultimately most of them should just be deleted in favor of ovsdbapp\u0027s functional tests. They are kind of making my life miserable right now.","commit_id":"9490e5784371b268102649cbf03f78b9defa1357"}],"networking_ovn/tests/unit/ml2/test_mech_driver.py":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"4f8d8d906fe7395d41aeb1d8b5be3461c145025e","unresolved":false,"context_lines":[{"line_number":284,"context_line":"                               **kwargs) as port:"},{"line_number":285,"context_line":"                    self.assertTrue(self.nb_ovn.lsp_add.called)"},{"line_number":286,"context_line":"                    called_args_dict \u003d ("},{"line_number":287,"context_line":"                        (self.nb_ovnlsp_add"},{"line_number":288,"context_line":"                         ).call_args_list[0][1])"},{"line_number":289,"context_line":"                    self.assertEqual([\u002700:00:00:00:00:01 10.0.0.2 10.0.0.4\u0027],"},{"line_number":290,"context_line":"                                     called_args_dict.get(\u0027port_security\u0027))"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_459ec4b8","line":287,"range":{"start_line":287,"start_character":25,"end_line":287,"end_character":43},"updated":"2017-11-01 14:50:49.000000000","message":"self.nb_ovn.lsp_add (missing a \".\")","commit_id":"9922cff101d5f121c6787eefc535bc9f7863194d"}],"requirements.txt":[{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"effd40675e934c9a226ca7acdf77bc0932e4d914","unresolved":false,"context_lines":[{"line_number":6,"context_line":"neutron-lib\u003e\u003d1.10.0 # Apache-2.0"},{"line_number":7,"context_line":"oslo.config\u003e\u003d4.6.0 # Apache-2.0"},{"line_number":8,"context_line":"ovs\u003e\u003d2.7.0 # Apache-2.0"},{"line_number":9,"context_line":"ovsdbapp\u003e\u003d0.7.0 # Apache-2.0"},{"line_number":10,"context_line":"pbr!\u003d2.1.0,\u003e\u003d2.0.0 # Apache-2.0"},{"line_number":11,"context_line":"pyOpenSSL\u003e\u003d16.2.0 # Apache-2.0"},{"line_number":12,"context_line":"tenacity\u003e\u003d3.2.1 # Apache-2.0"}],"source_content_type":"text/plain","patch_set":2,"id":"1f485f77_2437f001","line":9,"range":{"start_line":9,"start_character":0,"end_line":9,"end_character":28},"updated":"2017-11-17 10:49:24.000000000","message":"I\u0027m always confused and thought that this has to be done through the bot. It has just proposed to upgrade to \u003e\u003d 0.8 though\nhttps://review.openstack.org/#/c/520453/3/requirements.txt","commit_id":"9490e5784371b268102649cbf03f78b9defa1357"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"bddfce2121ee9fb8ca81c17a2a2c37845702096d","unresolved":false,"context_lines":[{"line_number":6,"context_line":"neutron-lib\u003e\u003d1.10.0 # Apache-2.0"},{"line_number":7,"context_line":"oslo.config\u003e\u003d4.6.0 # Apache-2.0"},{"line_number":8,"context_line":"ovs\u003e\u003d2.7.0 # Apache-2.0"},{"line_number":9,"context_line":"ovsdbapp\u003e\u003d0.7.0 # Apache-2.0"},{"line_number":10,"context_line":"pbr!\u003d2.1.0,\u003e\u003d2.0.0 # Apache-2.0"},{"line_number":11,"context_line":"pyOpenSSL\u003e\u003d16.2.0 # Apache-2.0"},{"line_number":12,"context_line":"tenacity\u003e\u003d3.2.1 # Apache-2.0"}],"source_content_type":"text/plain","patch_set":2,"id":"1f485f77_6fb94113","line":9,"range":{"start_line":9,"start_character":0,"end_line":9,"end_character":28},"in_reply_to":"1f485f77_2437f001","updated":"2017-11-17 11:06:13.000000000","message":"We can do it both ways, but as you pointed out the bot is already proposing something newer so we shoudln\u0027t overwrite it here","commit_id":"9490e5784371b268102649cbf03f78b9defa1357"}]}
