)]}'
{"etc/neutron.conf":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"0d5c353059aacfd1f73814804cd385af1d544cb4","unresolved":false,"context_lines":[{"line_number":98,"context_line":"# being used in conjunction with nova security groups"},{"line_number":99,"context_line":"# allow_overlapping_ips \u003d False"},{"line_number":100,"context_line":"# Ensure that configured gateway is on subnet. For IPv6, validate only if"},{"line_number":101,"context_line":"# gateway is not a link local address. Deprecated, to be removed during the"},{"line_number":102,"context_line":"# K release, at which point the check will be mandatory."},{"line_number":103,"context_line":"# force_gateway_on_subnet \u003d True"},{"line_number":104,"context_line":""}],"source_content_type":"text/plain","patch_set":7,"id":"baada198_494b8a86","line":101,"updated":"2014-07-22 02:08:25.000000000","message":"(Suggestion only) Consider starting the \u0027Deprecated\u0027 sentence on a new line so that a cursory glance won\u0027t miss it.","commit_id":"a15fbcd16e2df188c8388f11f5ee6e2e569d47d2"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"82cef2ef84fa2d105307c506d83f7b838c4cd6ff","unresolved":false,"context_lines":[{"line_number":98,"context_line":"# being used in conjunction with nova security groups"},{"line_number":99,"context_line":"# allow_overlapping_ips \u003d False"},{"line_number":100,"context_line":"# Ensure that configured gateway is on subnet. For IPv6, validate only if"},{"line_number":101,"context_line":"# gateway is not a link local address. Deprecated, to be removed during the"},{"line_number":102,"context_line":"# K release, at which point the check will be mandatory."},{"line_number":103,"context_line":"# force_gateway_on_subnet \u003d True"},{"line_number":104,"context_line":""}],"source_content_type":"text/plain","patch_set":7,"id":"baada198_fb45a06f","line":101,"in_reply_to":"baada198_494b8a86","updated":"2014-07-23 10:46:04.000000000","message":"I should hope that the upstream docs will make this clear enough - I\u0027ll try to track this issue.","commit_id":"a15fbcd16e2df188c8388f11f5ee6e2e569d47d2"}],"neutron/common/config.py":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"f503daab3f9b87531bd65023ffe7fd6031107094","unresolved":false,"context_lines":[{"line_number":82,"context_line":"               help\u003d_(\"The hostname Neutron is running on\")),"},{"line_number":83,"context_line":"    cfg.BoolOpt(\u0027force_gateway_on_subnet\u0027, default\u003dTrue,"},{"line_number":84,"context_line":"                help\u003d_(\"Ensure that configured gateway is on subnet\"),"},{"line_number":85,"context_line":"                deprecated_name\u003d\u0027force_gateway_on_subnet\u0027),"},{"line_number":86,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_status_changes\u0027, default\u003dTrue,"},{"line_number":87,"context_line":"                help\u003d_(\"Send notification to nova when port status changes\")),"},{"line_number":88,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_data_changes\u0027, default\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_de0ba329","line":85,"updated":"2014-07-01 00:53:12.000000000","message":"Shouldn\u0027t this be DeprecatedOpt?","commit_id":"17ef51c2eea09a98cac55b70a636f72c497f6b63"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"23a1c4d1d99a6c92d09a5f4133db8bbebdca3b6b","unresolved":false,"context_lines":[{"line_number":82,"context_line":"               help\u003d_(\"The hostname Neutron is running on\")),"},{"line_number":83,"context_line":"    cfg.BoolOpt(\u0027force_gateway_on_subnet\u0027, default\u003dTrue,"},{"line_number":84,"context_line":"                help\u003d_(\"Ensure that configured gateway is on subnet\"),"},{"line_number":85,"context_line":"                deprecated_name\u003d\u0027force_gateway_on_subnet\u0027),"},{"line_number":86,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_status_changes\u0027, default\u003dTrue,"},{"line_number":87,"context_line":"                help\u003d_(\"Send notification to nova when port status changes\")),"},{"line_number":88,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_data_changes\u0027, default\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_57d84aef","line":85,"in_reply_to":"baada198_de0ba329","updated":"2014-07-01 09:26:07.000000000","message":"Looks like it.","commit_id":"17ef51c2eea09a98cac55b70a636f72c497f6b63"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"ae23df3ac75510c20646c127e86e99544cd68438","unresolved":false,"context_lines":[{"line_number":83,"context_line":"    cfg.BoolOpt(\u0027force_gateway_on_subnet\u0027, default\u003dTrue,"},{"line_number":84,"context_line":"                help\u003d_(\"Ensure that configured gateway is on subnet\"),"},{"line_number":85,"context_line":"                deprecated_opts\u003d"},{"line_number":86,"context_line":"                [cfg.DeprecatedOpt(\u0027force_gateway_on_subnet\u0027)]),"},{"line_number":87,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_status_changes\u0027, default\u003dTrue,"},{"line_number":88,"context_line":"                help\u003d_(\"Send notification to nova when port status changes\")),"},{"line_number":89,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_data_changes\u0027, default\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_3c122e62","line":86,"updated":"2014-07-07 08:05:38.000000000","message":"iirc deprecated_opts\u003d is to specify old names for a renamed option.","commit_id":"fcbe2ebb6d0d6763e93a052ddff12289c6766f12"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"dcf859b3b4dcf7093ff8e869aec96f01487c97b7","unresolved":false,"context_lines":[{"line_number":83,"context_line":"    cfg.BoolOpt(\u0027force_gateway_on_subnet\u0027, default\u003dTrue,"},{"line_number":84,"context_line":"                help\u003d_(\"Ensure that configured gateway is on subnet\"),"},{"line_number":85,"context_line":"                deprecated_opts\u003d"},{"line_number":86,"context_line":"                [cfg.DeprecatedOpt(\u0027force_gateway_on_subnet\u0027)]),"},{"line_number":87,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_status_changes\u0027, default\u003dTrue,"},{"line_number":88,"context_line":"                help\u003d_(\"Send notification to nova when port status changes\")),"},{"line_number":89,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_data_changes\u0027, default\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_2a6472b7","line":86,"in_reply_to":"baada198_19346efa","updated":"2014-07-08 10:12:14.000000000","message":"Right.","commit_id":"fcbe2ebb6d0d6763e93a052ddff12289c6766f12"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"b6dd06a273c0318c7e9913ed50888f889d468359","unresolved":false,"context_lines":[{"line_number":83,"context_line":"    cfg.BoolOpt(\u0027force_gateway_on_subnet\u0027, default\u003dTrue,"},{"line_number":84,"context_line":"                help\u003d_(\"Ensure that configured gateway is on subnet\"),"},{"line_number":85,"context_line":"                deprecated_opts\u003d"},{"line_number":86,"context_line":"                [cfg.DeprecatedOpt(\u0027force_gateway_on_subnet\u0027)]),"},{"line_number":87,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_status_changes\u0027, default\u003dTrue,"},{"line_number":88,"context_line":"                help\u003d_(\"Send notification to nova when port status changes\")),"},{"line_number":89,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_data_changes\u0027, default\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_8b530b16","line":86,"in_reply_to":"baada198_2a6472b7","updated":"2014-07-14 02:44:25.000000000","message":"from the way deprecated_opts is documented and implemented, i believe this is an abuse of the option.  for example, if you do this for a cli option, --help would show the option twice.\nbut you can ask oslo.config folks to be sure.\nif i were you, i\u0027d just add \"(this option is being deprecated)\" to the description of the option instead.","commit_id":"fcbe2ebb6d0d6763e93a052ddff12289c6766f12"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"a5c9cd3faa9382e8766c8101962ff9a56b126c27","unresolved":false,"context_lines":[{"line_number":83,"context_line":"    cfg.BoolOpt(\u0027force_gateway_on_subnet\u0027, default\u003dTrue,"},{"line_number":84,"context_line":"                help\u003d_(\"Ensure that configured gateway is on subnet\"),"},{"line_number":85,"context_line":"                deprecated_opts\u003d"},{"line_number":86,"context_line":"                [cfg.DeprecatedOpt(\u0027force_gateway_on_subnet\u0027)]),"},{"line_number":87,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_status_changes\u0027, default\u003dTrue,"},{"line_number":88,"context_line":"                help\u003d_(\"Send notification to nova when port status changes\")),"},{"line_number":89,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_data_changes\u0027, default\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_483f1db4","line":86,"in_reply_to":"baada198_3c122e62","updated":"2014-07-07 09:09:58.000000000","message":"I found an example of an option being deprecated (And not renamed... IE the option itself marked for removal) in neutron.services.loadbalancer.drivers.haproxy.namespace_driver. The option \u0027\u0027loadbalancer_state_path\u0027\u0027 was deprecated the way I have it in this patch set. Assuming that\u0027s correct, this should be as well.","commit_id":"fcbe2ebb6d0d6763e93a052ddff12289c6766f12"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9eeaeb5348029b80fd1077ca440e8f298282bed3","unresolved":false,"context_lines":[{"line_number":83,"context_line":"    cfg.BoolOpt(\u0027force_gateway_on_subnet\u0027, default\u003dTrue,"},{"line_number":84,"context_line":"                help\u003d_(\"Ensure that configured gateway is on subnet\"),"},{"line_number":85,"context_line":"                deprecated_opts\u003d"},{"line_number":86,"context_line":"                [cfg.DeprecatedOpt(\u0027force_gateway_on_subnet\u0027)]),"},{"line_number":87,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_status_changes\u0027, default\u003dTrue,"},{"line_number":88,"context_line":"                help\u003d_(\"Send notification to nova when port status changes\")),"},{"line_number":89,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_data_changes\u0027, default\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_19346efa","line":86,"in_reply_to":"baada198_483f1db4","updated":"2014-07-08 09:07:48.000000000","message":"As far as I understood, your intention was to mark this option as deprecated, regardless of the extra functionality DeprecatedOpt. right?","commit_id":"fcbe2ebb6d0d6763e93a052ddff12289c6766f12"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"7fff9bf76f623898f89e400e5b9803a0426669a4","unresolved":false,"context_lines":[{"line_number":83,"context_line":"    cfg.BoolOpt(\u0027force_gateway_on_subnet\u0027, default\u003dTrue,"},{"line_number":84,"context_line":"                help\u003d_(\"Ensure that configured gateway is on subnet\"),"},{"line_number":85,"context_line":"                deprecated_opts\u003d"},{"line_number":86,"context_line":"                [cfg.DeprecatedOpt(\u0027force_gateway_on_subnet\u0027)]),"},{"line_number":87,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_status_changes\u0027, default\u003dTrue,"},{"line_number":88,"context_line":"                help\u003d_(\"Send notification to nova when port status changes\")),"},{"line_number":89,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_data_changes\u0027, default\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_19ce795a","line":86,"in_reply_to":"baada198_8b530b16","updated":"2014-07-20 11:19:02.000000000","message":"Done","commit_id":"fcbe2ebb6d0d6763e93a052ddff12289c6766f12"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"362441e8099e3e1944b10c7eb7682c78090f58d0","unresolved":false,"context_lines":[{"line_number":83,"context_line":"    cfg.BoolOpt(\u0027force_gateway_on_subnet\u0027, default\u003dTrue,"},{"line_number":84,"context_line":"                help\u003d_(\"Ensure that configured gateway is on subnet\"),"},{"line_number":85,"context_line":"                deprecated_opts\u003d"},{"line_number":86,"context_line":"                [cfg.DeprecatedOpt(\u0027force_gateway_on_subnet\u0027)]),"},{"line_number":87,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_status_changes\u0027, default\u003dTrue,"},{"line_number":88,"context_line":"                help\u003d_(\"Send notification to nova when port status changes\")),"},{"line_number":89,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_data_changes\u0027, default\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_f4107c5b","line":86,"in_reply_to":"baada198_8b530b16","updated":"2014-07-16 10:09:51.000000000","message":"I agree with YAMAMOTO. We have plenty of options around that are deprecated with adding explicit deprecation notice in their descriptions.","commit_id":"fcbe2ebb6d0d6763e93a052ddff12289c6766f12"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"7fff9bf76f623898f89e400e5b9803a0426669a4","unresolved":false,"context_lines":[{"line_number":83,"context_line":"    cfg.BoolOpt(\u0027force_gateway_on_subnet\u0027, default\u003dTrue,"},{"line_number":84,"context_line":"                help\u003d_(\"Ensure that configured gateway is on subnet\"),"},{"line_number":85,"context_line":"                deprecated_opts\u003d"},{"line_number":86,"context_line":"                [cfg.DeprecatedOpt(\u0027force_gateway_on_subnet\u0027)]),"},{"line_number":87,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_status_changes\u0027, default\u003dTrue,"},{"line_number":88,"context_line":"                help\u003d_(\"Send notification to nova when port status changes\")),"},{"line_number":89,"context_line":"    cfg.BoolOpt(\u0027notify_nova_on_port_data_changes\u0027, default\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_f9d0e5f8","line":86,"in_reply_to":"baada198_f4107c5b","updated":"2014-07-20 11:19:02.000000000","message":"Done","commit_id":"fcbe2ebb6d0d6763e93a052ddff12289c6766f12"}],"neutron/db/db_base_plugin_v2.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"325d752f044755945f33f930fa921ad178ea8ca6","unresolved":false,"context_lines":[{"line_number":1067,"context_line":"        if attributes.is_attr_set(s.get(\u0027gateway_ip\u0027)):"},{"line_number":1068,"context_line":"            self._validate_ip_version(ip_ver, s[\u0027gateway_ip\u0027], \u0027gateway_ip\u0027)"},{"line_number":1069,"context_line":"            if (not NeutronDbPluginV2._check_subnet_ip(s[\u0027cidr\u0027],"},{"line_number":1070,"context_line":"                                                       s[\u0027gateway_ip\u0027])):"},{"line_number":1071,"context_line":"                error_message \u003d _(\"Gateway is not valid on subnet\")"},{"line_number":1072,"context_line":"                raise n_exc.InvalidInput(error_message\u003derror_message)"},{"line_number":1073,"context_line":"            # Ensure the gateway IP is not assigned to any port"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_55978ceb","line":1070,"updated":"2014-06-23 09:06:43.000000000","message":"To handle the IPv6 case, where a Local Link Address of a router could be used as the gateway_ip, \"fe80::/10\", even though the real LLA would be within the specific /64 range.\n\nSo it could make sense to do:\n\nif ((\"address is ipv6\") and \n      not NeutronDbPluginV2._check_subnet_ip(\u0027fe80::/10\u0027,s[\u0027gateway_ip\u0027]) or\n   ((\"address is ipv4) and \n      not NeutronDbPluginV2._check_subnet_ip(s[\u0027cidr\u0027],\n                                                                    s[\u0027gateway_ip\u0027])):\t                                                       \n\n\nNot sure if we have the gateway LLA in advance, which could make sense to use it \nin this check instead of the broader fe80::/10, and\n\nMay be this needs a better error handling on then neutron-dhcp-agent to avoid \nconstant resyncs in a wrong-gw case, or where this check was disabled and a \nwrong gateway_ip was introduced in the database.","commit_id":"b5c5fcc01ad6eee5ced77c85e44bf96689be2d92"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5227a530141f56932c7f4d5e0a90a74b91c5218c","unresolved":false,"context_lines":[{"line_number":1067,"context_line":"        if attributes.is_attr_set(s.get(\u0027gateway_ip\u0027)):"},{"line_number":1068,"context_line":"            self._validate_ip_version(ip_ver, s[\u0027gateway_ip\u0027], \u0027gateway_ip\u0027)"},{"line_number":1069,"context_line":"            if (not NeutronDbPluginV2._check_subnet_ip(s[\u0027cidr\u0027],"},{"line_number":1070,"context_line":"                                                       s[\u0027gateway_ip\u0027])):"},{"line_number":1071,"context_line":"                error_message \u003d _(\"Gateway is not valid on subnet\")"},{"line_number":1072,"context_line":"                raise n_exc.InvalidInput(error_message\u003derror_message)"},{"line_number":1073,"context_line":"            # Ensure the gateway IP is not assigned to any port"}],"source_content_type":"text/x-python","patch_set":1,"id":"dab895d6_c65835fd","line":1070,"in_reply_to":"1ae5cdf2_55978ceb","updated":"2014-06-30 12:04:38.000000000","message":"I think you\u0027re generally right - I\u0027ll change this code so that it handles IPv6 specially. You\u0027re also right on the DHCP agent - The general issue should be solved where if the DHCP agent gets bad input it tries to resync forever and ever. That\u0027s for a later patch though.","commit_id":"b5c5fcc01ad6eee5ced77c85e44bf96689be2d92"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"6dde4dca3a4e3890f21f38adb53c8db2ea5de7c2","unresolved":false,"context_lines":[{"line_number":492,"context_line":"        return False"},{"line_number":493,"context_line":""},{"line_number":494,"context_line":"    @staticmethod"},{"line_number":495,"context_line":"    def _check_gateway_in_subnet(cidr, gateway):"},{"line_number":496,"context_line":"        \"\"\"Validate that the gateway is on the subnet.\"\"\""},{"line_number":497,"context_line":"        ip \u003d netaddr.IPAddress(gateway)"},{"line_number":498,"context_line":"        if ip.version \u003d\u003d 4 or (ip.version \u003d\u003d 6 and not ip.is_link_local()):"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_8c505b0b","line":495,"updated":"2014-07-28 11:39:37.000000000","message":"_check_gateway_in_subnet should be a classmethod in order to use cls._check_subnet_ip instead of NeutronDbPluginV2._check_subnet_ip.","commit_id":"a15fbcd16e2df188c8388f11f5ee6e2e569d47d2"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f30ccc6f93cfb31502e3ba2efd657c66c3e53dd7","unresolved":false,"context_lines":[{"line_number":492,"context_line":"        return False"},{"line_number":493,"context_line":""},{"line_number":494,"context_line":"    @staticmethod"},{"line_number":495,"context_line":"    def _check_gateway_in_subnet(cidr, gateway):"},{"line_number":496,"context_line":"        \"\"\"Validate that the gateway is on the subnet.\"\"\""},{"line_number":497,"context_line":"        ip \u003d netaddr.IPAddress(gateway)"},{"line_number":498,"context_line":"        if ip.version \u003d\u003d 4 or (ip.version \u003d\u003d 6 and not ip.is_link_local()):"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_fc83e852","line":495,"in_reply_to":"baada198_2070f5d9","updated":"2014-07-30 10:08:57.000000000","message":"Point taken, I\u0027ll push a new patchset soonish (TM).","commit_id":"a15fbcd16e2df188c8388f11f5ee6e2e569d47d2"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"963dad6ca1ee6af223a9458ec389444006f50a8f","unresolved":false,"context_lines":[{"line_number":492,"context_line":"        return False"},{"line_number":493,"context_line":""},{"line_number":494,"context_line":"    @staticmethod"},{"line_number":495,"context_line":"    def _check_gateway_in_subnet(cidr, gateway):"},{"line_number":496,"context_line":"        \"\"\"Validate that the gateway is on the subnet.\"\"\""},{"line_number":497,"context_line":"        ip \u003d netaddr.IPAddress(gateway)"},{"line_number":498,"context_line":"        if ip.version \u003d\u003d 4 or (ip.version \u003d\u003d 6 and not ip.is_link_local()):"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_e742970e","line":495,"in_reply_to":"baada198_8c505b0b","updated":"2014-07-29 15:48:40.000000000","message":"Why is one preferred over the other? Isn\u0027t this just a styling preference?","commit_id":"a15fbcd16e2df188c8388f11f5ee6e2e569d47d2"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"67ebf57005cf8e09c6248dd32754fd2060b0699a","unresolved":false,"context_lines":[{"line_number":492,"context_line":"        return False"},{"line_number":493,"context_line":""},{"line_number":494,"context_line":"    @staticmethod"},{"line_number":495,"context_line":"    def _check_gateway_in_subnet(cidr, gateway):"},{"line_number":496,"context_line":"        \"\"\"Validate that the gateway is on the subnet.\"\"\""},{"line_number":497,"context_line":"        ip \u003d netaddr.IPAddress(gateway)"},{"line_number":498,"context_line":"        if ip.version \u003d\u003d 4 or (ip.version \u003d\u003d 6 and not ip.is_link_local()):"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_2070f5d9","line":495,"in_reply_to":"baada198_e742970e","updated":"2014-07-29 17:08:47.000000000","message":"NeutronDbPluginV2._check_subnet_ip use breaks inheritance: a subclass clazz overloading _check_subnet_ip will use NeutronDbPluginV2._check_subnet_ip in _check_gateway_in_subnet instead of clazz._check_subnet_ip","commit_id":"a15fbcd16e2df188c8388f11f5ee6e2e569d47d2"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"0d5c353059aacfd1f73814804cd385af1d544cb4","unresolved":false,"context_lines":[{"line_number":495,"context_line":"    def _check_gateway_in_subnet(cidr, gateway):"},{"line_number":496,"context_line":"        \"\"\"Validate that the gateway is on the subnet.\"\"\""},{"line_number":497,"context_line":"        ip \u003d netaddr.IPAddress(gateway)"},{"line_number":498,"context_line":"        if ip.version \u003d\u003d 4 or (ip.version \u003d\u003d 6 and not ip.is_link_local()):"},{"line_number":499,"context_line":"            return NeutronDbPluginV2._check_subnet_ip(cidr, gateway)"},{"line_number":500,"context_line":"        return True"},{"line_number":501,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_6c93fc4e","line":498,"updated":"2014-07-22 02:08:25.000000000","message":"(Suggestion only) Consider using a named conditional variable to make the intention of the conditional self-documenting, e.g.\n\ngateway_check_required \u003d (ip.version \u003d\u003d 4 or (ip.version \u003d\u003d 6 and not ip.is_link_local()))\nif gateway_check_required:\n ...","commit_id":"a15fbcd16e2df188c8388f11f5ee6e2e569d47d2"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"82cef2ef84fa2d105307c506d83f7b838c4cd6ff","unresolved":false,"context_lines":[{"line_number":495,"context_line":"    def _check_gateway_in_subnet(cidr, gateway):"},{"line_number":496,"context_line":"        \"\"\"Validate that the gateway is on the subnet.\"\"\""},{"line_number":497,"context_line":"        ip \u003d netaddr.IPAddress(gateway)"},{"line_number":498,"context_line":"        if ip.version \u003d\u003d 4 or (ip.version \u003d\u003d 6 and not ip.is_link_local()):"},{"line_number":499,"context_line":"            return NeutronDbPluginV2._check_subnet_ip(cidr, gateway)"},{"line_number":500,"context_line":"        return True"},{"line_number":501,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_db9d3c0c","line":498,"in_reply_to":"baada198_6c93fc4e","updated":"2014-07-23 10:46:04.000000000","message":"Generally I like what you\u0027re suggesting but I think that in this specific case the function is so concise that the purpose of the conditional is clear, and adding a new variable would just add an unnecessary line.","commit_id":"a15fbcd16e2df188c8388f11f5ee6e2e569d47d2"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"6dde4dca3a4e3890f21f38adb53c8db2ea5de7c2","unresolved":false,"context_lines":[{"line_number":1107,"context_line":"        if attributes.is_attr_set(s.get(\u0027gateway_ip\u0027)):"},{"line_number":1108,"context_line":"            self._validate_ip_version(ip_ver, s[\u0027gateway_ip\u0027], \u0027gateway_ip\u0027)"},{"line_number":1109,"context_line":"            if (cfg.CONF.force_gateway_on_subnet and"},{"line_number":1110,"context_line":"                not NeutronDbPluginV2._check_gateway_in_subnet("},{"line_number":1111,"context_line":"                    s[\u0027cidr\u0027], s[\u0027gateway_ip\u0027])):"},{"line_number":1112,"context_line":"                error_message \u003d _(\"Gateway is not valid on subnet\")"},{"line_number":1113,"context_line":"                raise n_exc.InvalidInput(error_message\u003derror_message)"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_cc6df3cc","line":1110,"updated":"2014-07-28 11:39:37.000000000","message":"perhaps i misread but it seems you should use self._check_gateway_in_subnet.","commit_id":"a15fbcd16e2df188c8388f11f5ee6e2e569d47d2"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"67ebf57005cf8e09c6248dd32754fd2060b0699a","unresolved":false,"context_lines":[{"line_number":1107,"context_line":"        if attributes.is_attr_set(s.get(\u0027gateway_ip\u0027)):"},{"line_number":1108,"context_line":"            self._validate_ip_version(ip_ver, s[\u0027gateway_ip\u0027], \u0027gateway_ip\u0027)"},{"line_number":1109,"context_line":"            if (cfg.CONF.force_gateway_on_subnet and"},{"line_number":1110,"context_line":"                not NeutronDbPluginV2._check_gateway_in_subnet("},{"line_number":1111,"context_line":"                    s[\u0027cidr\u0027], s[\u0027gateway_ip\u0027])):"},{"line_number":1112,"context_line":"                error_message \u003d _(\"Gateway is not valid on subnet\")"},{"line_number":1113,"context_line":"                raise n_exc.InvalidInput(error_message\u003derror_message)"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_40e1699a","line":1110,"in_reply_to":"baada198_8728fb37","updated":"2014-07-29 17:08:47.000000000","message":"the remark was quite the same as above prefer self._check_gateway_in_subnet use over NeutronDbPluginV2._check_gateway_in_subnet which breaks inheritance principle.","commit_id":"a15fbcd16e2df188c8388f11f5ee6e2e569d47d2"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"963dad6ca1ee6af223a9458ec389444006f50a8f","unresolved":false,"context_lines":[{"line_number":1107,"context_line":"        if attributes.is_attr_set(s.get(\u0027gateway_ip\u0027)):"},{"line_number":1108,"context_line":"            self._validate_ip_version(ip_ver, s[\u0027gateway_ip\u0027], \u0027gateway_ip\u0027)"},{"line_number":1109,"context_line":"            if (cfg.CONF.force_gateway_on_subnet and"},{"line_number":1110,"context_line":"                not NeutronDbPluginV2._check_gateway_in_subnet("},{"line_number":1111,"context_line":"                    s[\u0027cidr\u0027], s[\u0027gateway_ip\u0027])):"},{"line_number":1112,"context_line":"                error_message \u003d _(\"Gateway is not valid on subnet\")"},{"line_number":1113,"context_line":"                raise n_exc.InvalidInput(error_message\u003derror_message)"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_8728fb37","line":1110,"in_reply_to":"baada198_cc6df3cc","updated":"2014-07-29 15:48:40.000000000","message":"check_gateway_in_subnet returns True if the gateway is indeed in the subnet, so we need the not in the conditional.","commit_id":"a15fbcd16e2df188c8388f11f5ee6e2e569d47d2"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"1a06c88bc7f9caf3bf5fd44faef502cb57ee02ec","unresolved":false,"context_lines":[{"line_number":500,"context_line":"        return True"},{"line_number":501,"context_line":""},{"line_number":502,"context_line":"    @classmethod"},{"line_number":503,"context_line":"    def _check_subnet_ip(cls, cidr, ip_address):"},{"line_number":504,"context_line":"        \"\"\"Validate that the IP address is on the subnet.\"\"\""},{"line_number":505,"context_line":"        ip \u003d netaddr.IPAddress(ip_address)"},{"line_number":506,"context_line":"        net \u003d netaddr.IPNetwork(cidr)"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_3c58dd89","line":503,"updated":"2014-07-31 04:16:09.000000000","message":"this doesn\u0027t seem to need to be a class method.","commit_id":"0e44b7b5418c400af7358a5391f350f2f737929e"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"c83739b5b299d046a23a10e897ebe50d88f5d5cb","unresolved":false,"context_lines":[{"line_number":500,"context_line":"        return True"},{"line_number":501,"context_line":""},{"line_number":502,"context_line":"    @classmethod"},{"line_number":503,"context_line":"    def _check_subnet_ip(cls, cidr, ip_address):"},{"line_number":504,"context_line":"        \"\"\"Validate that the IP address is on the subnet.\"\"\""},{"line_number":505,"context_line":"        ip \u003d netaddr.IPAddress(ip_address)"},{"line_number":506,"context_line":"        net \u003d netaddr.IPNetwork(cidr)"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_e88123fb","line":503,"in_reply_to":"baada198_3c58dd89","updated":"2014-08-01 08:17:35.000000000","message":"Check out the discussion on the previous patchset.","commit_id":"0e44b7b5418c400af7358a5391f350f2f737929e"}],"neutron/tests/unit/ml2/test_ml2_plugin.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"6d3724293d489ee0e7f38fd8c3b462d6751b6a9e","unresolved":false,"context_lines":[{"line_number":461,"context_line":"                                   \u0027name\u0027: \u0027subnet1\u0027,"},{"line_number":462,"context_line":"                                   \u0027tenant_id\u0027:"},{"line_number":463,"context_line":"                                   network[\u0027network\u0027][\u0027tenant_id\u0027],"},{"line_number":464,"context_line":"                                   \u0027gateway_ip\u0027: \u002710.0.20.1\u0027}}"},{"line_number":465,"context_line":"                req \u003d self.new_create_request(\u0027subnets\u0027, data)"},{"line_number":466,"context_line":"                res \u003d req.get_response(self.api)"},{"line_number":467,"context_line":"                self.assertEqual(500, res.status_int)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_a2a458ba","line":464,"updated":"2014-07-07 08:26:52.000000000","message":"The test says test_create_subnet_faulty, but you\nhave changed from faulty gateway ip into non-faulty.\nWhy?","commit_id":"fcbe2ebb6d0d6763e93a052ddff12289c6766f12"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9eeaeb5348029b80fd1077ca440e8f298282bed3","unresolved":false,"context_lines":[{"line_number":461,"context_line":"                                   \u0027name\u0027: \u0027subnet1\u0027,"},{"line_number":462,"context_line":"                                   \u0027tenant_id\u0027:"},{"line_number":463,"context_line":"                                   network[\u0027network\u0027][\u0027tenant_id\u0027],"},{"line_number":464,"context_line":"                                   \u0027gateway_ip\u0027: \u002710.0.20.1\u0027}}"},{"line_number":465,"context_line":"                req \u003d self.new_create_request(\u0027subnets\u0027, data)"},{"line_number":466,"context_line":"                res \u003d req.get_response(self.api)"},{"line_number":467,"context_line":"                self.assertEqual(500, res.status_int)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_f9ffbaff","line":464,"in_reply_to":"baada198_3ebcb8ba","updated":"2014-07-08 09:07:48.000000000","message":"Ah, ok, understood, I had to expand the visible lines a bit up, to see the side_effect\u003dml2_exc.MechanismDriverError on \u0027create_subnet_postcommit\u0027.\n\nI think this tests is a bit confusing, but refactoring is out of the scope of this patch.","commit_id":"fcbe2ebb6d0d6763e93a052ddff12289c6766f12"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"d0e671e5bbc4651e4f9e945190c7eefbaecb1906","unresolved":false,"context_lines":[{"line_number":461,"context_line":"                                   \u0027name\u0027: \u0027subnet1\u0027,"},{"line_number":462,"context_line":"                                   \u0027tenant_id\u0027:"},{"line_number":463,"context_line":"                                   network[\u0027network\u0027][\u0027tenant_id\u0027],"},{"line_number":464,"context_line":"                                   \u0027gateway_ip\u0027: \u002710.0.20.1\u0027}}"},{"line_number":465,"context_line":"                req \u003d self.new_create_request(\u0027subnets\u0027, data)"},{"line_number":466,"context_line":"                res \u003d req.get_response(self.api)"},{"line_number":467,"context_line":"                self.assertEqual(500, res.status_int)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_3ebcb8ba","line":464,"in_reply_to":"baada198_6505ea12","updated":"2014-07-08 08:22:29.000000000","message":"But, what makes the created subnet faulty?,\n\nI\u0027m missing something. :)","commit_id":"fcbe2ebb6d0d6763e93a052ddff12289c6766f12"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"a5c9cd3faa9382e8766c8101962ff9a56b126c27","unresolved":false,"context_lines":[{"line_number":461,"context_line":"                                   \u0027name\u0027: \u0027subnet1\u0027,"},{"line_number":462,"context_line":"                                   \u0027tenant_id\u0027:"},{"line_number":463,"context_line":"                                   network[\u0027network\u0027][\u0027tenant_id\u0027],"},{"line_number":464,"context_line":"                                   \u0027gateway_ip\u0027: \u002710.0.20.1\u0027}}"},{"line_number":465,"context_line":"                req \u003d self.new_create_request(\u0027subnets\u0027, data)"},{"line_number":466,"context_line":"                res \u003d req.get_response(self.api)"},{"line_number":467,"context_line":"                self.assertEqual(500, res.status_int)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_6505ea12","line":464,"in_reply_to":"baada198_a2a458ba","updated":"2014-07-07 09:09:58.000000000","message":"The way I understand this test is that the fault is with the test is the ml2_exc.MechanismDriverError during the postcommit. Before this patch the gateway_ip was outside of the cidr but that wasn\u0027t the \"fault. To reiterate, before this patch, if you remove the mock (Or remove the side effect) then the creation of the subnet would succeed and the test would fail in line 467. Since the creation of the subnet should fail because of a MechanismDriverError and not because of the \u0027gateway in subnet\u0027 validation, I changed the gateway_ip so it\u0027s in the subnet.","commit_id":"fcbe2ebb6d0d6763e93a052ddff12289c6766f12"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"6d3724293d489ee0e7f38fd8c3b462d6751b6a9e","unresolved":false,"context_lines":[{"line_number":488,"context_line":"                                       \u0027name\u0027: \u0027subnet1\u0027,"},{"line_number":489,"context_line":"                                       \u0027tenant_id\u0027:"},{"line_number":490,"context_line":"                                       network[\u0027network\u0027][\u0027tenant_id\u0027],"},{"line_number":491,"context_line":"                                       \u0027gateway_ip\u0027: \u002710.0.20.1\u0027}}"},{"line_number":492,"context_line":"                    subnet_req \u003d self.new_create_request(\u0027subnets\u0027, data)"},{"line_number":493,"context_line":"                    subnet_res \u003d subnet_req.get_response(self.api)"},{"line_number":494,"context_line":"                    self.assertEqual(201, subnet_res.status_int)"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_c2a78cbb","line":491,"updated":"2014-07-07 08:26:52.000000000","message":"Same here.","commit_id":"fcbe2ebb6d0d6763e93a052ddff12289c6766f12"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"6dde4dca3a4e3890f21f38adb53c8db2ea5de7c2","unresolved":false,"context_lines":[{"line_number":445,"context_line":"                net \u003d self._show(\u0027networks\u0027, net_id)"},{"line_number":446,"context_line":"                self.assertEqual(new_name, net[\u0027network\u0027][\u0027name\u0027])"},{"line_number":447,"context_line":""},{"line_number":448,"context_line":"                self._delete(\u0027networks\u0027, net_id)"},{"line_number":449,"context_line":""},{"line_number":450,"context_line":"    def test_create_subnet_faulty(self):"},{"line_number":451,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_6c822753","line":448,"updated":"2014-07-28 11:39:37.000000000","message":"You should add a test for the case _check_gateway_in_subnet returns False","commit_id":"a15fbcd16e2df188c8388f11f5ee6e2e569d47d2"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"963dad6ca1ee6af223a9458ec389444006f50a8f","unresolved":false,"context_lines":[{"line_number":445,"context_line":"                net \u003d self._show(\u0027networks\u0027, net_id)"},{"line_number":446,"context_line":"                self.assertEqual(new_name, net[\u0027network\u0027][\u0027name\u0027])"},{"line_number":447,"context_line":""},{"line_number":448,"context_line":"                self._delete(\u0027networks\u0027, net_id)"},{"line_number":449,"context_line":""},{"line_number":450,"context_line":"    def test_create_subnet_faulty(self):"},{"line_number":451,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_e7ac57a2","line":448,"in_reply_to":"baada198_6c822753","updated":"2014-07-29 15:48:40.000000000","message":"Those tests exist in the DB base plugin. What type of fault would we discover if I add that test at the ML2 level? In the same breath, why not add such a test to every plugin?","commit_id":"a15fbcd16e2df188c8388f11f5ee6e2e569d47d2"}],"neutron/tests/unit/test_db_plugin.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"36edb2b9bda9f0eb5f1edea70df83f5d3d0b6321","unresolved":false,"context_lines":[{"line_number":3029,"context_line":""},{"line_number":3030,"context_line":"    def test_create_subnet_ipv6_out_of_cidr_global(self):"},{"line_number":3031,"context_line":"        gateway_ip \u003d \u00272000::1\u0027"},{"line_number":3032,"context_line":"        cidr \u003d \u00272001::/64\u0027"},{"line_number":3033,"context_line":""},{"line_number":3034,"context_line":"        with testlib_api.ExpectedException("},{"line_number":3035,"context_line":"            webob.exc.HTTPClientError) as ctx_manager:"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_cc6e5dfe","line":3032,"updated":"2014-07-30 21:21:54.000000000","message":"2001:db8 ?","commit_id":"0e44b7b5418c400af7358a5391f350f2f737929e"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d0b4e3825a0c1225366db414189cb3eb17e6520e","unresolved":false,"context_lines":[{"line_number":3029,"context_line":""},{"line_number":3030,"context_line":"    def test_create_subnet_ipv6_out_of_cidr_global(self):"},{"line_number":3031,"context_line":"        gateway_ip \u003d \u00272000::1\u0027"},{"line_number":3032,"context_line":"        cidr \u003d \u00272001::/64\u0027"},{"line_number":3033,"context_line":""},{"line_number":3034,"context_line":"        with testlib_api.ExpectedException("},{"line_number":3035,"context_line":"            webob.exc.HTTPClientError) as ctx_manager:"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_3cc0e449","line":3032,"in_reply_to":"baada198_cc6e5dfe","updated":"2014-07-30 22:41:18.000000000","message":"Brian\u0027s point is good.  However, this is test code and the current code appears to accurately test the issue.  I\u0027m happy to approve as is.","commit_id":"0e44b7b5418c400af7358a5391f350f2f737929e"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"36edb2b9bda9f0eb5f1edea70df83f5d3d0b6321","unresolved":false,"context_lines":[{"line_number":3042,"context_line":""},{"line_number":3043,"context_line":"    def test_create_subnet_ipv6_out_of_cidr_lla(self):"},{"line_number":3044,"context_line":"        gateway_ip \u003d \u0027fe80::1\u0027"},{"line_number":3045,"context_line":"        cidr \u003d \u00272001::/64\u0027"},{"line_number":3046,"context_line":""},{"line_number":3047,"context_line":"        self._test_create_subnet("},{"line_number":3048,"context_line":"            gateway_ip\u003dgateway_ip, cidr\u003dcidr, ip_version\u003d6,"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_ec7de1b3","line":3045,"updated":"2014-07-30 21:21:54.000000000","message":"2001:db8 ?","commit_id":"0e44b7b5418c400af7358a5391f350f2f737929e"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d0b4e3825a0c1225366db414189cb3eb17e6520e","unresolved":false,"context_lines":[{"line_number":3042,"context_line":""},{"line_number":3043,"context_line":"    def test_create_subnet_ipv6_out_of_cidr_lla(self):"},{"line_number":3044,"context_line":"        gateway_ip \u003d \u0027fe80::1\u0027"},{"line_number":3045,"context_line":"        cidr \u003d \u00272001::/64\u0027"},{"line_number":3046,"context_line":""},{"line_number":3047,"context_line":"        self._test_create_subnet("},{"line_number":3048,"context_line":"            gateway_ip\u003dgateway_ip, cidr\u003dcidr, ip_version\u003d6,"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_5c9e786a","line":3045,"in_reply_to":"baada198_ec7de1b3","updated":"2014-07-30 22:41:18.000000000","message":"Ditto.","commit_id":"0e44b7b5418c400af7358a5391f350f2f737929e"}],"neutron/tests/unit/test_l3_plugin.py":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"0d5c353059aacfd1f73814804cd385af1d544cb4","unresolved":false,"context_lines":[{"line_number":880,"context_line":"                try_overlapped_cidr(\u002710.0.1.0/24\u0027)"},{"line_number":881,"context_line":"                # another subnet with overlapped cidr including s1"},{"line_number":882,"context_line":"                try_overlapped_cidr(\u002710.0.0.0/16\u0027)"},{"line_number":883,"context_line":"                # another subnet with overlapped cidr included by s1"},{"line_number":884,"context_line":"                try_overlapped_cidr(\u002710.0.1.1/32\u0027)"},{"line_number":885,"context_line":"                # clean-up"},{"line_number":886,"context_line":"                self._router_interface_action(\u0027remove\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_a7544dfe","side":"PARENT","line":883,"updated":"2014-07-22 02:08:25.000000000","message":"I\u0027m afraid I don\u0027t understand why this line needs to be removed, can you please explain so I don\u0027t assume the change is unrelated?","commit_id":"4e1ff7bba220eecea9a1d3c800baa32f141b70af"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"82cef2ef84fa2d105307c506d83f7b838c4cd6ff","unresolved":false,"context_lines":[{"line_number":880,"context_line":"                try_overlapped_cidr(\u002710.0.1.0/24\u0027)"},{"line_number":881,"context_line":"                # another subnet with overlapped cidr including s1"},{"line_number":882,"context_line":"                try_overlapped_cidr(\u002710.0.0.0/16\u0027)"},{"line_number":883,"context_line":"                # another subnet with overlapped cidr included by s1"},{"line_number":884,"context_line":"                try_overlapped_cidr(\u002710.0.1.1/32\u0027)"},{"line_number":885,"context_line":"                # clean-up"},{"line_number":886,"context_line":"                self._router_interface_action(\u0027remove\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_1b75f4cb","side":"PARENT","line":883,"in_reply_to":"baada198_a7544dfe","updated":"2014-07-23 10:46:04.000000000","message":"/32 subnets are generally speaking only legal for interfaces, not for actual networks. IE: eth0 can conceivably have a x.y.z.w/32, but the representation for a network cannot have a /32 mask. This became relevant here because creating a /32 subnet will then try to allocate the gateway on the first available address, but there isn\u0027t one, and it will be created outside of the subnet, which is no longer legal with this patch.","commit_id":"4e1ff7bba220eecea9a1d3c800baa32f141b70af"}]}
