)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"303aaff25b1246b6dea466dfc6c7a0db899f8550","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     John Nielsen \u003cjohn@jnielsen.net\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-07-22 12:43:04 -0600"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add option for per-VNI mcast group (vxlan)"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add a boolean option, vxlan_group_auto, which if enabled will compute"},{"line_number":10,"context_line":"a unique multicast group address group for each VXLAN VNI. Since VNIs"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a50d1a3_a941ecaa","line":7,"updated":"2015-07-22 19:02:34.000000000","message":"This change adds a new feature so it requires at least a rfe[1]\n\n[1] http://docs.openstack.org/developer/neutron/policies/blueprints.html#neutron-request-for-feature-enhancements","commit_id":"3e30deef025a0e78aab0788d6d6925771fbdab04"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"65a9109a702498d0e4528122a257f5620a2d6b6f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     John Nielsen \u003cjohn@jnielsen.net\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-07-22 12:43:04 -0600"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add option for per-VNI mcast group (vxlan)"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add a boolean option, vxlan_group_auto, which if enabled will compute"},{"line_number":10,"context_line":"a unique multicast group address group for each VXLAN VNI. Since VNIs"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a50d1a3_8c9afe6c","line":7,"in_reply_to":"3a50d1a3_a941ecaa","updated":"2015-07-22 19:24:10.000000000","message":"+1. It should be a simple RFE. Something like, \"we don\u0027t want BUM traffic going to every node in VXLAN multicast deployments\".","commit_id":"3e30deef025a0e78aab0788d6d6925771fbdab04"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"5288301c381642d233767e801fd820b09e4d0b59","unresolved":false,"context_lines":[{"line_number":21,"context_line":"above. If the option is False then the previous behavior is used"},{"line_number":22,"context_line":"(either a single multicast group is defined by vxlan_group or multicast"},{"line_number":23,"context_line":"is disabled)."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Change-Id: If9a3487a28ba2b02a6ef934c5421cec5d505b53c"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a50d1a3_694c44c8","line":24,"updated":"2015-07-22 18:56:57.000000000","message":"Might need a DocImpact tag\n\nhttps://wiki.openstack.org/wiki/Documentation/DocImpact","commit_id":"3e30deef025a0e78aab0788d6d6925771fbdab04"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"303aaff25b1246b6dea466dfc6c7a0db899f8550","unresolved":false,"context_lines":[{"line_number":21,"context_line":"above. If the option is False then the previous behavior is used"},{"line_number":22,"context_line":"(either a single multicast group is defined by vxlan_group or multicast"},{"line_number":23,"context_line":"is disabled)."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Change-Id: If9a3487a28ba2b02a6ef934c5421cec5d505b53c"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a50d1a3_a9cc8c6a","line":24,"updated":"2015-07-22 19:02:34.000000000","message":"This change defines a new option so DocImpact tag seems required.","commit_id":"3e30deef025a0e78aab0788d6d6925771fbdab04"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"32d73ac1a72ee90adff42cf2f0477f415a6c7d1a","unresolved":false,"context_lines":[{"line_number":24,"context_line":"suggest 239.0.0.0/8 as an alternative. Administrators are free to use"},{"line_number":25,"context_line":"any valid multicast range that can be expressed in CIDR notation, and"},{"line_number":26,"context_line":"should choose a size and starting address that make sense for their"},{"line_number":27,"context_line":"environment."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"DocImpact"},{"line_number":30,"context_line":"Change-Id: If9a3487a28ba2b02a6ef934c5421cec5d505b53c"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"3a50d1a3_5b2dbf44","line":27,"updated":"2015-07-27 20:31:41.000000000","message":"He filed one here: https://bugs.launchpad.net/neutron/+bug/1477331\n\nJohn, add a tag to this that says\n\nCloses-Bug: #1477331\n\nThis will assign it to you in launchpad automatically and make it easy for reviewers to find the RFE.","commit_id":"ff32069d93fdf860d4b835b391e4dbb61e02592e"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"31ac5569154510729e56890f222fc05588a0c423","unresolved":false,"context_lines":[{"line_number":24,"context_line":"suggest 239.0.0.0/8 as an alternative. Administrators are free to use"},{"line_number":25,"context_line":"any valid multicast range that can be expressed in CIDR notation, and"},{"line_number":26,"context_line":"should choose a size and starting address that make sense for their"},{"line_number":27,"context_line":"environment."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"DocImpact"},{"line_number":30,"context_line":"Change-Id: If9a3487a28ba2b02a6ef934c5421cec5d505b53c"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"3a50d1a3_00afc62a","line":27,"updated":"2015-07-27 20:21:17.000000000","message":"it needs a rfe (see PS1)","commit_id":"ff32069d93fdf860d4b835b391e4dbb61e02592e"}],"etc/neutron/plugins/ml2/linuxbridge_agent.ini":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"303aaff25b1246b6dea466dfc6c7a0db899f8550","unresolved":false,"context_lines":[{"line_number":23,"context_line":"#"},{"line_number":24,"context_line":"# (StrOpt) multicast group to use for broadcast emulation."},{"line_number":25,"context_line":"# This group must be the same on all the agents."},{"line_number":26,"context_line":"# vxlan_group \u003d 224.0.0.1"},{"line_number":27,"context_line":"#"},{"line_number":28,"context_line":"# (BoolOpt) Derive a unique 239.x.x.x multicast group for each vxlan VNI."},{"line_number":29,"context_line":"# If this option is true, the setting of vxlan_group is ignored."}],"source_content_type":"text/x-properties","patch_set":1,"id":"3a50d1a3_c901d839","line":26,"updated":"2015-07-22 19:02:34.000000000","message":"vxlan_group has no effect when vxlan_group_auto is True, it should be documented in commit message and vxlan_group doc","commit_id":"3e30deef025a0e78aab0788d6d6925771fbdab04"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"65a9109a702498d0e4528122a257f5620a2d6b6f","unresolved":false,"context_lines":[{"line_number":23,"context_line":"#"},{"line_number":24,"context_line":"# (StrOpt) multicast group to use for broadcast emulation."},{"line_number":25,"context_line":"# This group must be the same on all the agents."},{"line_number":26,"context_line":"# vxlan_group \u003d 224.0.0.1"},{"line_number":27,"context_line":"#"},{"line_number":28,"context_line":"# (BoolOpt) Derive a unique 239.x.x.x multicast group for each vxlan VNI."},{"line_number":29,"context_line":"# If this option is true, the setting of vxlan_group is ignored."}],"source_content_type":"text/x-properties","patch_set":1,"id":"3a50d1a3_ec8062c1","line":26,"in_reply_to":"3a50d1a3_c901d839","updated":"2015-07-22 19:24:10.000000000","message":"I wonder if we can utilize this option in a more intelligent way to cover both cases. I like to avoid options that are mutually exclusive if possible.\n\nWhat if we have this option also take a CIDR? Then if it receives a CIDR, it divides the networks across all of the addresses in the CIDR. That leaves lots of flexibility for the number of addresses an operator wants to burn at the expense of some overlap if they choose a really small CIDR.","commit_id":"3e30deef025a0e78aab0788d6d6925771fbdab04"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"f00c173ed2662658e2b720c11a70e62f4baffd86","unresolved":false,"context_lines":[{"line_number":23,"context_line":"#"},{"line_number":24,"context_line":"# (StrOpt) multicast group to use for broadcast emulation."},{"line_number":25,"context_line":"# This group must be the same on all the agents."},{"line_number":26,"context_line":"# vxlan_group \u003d 224.0.0.1"},{"line_number":27,"context_line":"#"},{"line_number":28,"context_line":"# (BoolOpt) Derive a unique 239.x.x.x multicast group for each vxlan VNI."},{"line_number":29,"context_line":"# If this option is true, the setting of vxlan_group is ignored."}],"source_content_type":"text/x-properties","patch_set":1,"id":"3a50d1a3_7f187275","line":26,"in_reply_to":"3a50d1a3_ec8062c1","updated":"2015-07-22 19:30:26.000000000","message":"Great idea, it allows to use smaller cidr for smaller vxlan pool","commit_id":"3e30deef025a0e78aab0788d6d6925771fbdab04"},{"author":{"_account_id":17471,"name":"John Nielsen","email":"john@jnielsen.net","username":"jnielsendotnet"},"change_message_id":"288f7891cc8cafc834682d8867207d0d9c645cf1","unresolved":false,"context_lines":[{"line_number":23,"context_line":"#"},{"line_number":24,"context_line":"# (StrOpt) multicast group to use for broadcast emulation."},{"line_number":25,"context_line":"# This group must be the same on all the agents."},{"line_number":26,"context_line":"# vxlan_group \u003d 224.0.0.1"},{"line_number":27,"context_line":"#"},{"line_number":28,"context_line":"# (BoolOpt) Derive a unique 239.x.x.x multicast group for each vxlan VNI."},{"line_number":29,"context_line":"# If this option is true, the setting of vxlan_group is ignored."}],"source_content_type":"text/x-properties","patch_set":1,"id":"3a50d1a3_ff37a24a","line":26,"in_reply_to":"3a50d1a3_ec8062c1","updated":"2015-07-22 22:32:41.000000000","message":"I like this idea as well. Remove the new option; vxlan_group is the same as now if no CIDR or /32 is present. Otherwise networks are distributed among the group addresses within the CIDR. The actual group address would be \u003cbase address\u003e + (segmentation_id % \u003cnumber of addresses in the range\u003e). Since segmentation_ids tend to be sequential and/or from a limited range the modulus would provide a reasonable distribution without needing any fancier hashing, etc. I\u0027ll work on it.","commit_id":"3e30deef025a0e78aab0788d6d6925771fbdab04"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"303aaff25b1246b6dea466dfc6c7a0db899f8550","unresolved":false,"context_lines":[{"line_number":25,"context_line":"# This group must be the same on all the agents."},{"line_number":26,"context_line":"# vxlan_group \u003d 224.0.0.1"},{"line_number":27,"context_line":"#"},{"line_number":28,"context_line":"# (BoolOpt) Derive a unique 239.x.x.x multicast group for each vxlan VNI."},{"line_number":29,"context_line":"# If this option is true, the setting of vxlan_group is ignored."},{"line_number":30,"context_line":"# vxlan_group_auto \u003d False"},{"line_number":31,"context_line":"#"}],"source_content_type":"text/x-properties","patch_set":1,"id":"3a50d1a3_c9255809","line":28,"updated":"2015-07-22 19:02:34.000000000","message":"Nothing ensures 239/8 is not already used (ie: should be configurable?)","commit_id":"3e30deef025a0e78aab0788d6d6925771fbdab04"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"303aaff25b1246b6dea466dfc6c7a0db899f8550","unresolved":false,"context_lines":[{"line_number":27,"context_line":"#"},{"line_number":28,"context_line":"# (BoolOpt) Derive a unique 239.x.x.x multicast group for each vxlan VNI."},{"line_number":29,"context_line":"# If this option is true, the setting of vxlan_group is ignored."},{"line_number":30,"context_line":"# vxlan_group_auto \u003d False"},{"line_number":31,"context_line":"#"},{"line_number":32,"context_line":"# (StrOpt) Local IP address to use for VXLAN endpoints (required)"},{"line_number":33,"context_line":"# local_ip \u003d"}],"source_content_type":"text/x-properties","patch_set":1,"id":"3a50d1a3_e9fb7479","line":30,"updated":"2015-07-22 19:02:34.000000000","message":"imo, vxlan_group_auto is not really meaningful. \"(multicast_)group_per_vxlan\" seems better?","commit_id":"3e30deef025a0e78aab0788d6d6925771fbdab04"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"dc9397925dd5fa46685845d8e15df4a8a0bf7583","unresolved":false,"context_lines":[{"line_number":26,"context_line":"# reducing or eliminating spurious broadcast traffic to the tunnel endpoints."},{"line_number":27,"context_line":"# Ranges are specified by using CIDR notation. To reserve a unique group for"},{"line_number":28,"context_line":"# each possible (24-bit) VNI, use a /8 such as 239.0.0.0/8."},{"line_number":29,"context_line":"# This setting must be the same on all the agents."},{"line_number":30,"context_line":"# vxlan_group \u003d 224.0.0.1"},{"line_number":31,"context_line":"#"},{"line_number":32,"context_line":"# (StrOpt) Local IP address to use for VXLAN endpoints (required)"}],"source_content_type":"text/x-properties","patch_set":5,"id":"3a50d1a3_60efaa87","line":29,"updated":"2015-07-27 20:19:51.000000000","message":"Remove the last sentence or add it in the help message (it seems in the future conf sample with be autogenerated according neutron specs).","commit_id":"ff32069d93fdf860d4b835b391e4dbb61e02592e"}],"neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"303aaff25b1246b6dea466dfc6c7a0db899f8550","unresolved":false,"context_lines":[{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def get_vxlan_group(self, segmentation_id):"},{"line_number":131,"context_line":"        if cfg.CONF.VXLAN.vxlan_group_auto:"},{"line_number":132,"context_line":"            return (\"239.\" +"},{"line_number":133,"context_line":"                    str(segmentation_id \u003e\u003e 16) + \".\" +"},{"line_number":134,"context_line":"                    str(segmentation_id \u003e\u003e 8 % 256) + \".\" +"},{"line_number":135,"context_line":"                    str(segmentation_id % 256))"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_49ce282f","line":132,"updated":"2015-07-22 19:02:34.000000000","message":"it\u0027s more pythonic to do:\n\n  return \u0027239.%d.%d.%d\u0027 % (...)","commit_id":"3e30deef025a0e78aab0788d6d6925771fbdab04"},{"author":{"_account_id":17471,"name":"John Nielsen","email":"john@jnielsen.net","username":"jnielsendotnet"},"change_message_id":"288f7891cc8cafc834682d8867207d0d9c645cf1","unresolved":false,"context_lines":[{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def get_vxlan_group(self, segmentation_id):"},{"line_number":131,"context_line":"        if cfg.CONF.VXLAN.vxlan_group_auto:"},{"line_number":132,"context_line":"            return (\"239.\" +"},{"line_number":133,"context_line":"                    str(segmentation_id \u003e\u003e 16) + \".\" +"},{"line_number":134,"context_line":"                    str(segmentation_id \u003e\u003e 8 % 256) + \".\" +"},{"line_number":135,"context_line":"                    str(segmentation_id % 256))"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_22017105","line":132,"in_reply_to":"3a50d1a3_49ce282f","updated":"2015-07-22 22:32:41.000000000","message":"Done","commit_id":"3e30deef025a0e78aab0788d6d6925771fbdab04"},{"author":{"_account_id":7018,"name":"Abhishek Raut","email":"rauta@vmware.com","username":"abhiraut"},"change_message_id":"09c24588d18b065e29ce570ce452f4d8c3e2de8a","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        if \u0027/\u0027 in cfg.CONF.VXLAN.vxlan_group:"},{"line_number":134,"context_line":"            # Parse out the configured address and CIDR mask length"},{"line_number":135,"context_line":"            group_address, mask_length \u003d cfg.CONF.VXLAN.vxlan_group.split(\"/\")"},{"line_number":136,"context_line":"            inverse_mask_length\u003d32-int(mask_length)"},{"line_number":137,"context_line":"            # Represent the configured address as an integer"},{"line_number":138,"context_line":"            group_num \u003d 0"},{"line_number":139,"context_line":"            for octet in group_address.split(\".\"):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_1e104556","line":136,"updated":"2015-07-23 00:57:36.000000000","message":"should you not validate mask_length?\nfor example if I were to input 239.0.0.0/, int(mask_length) will raise a ValueError","commit_id":"1c32ccbe66681add3366e05efd8b9e07c956f9cb"},{"author":{"_account_id":7018,"name":"Abhishek Raut","email":"rauta@vmware.com","username":"abhiraut"},"change_message_id":"09c24588d18b065e29ce570ce452f4d8c3e2de8a","unresolved":false,"context_lines":[{"line_number":136,"context_line":"            inverse_mask_length\u003d32-int(mask_length)"},{"line_number":137,"context_line":"            # Represent the configured address as an integer"},{"line_number":138,"context_line":"            group_num \u003d 0"},{"line_number":139,"context_line":"            for octet in group_address.split(\".\"):"},{"line_number":140,"context_line":"                group_num *\u003d 256"},{"line_number":141,"context_line":"                group_num +\u003d int(octet)"},{"line_number":142,"context_line":"            # Generate the 32-bit mask matching the supplied CIDR mask length"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_3912fb57","line":139,"updated":"2015-07-23 00:57:36.000000000","message":"similarly you might want to validate the group_address as a valid multicast ip","commit_id":"1c32ccbe66681add3366e05efd8b9e07c956f9cb"},{"author":{"_account_id":17471,"name":"John Nielsen","email":"john@jnielsen.net","username":"jnielsendotnet"},"change_message_id":"811841a1408ab6c55cbdfc845b53057d640a071a","unresolved":false,"context_lines":[{"line_number":136,"context_line":"            inverse_mask_length\u003d32-int(mask_length)"},{"line_number":137,"context_line":"            # Represent the configured address as an integer"},{"line_number":138,"context_line":"            group_num \u003d 0"},{"line_number":139,"context_line":"            for octet in group_address.split(\".\"):"},{"line_number":140,"context_line":"                group_num *\u003d 256"},{"line_number":141,"context_line":"                group_num +\u003d int(octet)"},{"line_number":142,"context_line":"            # Generate the 32-bit mask matching the supplied CIDR mask length"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_b4b26204","line":139,"in_reply_to":"3a50d1a3_3912fb57","updated":"2015-07-23 16:24:04.000000000","message":"The current code doesn\u0027t do any validation. What should we do if the configured value is not valid?","commit_id":"1c32ccbe66681add3366e05efd8b9e07c956f9cb"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c0dc1ef00f49f36161e290f1731dd85c0aa8d459","unresolved":false,"context_lines":[{"line_number":142,"context_line":"            # Generate the 32-bit mask matching the supplied CIDR mask length"},{"line_number":143,"context_line":"            mask \u003d 0xffffffff \u003c\u003c inverse_mask_length \u0026 0xffffffff"},{"line_number":144,"context_line":"            # Apply the mask to get the base address"},{"line_number":145,"context_line":"            group_num \u0026\u003d mask"},{"line_number":146,"context_line":"            # Add to the base the segmentation ID modulo the available number"},{"line_number":147,"context_line":"            # of addresses"},{"line_number":148,"context_line":"            group_modulus \u003d 2 ** inverse_mask_length"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_730bc224","line":145,"updated":"2015-07-23 00:03:27.000000000","message":"prefer the following which is clearer:\n\n  group_num \u003d int(netaddr.IPNetwork(cfg.CONF.vxlan_group).network)","commit_id":"1c32ccbe66681add3366e05efd8b9e07c956f9cb"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c0dc1ef00f49f36161e290f1731dd85c0aa8d459","unresolved":false,"context_lines":[{"line_number":147,"context_line":"            # of addresses"},{"line_number":148,"context_line":"            group_modulus \u003d 2 ** inverse_mask_length"},{"line_number":149,"context_line":"            group_num +\u003d segmentation_id % group_modulus"},{"line_number":150,"context_line":"            # Return the computed group address in dotted-quad notation"},{"line_number":151,"context_line":"            return \u0027%d.%d.%d.%d\u0027 % ("},{"line_number":152,"context_line":"                    group_num \u003e\u003e 24,"},{"line_number":153,"context_line":"                    (group_num \u003e\u003e 16) % 256,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_73a7420b","line":150,"updated":"2015-07-23 00:03:27.000000000","message":"iiuc, you could simplify a LOT the method:\n\n  if ...\n    net \u003d netaddr.IPNetwork(cfg.CONF.vxlan_group)\n    return str(net.network + segmentation_id \u0026 int(net.hostmask)\n  return cfg.CONF.vxlan_group","commit_id":"1c32ccbe66681add3366e05efd8b9e07c956f9cb"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"043cd402cf871c4d6e4b98798e96b460bd99ae12","unresolved":false,"context_lines":[{"line_number":147,"context_line":"            # of addresses"},{"line_number":148,"context_line":"            group_modulus \u003d 2 ** inverse_mask_length"},{"line_number":149,"context_line":"            group_num +\u003d segmentation_id % group_modulus"},{"line_number":150,"context_line":"            # Return the computed group address in dotted-quad notation"},{"line_number":151,"context_line":"            return \u0027%d.%d.%d.%d\u0027 % ("},{"line_number":152,"context_line":"                    group_num \u003e\u003e 24,"},{"line_number":153,"context_line":"                    (group_num \u003e\u003e 16) % 256,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_cfdbea4d","line":150,"in_reply_to":"3a50d1a3_73a7420b","updated":"2015-07-23 13:08:23.000000000","message":"that\u0027s frighteningly elegant","commit_id":"1c32ccbe66681add3366e05efd8b9e07c956f9cb"},{"author":{"_account_id":17471,"name":"John Nielsen","email":"john@jnielsen.net","username":"jnielsendotnet"},"change_message_id":"811841a1408ab6c55cbdfc845b53057d640a071a","unresolved":false,"context_lines":[{"line_number":147,"context_line":"            # of addresses"},{"line_number":148,"context_line":"            group_modulus \u003d 2 ** inverse_mask_length"},{"line_number":149,"context_line":"            group_num +\u003d segmentation_id % group_modulus"},{"line_number":150,"context_line":"            # Return the computed group address in dotted-quad notation"},{"line_number":151,"context_line":"            return \u0027%d.%d.%d.%d\u0027 % ("},{"line_number":152,"context_line":"                    group_num \u003e\u003e 24,"},{"line_number":153,"context_line":"                    (group_num \u003e\u003e 16) % 256,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_b424a25f","line":150,"in_reply_to":"3a50d1a3_cfdbea4d","updated":"2015-07-23 16:24:04.000000000","message":"Indeed, very neat. I\u0027ll make that change.","commit_id":"1c32ccbe66681add3366e05efd8b9e07c956f9cb"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"31bf1ca541569833f566f14bbc9a5612dd15743d","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        try:"},{"line_number":134,"context_line":"            # Ensure the configured group address/range is valid and multicast"},{"line_number":135,"context_line":"            net \u003d netaddr.IPNetwork(cfg.CONF.VXLAN.vxlan_group)"},{"line_number":136,"context_line":"            if not (net.network.is_multicast() and net.broadcast.is_multicast()):"},{"line_number":137,"context_line":"                raise ValueError()"},{"line_number":138,"context_line":"            # Map the segmentation ID to (one of) the group address(es)"},{"line_number":139,"context_line":"            return str(net.network + (segmentation_id \u0026 int(net.hostmask)))"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_366168d4","line":136,"updated":"2015-07-23 21:48:36.000000000","message":"Such check should be done on agent startup?","commit_id":"a5a8f15f162ec5a735c020c7317970b4248ee602"},{"author":{"_account_id":17471,"name":"John Nielsen","email":"john@jnielsen.net","username":"jnielsendotnet"},"change_message_id":"ba459109f7bafdd874ff3657d009a67ad481374c","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        try:"},{"line_number":134,"context_line":"            # Ensure the configured group address/range is valid and multicast"},{"line_number":135,"context_line":"            net \u003d netaddr.IPNetwork(cfg.CONF.VXLAN.vxlan_group)"},{"line_number":136,"context_line":"            if not (net.network.is_multicast() and net.broadcast.is_multicast()):"},{"line_number":137,"context_line":"                raise ValueError()"},{"line_number":138,"context_line":"            # Map the segmentation ID to (one of) the group address(es)"},{"line_number":139,"context_line":"            return str(net.network + (segmentation_id \u0026 int(net.hostmask)))"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_f6022072","line":136,"in_reply_to":"3a50d1a3_366168d4","updated":"2015-07-23 22:28:54.000000000","message":"Maybe? See next.","commit_id":"a5a8f15f162ec5a735c020c7317970b4248ee602"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"31bf1ca541569833f566f14bbc9a5612dd15743d","unresolved":false,"context_lines":[{"line_number":137,"context_line":"                raise ValueError()"},{"line_number":138,"context_line":"            # Map the segmentation ID to (one of) the group address(es)"},{"line_number":139,"context_line":"            return str(net.network + (segmentation_id \u0026 int(net.hostmask)))"},{"line_number":140,"context_line":"        except (netaddr.core.AddrFormatError, ValueError):"},{"line_number":141,"context_line":"            LOG.warning(_LW(\"Invalid VXLAN Group: %s, must be an address \""},{"line_number":142,"context_line":"                            \"or network (in CIDR notation) in a multicast \""},{"line_number":143,"context_line":"                            \"range\"),"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_f67220b0","line":140,"updated":"2015-07-23 21:48:36.000000000","message":"imo, neutron should crash when vxlan_group value is incorrect","commit_id":"a5a8f15f162ec5a735c020c7317970b4248ee602"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"7870b7359ab722f02eeed13cf5e8059c48b85ac0","unresolved":false,"context_lines":[{"line_number":137,"context_line":"                raise ValueError()"},{"line_number":138,"context_line":"            # Map the segmentation ID to (one of) the group address(es)"},{"line_number":139,"context_line":"            return str(net.network + (segmentation_id \u0026 int(net.hostmask)))"},{"line_number":140,"context_line":"        except (netaddr.core.AddrFormatError, ValueError):"},{"line_number":141,"context_line":"            LOG.warning(_LW(\"Invalid VXLAN Group: %s, must be an address \""},{"line_number":142,"context_line":"                            \"or network (in CIDR notation) in a multicast \""},{"line_number":143,"context_line":"                            \"range\"),"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_9cf3689f","line":140,"in_reply_to":"3a50d1a3_51c43e5e","updated":"2015-07-27 07:50:28.000000000","message":"I would say leave it the way you have it. If we want to make these fatal, let\u0027s do it in a different patch. It\u0027s possible for the agent to function with vlan based and gre based networks if this is messed up so it\u0027s possible making it fatal is not the right answer.","commit_id":"a5a8f15f162ec5a735c020c7317970b4248ee602"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"439cacb23096b7c896e6c2c6278c905bd047ecf7","unresolved":false,"context_lines":[{"line_number":137,"context_line":"                raise ValueError()"},{"line_number":138,"context_line":"            # Map the segmentation ID to (one of) the group address(es)"},{"line_number":139,"context_line":"            return str(net.network + (segmentation_id \u0026 int(net.hostmask)))"},{"line_number":140,"context_line":"        except (netaddr.core.AddrFormatError, ValueError):"},{"line_number":141,"context_line":"            LOG.warning(_LW(\"Invalid VXLAN Group: %s, must be an address \""},{"line_number":142,"context_line":"                            \"or network (in CIDR notation) in a multicast \""},{"line_number":143,"context_line":"                            \"range\"),"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_c071de0d","line":140,"in_reply_to":"3a50d1a3_9cf3689f","updated":"2015-07-27 20:20:11.000000000","message":"ok","commit_id":"a5a8f15f162ec5a735c020c7317970b4248ee602"},{"author":{"_account_id":17471,"name":"John Nielsen","email":"john@jnielsen.net","username":"jnielsendotnet"},"change_message_id":"ba459109f7bafdd874ff3657d009a67ad481374c","unresolved":false,"context_lines":[{"line_number":137,"context_line":"                raise ValueError()"},{"line_number":138,"context_line":"            # Map the segmentation ID to (one of) the group address(es)"},{"line_number":139,"context_line":"            return str(net.network + (segmentation_id \u0026 int(net.hostmask)))"},{"line_number":140,"context_line":"        except (netaddr.core.AddrFormatError, ValueError):"},{"line_number":141,"context_line":"            LOG.warning(_LW(\"Invalid VXLAN Group: %s, must be an address \""},{"line_number":142,"context_line":"                            \"or network (in CIDR notation) in a multicast \""},{"line_number":143,"context_line":"                            \"range\"),"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_51c43e5e","line":140,"in_reply_to":"3a50d1a3_f67220b0","updated":"2015-07-23 22:28:54.000000000","message":"I don\u0027t really have a strong opinion. Currently (without this patch) there is no validation of the vxlan_group whatsoever. When I added the checks in this patch set I basically copied what is done for the other routines above the one I added.\n\nIf validating even earlier and treating errors as fatal is what is desired then I can do it that way. Should I put the checks in main() and do a sys.exit(1) similar to what is done when the physical_interface_mappings can\u0027t be parsed?","commit_id":"a5a8f15f162ec5a735c020c7317970b4248ee602"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"dc9397925dd5fa46685845d8e15df4a8a0bf7583","unresolved":false,"context_lines":[{"line_number":19,"context_line":"# Based on the structure of the OpenVSwitch agent in the"},{"line_number":20,"context_line":"# Neutron OpenVSwitch Plugin."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"import netaddr"},{"line_number":23,"context_line":"import os"},{"line_number":24,"context_line":"import sys"},{"line_number":25,"context_line":"import time"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_409b8e66","line":22,"updated":"2015-07-27 20:19:51.000000000","message":"netaddr is not a standard lib module, so it should be grouped with external lib modules:\n\n import netaddr\n from oslo_config import cfg","commit_id":"ff32069d93fdf860d4b835b391e4dbb61e02592e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"f1519cf36ed7b213c1593f39aa7ba584172c3230","unresolved":false,"context_lines":[{"line_number":137,"context_line":"                    net.broadcast.is_multicast()):"},{"line_number":138,"context_line":"                raise ValueError()"},{"line_number":139,"context_line":"            # Map the segmentation ID to (one of) the group address(es)"},{"line_number":140,"context_line":"            return str(net.network + (segmentation_id \u0026 int(net.hostmask)))"},{"line_number":141,"context_line":"        except (netaddr.core.AddrFormatError, ValueError):"},{"line_number":142,"context_line":"            LOG.warning(_LW(\"Invalid VXLAN Group: %s, must be an address \""},{"line_number":143,"context_line":"                            \"or network (in CIDR notation) in a multicast \""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a50d1a3_fceeda20","line":140,"updated":"2015-07-28 15:23:30.000000000","message":"segmentation_id comes in as a string so you need to call int() on it here.","commit_id":"16a77c18c0daf0616567da9fabf8ef431d76230c"},{"author":{"_account_id":17471,"name":"John Nielsen","email":"john@jnielsen.net","username":"jnielsendotnet"},"change_message_id":"da470c050b36264bf991815135f03d16af3cbf87","unresolved":false,"context_lines":[{"line_number":137,"context_line":"                    net.broadcast.is_multicast()):"},{"line_number":138,"context_line":"                raise ValueError()"},{"line_number":139,"context_line":"            # Map the segmentation ID to (one of) the group address(es)"},{"line_number":140,"context_line":"            return str(net.network + (segmentation_id \u0026 int(net.hostmask)))"},{"line_number":141,"context_line":"        except (netaddr.core.AddrFormatError, ValueError):"},{"line_number":142,"context_line":"            LOG.warning(_LW(\"Invalid VXLAN Group: %s, must be an address \""},{"line_number":143,"context_line":"                            \"or network (in CIDR notation) in a multicast \""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a50d1a3_a5dfd6d4","line":140,"in_reply_to":"3a50d1a3_fceeda20","updated":"2015-07-28 16:01:21.000000000","message":"Done","commit_id":"16a77c18c0daf0616567da9fabf8ef431d76230c"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"fba567fd51e4acf81c419907aa3c3053ace36dc2","unresolved":false,"context_lines":[{"line_number":135,"context_line":"            net \u003d netaddr.IPNetwork(cfg.CONF.VXLAN.vxlan_group)"},{"line_number":136,"context_line":"            if not (net.network.is_multicast() and"},{"line_number":137,"context_line":"                    net.broadcast.is_multicast()):"},{"line_number":138,"context_line":"                raise ValueError()"},{"line_number":139,"context_line":"            # Map the segmentation ID to (one of) the group address(es)"},{"line_number":140,"context_line":"            return str(net.network + (int(segmentation_id) \u0026 int(net.hostmask)))"},{"line_number":141,"context_line":"        except (netaddr.core.AddrFormatError, ValueError):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_711d0cbd","line":138,"updated":"2015-07-28 17:08:05.000000000","message":"You may want to put a message in the ValueError to log that it wasn\u0027t a multicast address, or a LOG.error() to do this. Otherwise when someone looks at the stacktrace they won\u0027t know, at a glance.","commit_id":"b04cd9b6c1434a579d0258907616a4f976c0a9be"},{"author":{"_account_id":7018,"name":"Abhishek Raut","email":"rauta@vmware.com","username":"abhiraut"},"change_message_id":"ba478bae86c6767ebc9a794ddd75c5b5250a7ba3","unresolved":false,"context_lines":[{"line_number":135,"context_line":"            net \u003d netaddr.IPNetwork(cfg.CONF.VXLAN.vxlan_group)"},{"line_number":136,"context_line":"            if not (net.network.is_multicast() and"},{"line_number":137,"context_line":"                    net.broadcast.is_multicast()):"},{"line_number":138,"context_line":"                raise ValueError()"},{"line_number":139,"context_line":"            # Map the segmentation ID to (one of) the group address(es)"},{"line_number":140,"context_line":"            return str(net.network + (int(segmentation_id) \u0026 int(net.hostmask)))"},{"line_number":141,"context_line":"        except (netaddr.core.AddrFormatError, ValueError):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_9ca46f4b","line":138,"in_reply_to":"3a50d1a3_711d0cbd","updated":"2015-07-28 17:47:51.000000000","message":"ValueError is being caught below and is logged as a warning. Are you suggesting it be logged as an Error? or you missed the except block?","commit_id":"b04cd9b6c1434a579d0258907616a4f976c0a9be"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b40ed5c6a04699a604081bda8880a8d912b67602","unresolved":false,"context_lines":[{"line_number":135,"context_line":"            net \u003d netaddr.IPNetwork(cfg.CONF.VXLAN.vxlan_group)"},{"line_number":136,"context_line":"            if not (net.network.is_multicast() and"},{"line_number":137,"context_line":"                    net.broadcast.is_multicast()):"},{"line_number":138,"context_line":"                raise ValueError()"},{"line_number":139,"context_line":"            # Map the segmentation ID to (one of) the group address(es)"},{"line_number":140,"context_line":"            return str(net.network + (int(segmentation_id) \u0026 int(net.hostmask)))"},{"line_number":141,"context_line":"        except (netaddr.core.AddrFormatError, ValueError):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_13c84521","line":138,"in_reply_to":"3a50d1a3_711d0cbd","updated":"2015-07-28 20:35:38.000000000","message":"Whatever is in this ValueError won\u0027t show up anywhere because it is caught on line L139 and turned into a real warning message.","commit_id":"b04cd9b6c1434a579d0258907616a4f976c0a9be"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"a8903593e972d139d2c7868ef79d7554bbdcfa94","unresolved":false,"context_lines":[{"line_number":135,"context_line":"            net \u003d netaddr.IPNetwork(cfg.CONF.VXLAN.vxlan_group)"},{"line_number":136,"context_line":"            if not (net.network.is_multicast() and"},{"line_number":137,"context_line":"                    net.broadcast.is_multicast()):"},{"line_number":138,"context_line":"                raise ValueError()"},{"line_number":139,"context_line":"            # Map the segmentation ID to (one of) the group address(es)"},{"line_number":140,"context_line":"            return str(net.network + (int(segmentation_id) \u0026 int(net.hostmask)))"},{"line_number":141,"context_line":"        except (netaddr.core.AddrFormatError, ValueError):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_fde9ea7f","line":138,"in_reply_to":"3a50d1a3_9ca46f4b","updated":"2015-07-28 19:52:01.000000000","message":"imo, it\u0027s fine for the moment \n\nPS: i am assuming a following change will move vxlan_group check in agent startup (proposed in PS4)","commit_id":"b04cd9b6c1434a579d0258907616a4f976c0a9be"},{"author":{"_account_id":17471,"name":"John Nielsen","email":"john@jnielsen.net","username":"jnielsendotnet"},"change_message_id":"8689c6a6e3958e03a236af014c20f5c10638f92e","unresolved":false,"context_lines":[{"line_number":137,"context_line":"                    net.broadcast.is_multicast()):"},{"line_number":138,"context_line":"                raise ValueError()"},{"line_number":139,"context_line":"            # Map the segmentation ID to (one of) the group address(es)"},{"line_number":140,"context_line":"            return str(net.network + (int(segmentation_id) \u0026 int(net.hostmask)))"},{"line_number":141,"context_line":"        except (netaddr.core.AddrFormatError, ValueError):"},{"line_number":142,"context_line":"            LOG.warning(_LW(\"Invalid VXLAN Group: %s, must be an address \""},{"line_number":143,"context_line":"                            \"or network (in CIDR notation) in a multicast \""}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_be303157","line":140,"updated":"2015-07-29 00:27:31.000000000","message":"*sigh* line too long. Updating.","commit_id":"b04cd9b6c1434a579d0258907616a4f976c0a9be"}],"neutron/tests/unit/plugins/ml2/drivers/linuxbridge/agent/test_linuxbridge_neutron_agent.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"7870b7359ab722f02eeed13cf5e8059c48b85ac0","unresolved":false,"context_lines":[{"line_number":406,"context_line":"        vn_id \u003d 257"},{"line_number":407,"context_line":"        self.assertEqual(self.lbm.get_vxlan_group(vn_id), \u0027239.1.2.1\u0027)"},{"line_number":408,"context_line":"        cfg.CONF.set_override(\u0027vxlan_group\u0027,\u0027240.0.0.0\u0027)"},{"line_number":409,"context_line":"        self.assertIsNone(self.lbm.get_vxlan_group(vn_id)"},{"line_number":410,"context_line":"        cfg.CONF.set_override(\u0027vxlan_group\u0027,\u0027224.0.0.1/\u0027)"},{"line_number":411,"context_line":"        self.assertIsNone(self.lbm.get_vxlan_group(vn_id)"},{"line_number":412,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_dc5c907f","line":409,"updated":"2015-07-27 07:50:28.000000000","message":"Missing  close parens on these last two asserts.","commit_id":"a5a8f15f162ec5a735c020c7317970b4248ee602"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"dc9397925dd5fa46685845d8e15df4a8a0bf7583","unresolved":false,"context_lines":[{"line_number":400,"context_line":"    def test_get_vxlan_group(self):"},{"line_number":401,"context_line":"        cfg.CONF.set_override(\u0027vxlan_group\u0027, \u0027239.1.2.3/24\u0027)"},{"line_number":402,"context_line":"        vn_id \u003d p_const.MAX_VXLAN_VNI"},{"line_number":403,"context_line":"        self.assertEqual(self.lbm.get_vxlan_group(vn_id), \u0027239.1.2.255\u0027)"},{"line_number":404,"context_line":"        vn_id \u003d 256"},{"line_number":405,"context_line":"        self.assertEqual(self.lbm.get_vxlan_group(vn_id), \u0027239.1.2.0\u0027)"},{"line_number":406,"context_line":"        vn_id \u003d 257"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_20fbe27c","line":403,"updated":"2015-07-27 20:19:51.000000000","message":"it should be:\n\n  self.assertEqual(expected, observed)\n\nnot the opposite","commit_id":"ff32069d93fdf860d4b835b391e4dbb61e02592e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"f1519cf36ed7b213c1593f39aa7ba584172c3230","unresolved":false,"context_lines":[{"line_number":398,"context_line":"        self.assertIsNone(self.lbm.get_vxlan_device_name(vn_id + 1))"},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"    def test_get_vxlan_group(self):"},{"line_number":401,"context_line":"        cfg.CONF.set_override(\u0027vxlan_group\u0027, \u0027239.1.2.3/24\u0027)"},{"line_number":402,"context_line":"        vn_id \u003d p_const.MAX_VXLAN_VNI"},{"line_number":403,"context_line":"        self.assertEqual(\u0027239.1.2.255\u0027, self.lbm.get_vxlan_group(vn_id))"},{"line_number":404,"context_line":"        vn_id \u003d 256"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a50d1a3_9c3d5690","line":401,"updated":"2015-07-28 15:23:30.000000000","message":"these set_override calls are missing the config group that \u0027vxlan_group\u0027 belongs to.\n\nThey should be like the following:\n\ncfg.CONF.set_override(\u0027vxlan_group\u0027, \u0027239.1.2.3/24\u0027, \u0027VXLAN\u0027)","commit_id":"16a77c18c0daf0616567da9fabf8ef431d76230c"},{"author":{"_account_id":17471,"name":"John Nielsen","email":"john@jnielsen.net","username":"jnielsendotnet"},"change_message_id":"da470c050b36264bf991815135f03d16af3cbf87","unresolved":false,"context_lines":[{"line_number":398,"context_line":"        self.assertIsNone(self.lbm.get_vxlan_device_name(vn_id + 1))"},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"    def test_get_vxlan_group(self):"},{"line_number":401,"context_line":"        cfg.CONF.set_override(\u0027vxlan_group\u0027, \u0027239.1.2.3/24\u0027)"},{"line_number":402,"context_line":"        vn_id \u003d p_const.MAX_VXLAN_VNI"},{"line_number":403,"context_line":"        self.assertEqual(\u0027239.1.2.255\u0027, self.lbm.get_vxlan_group(vn_id))"},{"line_number":404,"context_line":"        vn_id \u003d 256"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a50d1a3_e5007e36","line":401,"in_reply_to":"3a50d1a3_9c3d5690","updated":"2015-07-28 16:01:21.000000000","message":"Done","commit_id":"16a77c18c0daf0616567da9fabf8ef431d76230c"}]}
