)]}'
{"networking_ovn/common/utils.py":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a15f2c1f24fc299f7c4cd81e5aa40e26e11538d1","unresolved":false,"context_lines":[{"line_number":112,"context_line":""},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"def is_dhcp_options_ignored(subnet):"},{"line_number":115,"context_line":"    # Don\u0027t insert DHCP_Options entry for v6 subnet with \u0027SLAAC\u0027 as"},{"line_number":116,"context_line":"    # \u0027ipv6_address_mode\u0027, since DHCPv6 shouldn\u0027t work for this mode."},{"line_number":117,"context_line":"    return (subnet[\u0027ip_version\u0027] \u003d\u003d const.IP_VERSION_6 and"},{"line_number":118,"context_line":"            subnet.get(\u0027ipv6_address_mode\u0027) \u003d\u003d const.IPV6_SLAAC)"}],"source_content_type":"text/x-python","patch_set":3,"id":"df140735_fb493960","line":116,"range":{"start_line":115,"start_character":0,"end_line":116,"end_character":69},"updated":"2017-05-29 10:04:50.000000000","message":"nit: I see other functions in this module does the same, but, it would be nicer to have this explanation as a docstring instead of a comment.","commit_id":"8594f7f10c92c0eabeceff845d4dcf24d1be124e"},{"author":{"_account_id":23458,"name":"Dong Jun","email":"dongjun.01@bytedance.com","username":"Dongj"},"change_message_id":"7c39395f709f05207578e1070791a95a436103a9","unresolved":false,"context_lines":[{"line_number":112,"context_line":""},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"def is_dhcp_options_ignored(subnet):"},{"line_number":115,"context_line":"    # Don\u0027t insert DHCP_Options entry for v6 subnet with \u0027SLAAC\u0027 as"},{"line_number":116,"context_line":"    # \u0027ipv6_address_mode\u0027, since DHCPv6 shouldn\u0027t work for this mode."},{"line_number":117,"context_line":"    return (subnet[\u0027ip_version\u0027] \u003d\u003d const.IP_VERSION_6 and"},{"line_number":118,"context_line":"            subnet.get(\u0027ipv6_address_mode\u0027) \u003d\u003d const.IPV6_SLAAC)"}],"source_content_type":"text/x-python","patch_set":3,"id":"df140735_67867ede","line":116,"range":{"start_line":115,"start_character":0,"end_line":116,"end_character":69},"in_reply_to":"df140735_fb493960","updated":"2017-05-31 02:31:59.000000000","message":"I agree with you documentation is nicer. Can we do it with the others.","commit_id":"8594f7f10c92c0eabeceff845d4dcf24d1be124e"}],"networking_ovn/ml2/mech_driver.py":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"a15f2c1f24fc299f7c4cd81e5aa40e26e11538d1","unresolved":false,"context_lines":[{"line_number":432,"context_line":"                if lsp_dhcp_disabled:"},{"line_number":433,"context_line":"                    continue"},{"line_number":434,"context_line":"                elif not lsp_dhcp_opts:"},{"line_number":435,"context_line":"                    lsp_dhcp_options \u003d [subnet_dhcp_cmd.result]"},{"line_number":436,"context_line":"                else:"},{"line_number":437,"context_line":"                    port_dhcp_options \u003d copy.deepcopy(subnet_dhcp_options)"},{"line_number":438,"context_line":"                    port_dhcp_options[\u0027options\u0027].update(lsp_dhcp_opts)"}],"source_content_type":"text/x-python","patch_set":3,"id":"df140735_9b2c7d9a","line":435,"range":{"start_line":435,"start_character":40,"end_line":435,"end_character":62},"updated":"2017-05-29 10:04:50.000000000","message":"noob question: The reason why we we need two transactions (1. subnet_dhcp_cmd and another 2. the ports) is because we need to get this result from transaction one here ?\n\nJust asking, cause I was wondering if we could update the subnet dhcp options and the ports in the same transaction.","commit_id":"8594f7f10c92c0eabeceff845d4dcf24d1be124e"},{"author":{"_account_id":23458,"name":"Dong Jun","email":"dongjun.01@bytedance.com","username":"Dongj"},"change_message_id":"7c39395f709f05207578e1070791a95a436103a9","unresolved":false,"context_lines":[{"line_number":432,"context_line":"                if lsp_dhcp_disabled:"},{"line_number":433,"context_line":"                    continue"},{"line_number":434,"context_line":"                elif not lsp_dhcp_opts:"},{"line_number":435,"context_line":"                    lsp_dhcp_options \u003d [subnet_dhcp_cmd.result]"},{"line_number":436,"context_line":"                else:"},{"line_number":437,"context_line":"                    port_dhcp_options \u003d copy.deepcopy(subnet_dhcp_options)"},{"line_number":438,"context_line":"                    port_dhcp_options[\u0027options\u0027].update(lsp_dhcp_opts)"}],"source_content_type":"text/x-python","patch_set":3,"id":"df140735_4aafffe2","line":435,"range":{"start_line":435,"start_character":40,"end_line":435,"end_character":62},"in_reply_to":"df140735_9b2c7d9a","updated":"2017-05-31 02:31:59.000000000","message":"As you said, the subnet_dhcp_cmd.result(UUID) is only valid  after commit of its transaction[1].\nI have tried them in one transaction, it failed.\n[1]https://github.com/openstack/ovsdbapp/blob/master/ovsdbapp/api.py#L54","commit_id":"8594f7f10c92c0eabeceff845d4dcf24d1be124e"}]}
