)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"367d11b44d3230d056456ab9cb81b6fb2f6c4c8e","unresolved":false,"context_lines":[{"line_number":14,"context_line":"This patch makes external networks have segments with network_type \u0027local\u0027"},{"line_number":15,"context_line":"when the provider attributes are not explicitly set."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"It also includes small code refactoring."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"DocImpact"},{"line_number":20,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":13,"id":"da86d52c_fd67814f","line":17,"updated":"2015-02-13 16:11:01.000000000","message":"Should probably add a mention of the new config variable.","commit_id":"0c4c8996a3632fccd752b5b8844aa2129e9e8439"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"802aca20be49ea75e605c5168a35c1d2d4737bc1","unresolved":false,"context_lines":[{"line_number":14,"context_line":"This patch makes external networks have segments with network_type \u0027local\u0027"},{"line_number":15,"context_line":"when the provider attributes are not explicitly set."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"It also includes small code refactoring."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"DocImpact"},{"line_number":20,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":13,"id":"da86d52c_652ae6e8","line":17,"in_reply_to":"da86d52c_ebf2579a","updated":"2015-02-16 11:21:39.000000000","message":"Done","commit_id":"0c4c8996a3632fccd752b5b8844aa2129e9e8439"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"8fbbacfdcd4f0deb0cfe16d9f8e8efd653473ab2","unresolved":false,"context_lines":[{"line_number":14,"context_line":"This patch makes external networks have segments with network_type \u0027local\u0027"},{"line_number":15,"context_line":"when the provider attributes are not explicitly set."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"It also includes small code refactoring."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"DocImpact"},{"line_number":20,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":13,"id":"da86d52c_ebf2579a","line":17,"in_reply_to":"da86d52c_fd67814f","updated":"2015-02-13 16:34:34.000000000","message":"Sure :)","commit_id":"0c4c8996a3632fccd752b5b8844aa2129e9e8439"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"d4bb5e706a67f7a1054ee2ca08a69fa19636900d","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Implementation:"},{"line_number":16,"context_line":"Added new boolean config variable \u0027external_network_type_local\u0027"},{"line_number":17,"context_line":"which contains the default network type \u0027local\u0027 for external networks"},{"line_number":18,"context_line":"when no provider attributes are specified."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"It also includes small code refactoring."},{"line_number":21,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"ba7be1f8_9668e2bb","line":18,"updated":"2015-02-23 14:04:44.000000000","message":"Setting local as default external network type works only when external_bridge is not None, otherwise it should be vlan ... so previous patchset defining external_network_types seems to address a larger scope.","commit_id":"14fb833bb6f7bcad0107a216b37a72cc6a836486"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"49033ef5130113588bbeb6ec3998c64f3ccac0ec","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Implementation:"},{"line_number":16,"context_line":"Added new boolean config variable \u0027external_network_type_local\u0027"},{"line_number":17,"context_line":"which contains the default network type \u0027local\u0027 for external networks"},{"line_number":18,"context_line":"when no provider attributes are specified."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"It also includes small code refactoring."},{"line_number":21,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"ba7be1f8_082ef1a4","line":18,"in_reply_to":"ba7be1f8_1e5ac029","updated":"2015-02-26 16:12:53.000000000","message":"I think this patch addresses the bug appropriately. I don\u0027t think the decision that ML2 has to make here is affected by the setting of external_network_bridge in the L3 agent config. Correct me if I am wrong.","commit_id":"14fb833bb6f7bcad0107a216b37a72cc6a836486"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"c668b0c0a2e7405a98e3eed1c7eca9e9fc642084","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Implementation:"},{"line_number":16,"context_line":"Added new boolean config variable \u0027external_network_type_local\u0027"},{"line_number":17,"context_line":"which contains the default network type \u0027local\u0027 for external networks"},{"line_number":18,"context_line":"when no provider attributes are specified."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"It also includes small code refactoring."},{"line_number":21,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"ba7be1f8_9b4fff6a","line":18,"in_reply_to":"ba7be1f8_9668e2bb","updated":"2015-02-24 12:33:13.000000000","message":"Hi Cedric,\n\nI feel this is the simplest way to handle this, here we are only handling a case where external_network_bridge is not None on l3 agent side. So, we are enabling this flag external_network_type_local on a server side because, in this case, external network type value should be \u0027local\u0027\n\nIf external_network_bridge is None  and external_network_type_local is False(by default) then it will take network_type and provider attributes based on tenant network type configured in ml2_conf.ini on a server side.","commit_id":"14fb833bb6f7bcad0107a216b37a72cc6a836486"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"172b9b5d47cd621a36da0fd9e2bc911fa3170d61","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Implementation:"},{"line_number":16,"context_line":"Added new boolean config variable \u0027external_network_type_local\u0027"},{"line_number":17,"context_line":"which contains the default network type \u0027local\u0027 for external networks"},{"line_number":18,"context_line":"when no provider attributes are specified."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"It also includes small code refactoring."},{"line_number":21,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"ba7be1f8_1e5ac029","line":18,"in_reply_to":"ba7be1f8_9b4fff6a","updated":"2015-02-26 06:16:27.000000000","message":"Hi Cedric,\n\nIf you have any suggestions then reply.","commit_id":"14fb833bb6f7bcad0107a216b37a72cc6a836486"},{"author":{"_account_id":8645,"name":"Trinath Somanchi","email":"trinath.somanchi@freescale.com","username":"trinaths"},"change_message_id":"a10ee6e226fa8a40510299734a41d9a99e9f935f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Aman Kumar \u003camank@hp.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-02-26 17:20:41 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"External Networks in ML2 have invalid providernet types"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Description:"},{"line_number":10,"context_line":"With the ML2 Plugin, every network created has segments with"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":18,"id":"ba7be1f8_345e8e13","line":7,"updated":"2015-02-27 06:52:22.000000000","message":"s/providernet/provider network/ might be?","commit_id":"fc8d4e46ffaca5e0cd9fb85f861852478c903561"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"e0b0ad0df38ca6d86c6201471d8c65dddc45dbf2","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Romil Gupta \u003cromilg@hp.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-03-12 08:11:15 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Added Flag for default External Networks type in ML2"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Description:"},{"line_number":10,"context_line":"With the ML2 Plugin, every network created has segments with"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":19,"id":"9a80dd14_89d6e2ef","line":7,"range":{"start_line":7,"start_character":6,"end_line":7,"end_character":10},"updated":"2015-03-12 16:17:36.000000000","message":"it\u0027s no longer a flag, right?","commit_id":"a2a22c8d6dfa08af4ee091142cc53fea0e989570"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"a15b321c07307eba5dc3e058a8909815fb5eb8d6","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Romil Gupta \u003cromilg@hp.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-03-12 08:11:15 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Added Flag for default External Networks type in ML2"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Description:"},{"line_number":10,"context_line":"With the ML2 Plugin, every network created has segments with"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":19,"id":"9a80dd14_bc8be21c","line":7,"in_reply_to":"9a80dd14_89d6e2ef","updated":"2015-03-12 16:32:00.000000000","message":"Earlier it was boolean flag. Now, it\u0027s a strings flag which expects the network_type.\n\nProbably, we could call it as config variable in ml2_conf.ini file.","commit_id":"a2a22c8d6dfa08af4ee091142cc53fea0e989570"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"c595c0be02199002f5b13f48dd20ef9cd8bfa829","unresolved":false,"context_lines":[{"line_number":17,"context_line":"which contains the default network type for external networks"},{"line_number":18,"context_line":"when no provider attributes are specified, by default it is None."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"It also includes small code re-factoring."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"DocImpact"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":19,"id":"9a80dd14_9ade1910","line":20,"updated":"2015-03-12 19:06:14.000000000","message":"@Armando: We have specified here in the commit message that it includes small code refactoring.","commit_id":"a2a22c8d6dfa08af4ee091142cc53fea0e989570"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"efe7d97872bafafba679b46bf0f67f0560089680","unresolved":false,"context_lines":[{"line_number":17,"context_line":"which contains the default network type for external networks"},{"line_number":18,"context_line":"when no provider attributes are specified, by default it is None."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"It also includes small code re-factoring."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"DocImpact"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":19,"id":"9a80dd14_e0ada885","line":20,"in_reply_to":"9a80dd14_9ade1910","updated":"2015-03-12 19:38:56.000000000","message":"renaming is not refactoring and its value is negligible IMO","commit_id":"a2a22c8d6dfa08af4ee091142cc53fea0e989570"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"336dfefd6a9afd76d6f5056ee3e8b480dfc3eefa","unresolved":false,"context_lines":[{"line_number":17,"context_line":"which contains the default network type for external networks"},{"line_number":18,"context_line":"when no provider attributes are specified, by default it is None."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"It also includes small code re-factoring."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"DocImpact"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":19,"id":"9a80dd14_1e6cc7cf","line":20,"in_reply_to":"9a80dd14_e0ada885","updated":"2015-03-13 04:34:42.000000000","message":"Unfortunately, we are discussing here for the negligible change instead of discussing for the actual fix :(","commit_id":"a2a22c8d6dfa08af4ee091142cc53fea0e989570"}],"etc/neutron/plugins/ml2/ml2_conf.ini":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"367d11b44d3230d056456ab9cb81b6fb2f6c4c8e","unresolved":false,"context_lines":[{"line_number":27,"context_line":"# Example: extension_drivers \u003d anewextensiondriver"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# (StrOpt) It specifies the default network type to allocate while creating"},{"line_number":30,"context_line":"# external network when no provider attributes are specified"},{"line_number":31,"context_line":"# external_network_type \u003d local"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"[ml2_type_flat]"}],"source_content_type":"text/x-properties","patch_set":13,"id":"da86d52c_5dba4d72","line":30,"updated":"2015-02-13 16:11:01.000000000","message":"\"The default network type for external networks when no provider attributes are specified.\"","commit_id":"0c4c8996a3632fccd752b5b8844aa2129e9e8439"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"d009b164144f7d8d3294d5077fbb9c5887beebdf","unresolved":false,"context_lines":[{"line_number":27,"context_line":"# Example: extension_drivers \u003d anewextensiondriver"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# (StrOpt) It specifies the default network type to allocate while creating"},{"line_number":30,"context_line":"# external network when no provider attributes are specified"},{"line_number":31,"context_line":"# external_network_type \u003d local"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"[ml2_type_flat]"}],"source_content_type":"text/x-properties","patch_set":13,"id":"da86d52c_cb6af31a","line":30,"in_reply_to":"da86d52c_5dba4d72","updated":"2015-02-13 16:39:40.000000000","message":"Done","commit_id":"0c4c8996a3632fccd752b5b8844aa2129e9e8439"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"0a071100e332897d9d4953a58b507988d3735b2b","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# (StrOpt) The default network type for external networks when no provider"},{"line_number":30,"context_line":"# attributes are specified"},{"line_number":31,"context_line":"# external_network_type \u003d local"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"[ml2_type_flat]"},{"line_number":34,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":14,"id":"da86d52c_7cd0a1f7","line":31,"updated":"2015-02-17 06:04:34.000000000","message":"please update this as the default is not local.","commit_id":"dd8fd702504c7cfe2eac26c2f80b0239d197d339"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"8a4f924f9ce6a8a41ee6955831925b68da5e55a9","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# (StrOpt) The default network type for external networks when no provider"},{"line_number":30,"context_line":"# attributes are specified"},{"line_number":31,"context_line":"# external_network_type \u003d local"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"[ml2_type_flat]"},{"line_number":34,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":14,"id":"da86d52c_c55c491c","line":31,"in_reply_to":"da86d52c_1cbfa561","updated":"2015-02-17 10:56:01.000000000","message":"Done","commit_id":"dd8fd702504c7cfe2eac26c2f80b0239d197d339"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"e1d48d4fe1c7420c52ce31c88c8f66c6cd958d75","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# (StrOpt) The default network type for external networks when no provider"},{"line_number":30,"context_line":"# attributes are specified"},{"line_number":31,"context_line":"# external_network_type \u003d local"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"[ml2_type_flat]"},{"line_number":34,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":14,"id":"da86d52c_1cbfa561","line":31,"in_reply_to":"da86d52c_7cd0a1f7","updated":"2015-02-17 06:14:05.000000000","message":"Ok, Shall we put it this way:\n\n  #  external_network_type \u003d \n  #  Example: external_network_type \u003d local","commit_id":"dd8fd702504c7cfe2eac26c2f80b0239d197d339"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"e50b5236839fdc894aae576c5fb136aa51d83541","unresolved":false,"context_lines":[{"line_number":27,"context_line":"# Example: extension_drivers \u003d anewextensiondriver"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# (StrOpt) The default network type for external networks when no provider"},{"line_number":30,"context_line":"# attributes are specified"},{"line_number":31,"context_line":"# external_network_type \u003d"},{"line_number":32,"context_line":"# Example: external_network_type \u003d local"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-properties","patch_set":15,"id":"da86d52c_dbbc29de","line":30,"updated":"2015-02-17 12:50:30.000000000","message":"I think it\u0027s important to be very clear here. Please add the following sentence:\n\n\"There is no default value, so if this setting is not specified then provider attributes must be provided when creating external networks.\"\n\n(Please use complete sentences ending with a period.)","commit_id":"d5935f3ddc199fabf1bb8fffe41ed7c8b9ade931"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"a68b75fc29c1032e4b7c177f83e9bc2cd3eb10a3","unresolved":false,"context_lines":[{"line_number":27,"context_line":"# Example: extension_drivers \u003d anewextensiondriver"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# (StrOpt) The default network type for external networks when no provider"},{"line_number":30,"context_line":"# attributes are specified"},{"line_number":31,"context_line":"# external_network_type \u003d"},{"line_number":32,"context_line":"# Example: external_network_type \u003d local"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-properties","patch_set":15,"id":"da86d52c_fe9e3b06","line":30,"in_reply_to":"da86d52c_1bd401bc","updated":"2015-02-17 13:28:48.000000000","message":"You are right, sorry, I was confusing things with provider networks.\n\nIf \u0027local\u0027 is the only allowed value here, then maybe it should be a boolean?\n\n  external_network_type_local \u003d False","commit_id":"d5935f3ddc199fabf1bb8fffe41ed7c8b9ade931"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"d6018806965e33fcc0aced7dd17fe42c80b95593","unresolved":false,"context_lines":[{"line_number":27,"context_line":"# Example: extension_drivers \u003d anewextensiondriver"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# (StrOpt) The default network type for external networks when no provider"},{"line_number":30,"context_line":"# attributes are specified"},{"line_number":31,"context_line":"# external_network_type \u003d"},{"line_number":32,"context_line":"# Example: external_network_type \u003d local"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-properties","patch_set":15,"id":"ba7be1f8_ebdbfb18","line":30,"in_reply_to":"da86d52c_21a8b4da","updated":"2015-02-23 13:47:31.000000000","message":"Done","commit_id":"d5935f3ddc199fabf1bb8fffe41ed7c8b9ade931"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"b0bd3552bd82e5f758a029f8183bf0e1e789a3eb","unresolved":false,"context_lines":[{"line_number":27,"context_line":"# Example: extension_drivers \u003d anewextensiondriver"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# (StrOpt) The default network type for external networks when no provider"},{"line_number":30,"context_line":"# attributes are specified"},{"line_number":31,"context_line":"# external_network_type \u003d"},{"line_number":32,"context_line":"# Example: external_network_type \u003d local"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-properties","patch_set":15,"id":"da86d52c_1bd401bc","line":30,"in_reply_to":"da86d52c_dbbc29de","updated":"2015-02-17 13:10:51.000000000","message":"I feel there is some confusion:\n\nwe should only allow users/deployers to configure:\n       external_network_type \u003d local\n\nLet\u0027s say, if users/deployers configure external_network_type with VLAN/VXLAN/GRE/FLAT then he/she must provide provider attributes while creating external networks.\n\nif external_network_type \u003d None(means not specified)  then its a legacy mode and take the network type from tenant_network_types.\n\nSo, this statement is creating confusion to me:\n\n\"There is no default value, so if this setting is not specified then provider attributes must be provided when creating external networks.\"\n\nActually it should be:\n\n\"There is no default value, so if this setting is not specified then it\u0027s a legacy mode and take the network type and provider attributes from tenant_network_types.\"\n\nPlease suggests.","commit_id":"d5935f3ddc199fabf1bb8fffe41ed7c8b9ade931"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"189e730e1955ee3d6fe7e82df4ca50efe3a05e1a","unresolved":false,"context_lines":[{"line_number":27,"context_line":"# Example: extension_drivers \u003d anewextensiondriver"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# (StrOpt) The default network type for external networks when no provider"},{"line_number":30,"context_line":"# attributes are specified"},{"line_number":31,"context_line":"# external_network_type \u003d"},{"line_number":32,"context_line":"# Example: external_network_type \u003d local"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-properties","patch_set":15,"id":"da86d52c_21a8b4da","line":30,"in_reply_to":"da86d52c_fe9e3b06","updated":"2015-02-17 13:34:16.000000000","message":"+1\n\nNice suggestion :)\n\nWe will update the patchset once Kevin and Bob share their thoughts.","commit_id":"d5935f3ddc199fabf1bb8fffe41ed7c8b9ade931"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"49033ef5130113588bbeb6ec3998c64f3ccac0ec","unresolved":false,"context_lines":[{"line_number":27,"context_line":"# Example: extension_drivers \u003d anewextensiondriver"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# (BoolOpt) The default network type for external networks when no provider"},{"line_number":30,"context_line":"# attributes are specified. By default it is False."},{"line_number":31,"context_line":"# external_network_type_local \u003d"},{"line_number":32,"context_line":"# Example: external_network_type_local \u003d True"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-properties","patch_set":16,"id":"ba7be1f8_743d8a8e","line":30,"updated":"2015-02-26 16:12:53.000000000","message":"This text should be changed. How about:\n\n  # (BoolOpt) Use network type \u0027local\u0027 for external networks when no\n  # provider attributes are specified. By default it is False, which\n  # means that if provider attributes are not specified when creating\n  # external networks then they will have the same type as tenant\n  # networks.","commit_id":"14fb833bb6f7bcad0107a216b37a72cc6a836486"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"77f2ed7471e07873b049bae5cbaec29096d7219f","unresolved":false,"context_lines":[{"line_number":27,"context_line":"# Example: extension_drivers \u003d anewextensiondriver"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"# (BoolOpt) The default network type for external networks when no provider"},{"line_number":30,"context_line":"# attributes are specified. By default it is False."},{"line_number":31,"context_line":"# external_network_type_local \u003d"},{"line_number":32,"context_line":"# Example: external_network_type_local \u003d True"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-properties","patch_set":16,"id":"ba7be1f8_38d30061","line":30,"in_reply_to":"ba7be1f8_743d8a8e","updated":"2015-02-26 16:58:16.000000000","message":"Done","commit_id":"14fb833bb6f7bcad0107a216b37a72cc6a836486"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"834dc3a78b33d9766f7f7c9d471ac8a7ea462fe1","unresolved":false,"context_lines":[{"line_number":32,"context_line":"# external networks then they will have the same type as tenant"},{"line_number":33,"context_line":"# networks."},{"line_number":34,"context_line":"# external_network_type_local \u003d"},{"line_number":35,"context_line":"# Example: external_network_type_local \u003d True"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"[ml2_type_flat]"},{"line_number":38,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":18,"id":"ba7be1f8_4778ac2b","line":35,"updated":"2015-02-27 11:26:40.000000000","message":"Please change this back to default_external_network_type.\n\nThere isn\u0027t a reason we have to force this to be local. Someone could have a setup where they want all normal tenant networks to use VXLAN, but then have external networks default to VLAN encapsulation. We should support that as well.","commit_id":"fc8d4e46ffaca5e0cd9fb85f861852478c903561"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"01c7be0544d75f260c674a191f0ceacbd6c20070","unresolved":false,"context_lines":[{"line_number":54,"context_line":"# that if provider attributes are not specified while creating external"},{"line_number":55,"context_line":"# networks then they will have the same type as tenant networks."},{"line_number":56,"context_line":"# external_network_type \u003d"},{"line_number":57,"context_line":"# Example: external_network_type \u003d local"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"[ml2_type_flat]"},{"line_number":60,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":26,"id":"1a6ced46_a4a40e58","line":57,"updated":"2015-03-23 09:49:19.000000000","message":"Probably, we could put this comment here:\n\n   # The possible value for external_network_type config variable\n   # could be local,flat,vlan,gre or vxlan.\n\nIt is not mandatory but just in case if we need to post another patchset. Don\u0027t forget to add this.\n\nThanks Praveen for suggesting this.","commit_id":"a44a05d0443ce5eeff2b6aa4567f74979da3da21"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"b91939bbb9eb200e6890be0fe5d07114f2e19f5b","unresolved":false,"context_lines":[{"line_number":54,"context_line":"# that if provider attributes are not specified while creating external"},{"line_number":55,"context_line":"# networks then they will have the same type as tenant networks."},{"line_number":56,"context_line":"# external_network_type \u003d"},{"line_number":57,"context_line":"# Example: external_network_type \u003d local"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"[ml2_type_flat]"},{"line_number":60,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":26,"id":"1a6ced46_ef3b3f36","line":57,"in_reply_to":"1a6ced46_a4a40e58","updated":"2015-03-23 10:01:15.000000000","message":"Ok, sure.","commit_id":"a44a05d0443ce5eeff2b6aa4567f74979da3da21"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"8eea75a5cabbedf1e0f4cb448d41d0659a668e7c","unresolved":false,"context_lines":[{"line_number":54,"context_line":"# that if provider attributes are not specified while creating external"},{"line_number":55,"context_line":"# networks then they will have the same type as tenant networks."},{"line_number":56,"context_line":"# external_network_type \u003d"},{"line_number":57,"context_line":"# Example: external_network_type \u003d local"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"[ml2_type_flat]"},{"line_number":60,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":27,"id":"1a6ced46_4443d56b","line":57,"updated":"2015-03-25 20:43:30.000000000","message":"I know this was discussed in the bug, but why not just default external networks to type local instead of adding this configuration variable here?","commit_id":"5edbe5552d23728ae18f8d5a0fe39a054bf1a2bd"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"929b7e474eca2042de183b7d4780f3242adb3ab5","unresolved":false,"context_lines":[{"line_number":54,"context_line":"# that if provider attributes are not specified while creating external"},{"line_number":55,"context_line":"# networks then they will have the same type as tenant networks."},{"line_number":56,"context_line":"# external_network_type \u003d"},{"line_number":57,"context_line":"# Example: external_network_type \u003d local"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"[ml2_type_flat]"},{"line_number":60,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":27,"id":"1a6ced46_318e0cd1","line":57,"in_reply_to":"1a6ced46_4443d56b","updated":"2015-03-26 05:15:19.000000000","message":"Please check the PS18 comments, Kevin Suggested not to set it \"local\" only.\n\nhttps://review.openstack.org/#/c/149546/18/etc/neutron/plugins/ml2/ml2_conf.ini\n\nhttps://review.openstack.org/#/c/149546/18/neutron/plugins/ml2/managers.py","commit_id":"5edbe5552d23728ae18f8d5a0fe39a054bf1a2bd"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"3a3fb1df50d63b4f25b9c3c1020d33345fe2343d","unresolved":false,"context_lines":[{"line_number":54,"context_line":"# that if provider attributes are not specified while creating external"},{"line_number":55,"context_line":"# networks then they will have the same type as tenant networks."},{"line_number":56,"context_line":"# external_network_type \u003d"},{"line_number":57,"context_line":"# Example: external_network_type \u003d local"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"[ml2_type_flat]"},{"line_number":60,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":27,"id":"fa963961_e46232d8","line":57,"in_reply_to":"1a6ced46_4443d56b","updated":"2015-03-27 08:09:28.000000000","message":"When using VLAN, it was more convenient to automatically have it default to VLAN. Treating external networks like normal networks was easier to understand in this case where we didn\u0027t use a separate external interface or anything like that.","commit_id":"5edbe5552d23728ae18f8d5a0fe39a054bf1a2bd"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"d21dded2a3aabdaa8bbaf4c05a98c74572bfb3ed","unresolved":false,"context_lines":[{"line_number":54,"context_line":"# that if provider attributes are not specified while creating external"},{"line_number":55,"context_line":"# networks then they will have the same type as tenant networks."},{"line_number":56,"context_line":"# external_network_type \u003d"},{"line_number":57,"context_line":"# Example: external_network_type \u003d local"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"[ml2_type_flat]"},{"line_number":60,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":28,"id":"da9b358b_65d4b91f","line":57,"updated":"2015-03-31 07:29:41.000000000","message":"Probably, we could add this:\n\n # The possible value for external_network_type config variable\n # could be local,flat,vlan,gre or vxlan.","commit_id":"05c0bf5883fed5807b8e5c43350d13754222e082"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"5e6e07f5c8a159cfe7afdb6461fe34b71542442a","unresolved":false,"context_lines":[{"line_number":52,"context_line":"# (StrOpt) Default network type for external networks when no"},{"line_number":53,"context_line":"# provider attributes are specified. By default it is None, which means"},{"line_number":54,"context_line":"# that if provider attributes are not specified while creating external"},{"line_number":55,"context_line":"# networks then they will have the same type as tenant networks."},{"line_number":56,"context_line":"# external_network_type \u003d"},{"line_number":57,"context_line":"# Example: external_network_type \u003d local"},{"line_number":58,"context_line":"# The possible value for external_network_type config variable"}],"source_content_type":"text/x-properties","patch_set":34,"id":"9aa53dc9_b679eb95","line":55,"updated":"2015-04-07 15:16:48.000000000","message":"@Aman: Add it here and remove line 58 and 59.","commit_id":"12c95479edcb4c2bbdb1c9d84b4ddd7204fd21ec"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c4f0f76f2d74166e516cf53df7f96cefd47f0d65","unresolved":false,"context_lines":[{"line_number":56,"context_line":"# external_network_type \u003d"},{"line_number":57,"context_line":"# Example: external_network_type \u003d local"},{"line_number":58,"context_line":"# The possible value for external_network_type config variable"},{"line_number":59,"context_line":"# could be local,flat,vlan,gre or vxlan."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"[ml2_type_flat]"},{"line_number":62,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":34,"id":"9aa53dc9_6114c443","line":59,"updated":"2015-04-07 14:16:13.000000000","message":"allowed values depend on enabled type drivers (type_drivers option).","commit_id":"12c95479edcb4c2bbdb1c9d84b4ddd7204fd21ec"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"d3bdc22bb7306ab842a0e80fa55dc8fcfa97ac31","unresolved":false,"context_lines":[{"line_number":56,"context_line":"# external_network_type \u003d"},{"line_number":57,"context_line":"# Example: external_network_type \u003d local"},{"line_number":58,"context_line":"# The possible value for external_network_type config variable"},{"line_number":59,"context_line":"# could be local,flat,vlan,gre or vxlan."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"[ml2_type_flat]"},{"line_number":62,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":34,"id":"9aa53dc9_a7589cfb","line":59,"in_reply_to":"9aa53dc9_5cb08343","updated":"2015-04-07 14:50:37.000000000","message":"Yes, but\n\n  # Allowed values ...","commit_id":"12c95479edcb4c2bbdb1c9d84b4ddd7204fd21ec"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"5e77dbd35e01cf64f282ef2ee2be352d0fb1ef17","unresolved":false,"context_lines":[{"line_number":56,"context_line":"# external_network_type \u003d"},{"line_number":57,"context_line":"# Example: external_network_type \u003d local"},{"line_number":58,"context_line":"# The possible value for external_network_type config variable"},{"line_number":59,"context_line":"# could be local,flat,vlan,gre or vxlan."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"[ml2_type_flat]"},{"line_number":62,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":34,"id":"9aa53dc9_5cb08343","line":59,"in_reply_to":"9aa53dc9_6114c443","updated":"2015-04-07 14:42:46.000000000","message":"Is this fine?\n\n  # The allowed value for external_network_type config variable\n  # depend on the network type values configured in type_drivers\n  # config option.","commit_id":"12c95479edcb4c2bbdb1c9d84b4ddd7204fd21ec"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"5e6e07f5c8a159cfe7afdb6461fe34b71542442a","unresolved":false,"context_lines":[{"line_number":56,"context_line":"# external_network_type \u003d"},{"line_number":57,"context_line":"# Example: external_network_type \u003d local"},{"line_number":58,"context_line":"# The possible value for external_network_type config variable"},{"line_number":59,"context_line":"# could be local,flat,vlan,gre or vxlan."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"[ml2_type_flat]"},{"line_number":62,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":34,"id":"9aa53dc9_563bbfd1","line":59,"in_reply_to":"9aa53dc9_a7589cfb","updated":"2015-04-07 15:16:48.000000000","message":"Ok,\n\n  # Allowed values for external_network_type config option\n  # depend on the network type values configured in type_drivers\n  # config option.","commit_id":"12c95479edcb4c2bbdb1c9d84b4ddd7204fd21ec"}],"neutron/plugins/ml2/config.py":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"367d11b44d3230d056456ab9cb81b6fb2f6c4c8e","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    cfg.StrOpt(\u0027external_network_type\u0027, default\u003d\"\","},{"line_number":39,"context_line":"               help\u003d_(\"It specifies the default network type to allocate \""},{"line_number":40,"context_line":"                      \"while creating external network when no provider \""},{"line_number":41,"context_line":"                      \" attributes are specified\"))"},{"line_number":42,"context_line":"]"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_3da59947","line":41,"updated":"2015-02-13 16:11:01.000000000","message":"\"The default network type for external networks when no provider attributes are specified.\"","commit_id":"0c4c8996a3632fccd752b5b8844aa2129e9e8439"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"d009b164144f7d8d3294d5077fbb9c5887beebdf","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    cfg.StrOpt(\u0027external_network_type\u0027, default\u003d\"\","},{"line_number":39,"context_line":"               help\u003d_(\"It specifies the default network type to allocate \""},{"line_number":40,"context_line":"                      \"while creating external network when no provider \""},{"line_number":41,"context_line":"                      \" attributes are specified\"))"},{"line_number":42,"context_line":"]"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_2b1b8fcb","line":41,"in_reply_to":"da86d52c_3da59947","updated":"2015-02-13 16:39:40.000000000","message":"Done","commit_id":"0c4c8996a3632fccd752b5b8844aa2129e9e8439"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"e50b5236839fdc894aae576c5fb136aa51d83541","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    cfg.StrOpt(\u0027external_network_type\u0027,"},{"line_number":39,"context_line":"               default\u003d\"\","},{"line_number":40,"context_line":"               help\u003d_(\"The default network type for external networks when\""},{"line_number":41,"context_line":"                      \"no provider attributes are specified\"))"},{"line_number":42,"context_line":"]"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"da86d52c_bba055a6","line":41,"updated":"2015-02-17 12:50:30.000000000","message":"Nit: Please end the sentence with a period.","commit_id":"d5935f3ddc199fabf1bb8fffe41ed7c8b9ade931"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"b0bd3552bd82e5f758a029f8183bf0e1e789a3eb","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    cfg.StrOpt(\u0027external_network_type\u0027,"},{"line_number":39,"context_line":"               default\u003d\"\","},{"line_number":40,"context_line":"               help\u003d_(\"The default network type for external networks when\""},{"line_number":41,"context_line":"                      \"no provider attributes are specified\"))"},{"line_number":42,"context_line":"]"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"da86d52c_de76d7a2","line":41,"in_reply_to":"da86d52c_bba055a6","updated":"2015-02-17 13:10:51.000000000","message":"Done","commit_id":"d5935f3ddc199fabf1bb8fffe41ed7c8b9ade931"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"49033ef5130113588bbeb6ec3998c64f3ccac0ec","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    cfg.BoolOpt(\u0027external_network_type_local\u0027,"},{"line_number":39,"context_line":"                default\u003dFalse,"},{"line_number":40,"context_line":"                help\u003d_(\"The default network type for external networks when\""},{"line_number":41,"context_line":"                       \"no provider attributes are specified.\"))"},{"line_number":42,"context_line":"]"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"ba7be1f8_94dcbe47","line":41,"updated":"2015-02-26 16:12:53.000000000","message":"\"Use network type \u0027local\u0027 for external networks when no provider attributes are specified.\"","commit_id":"14fb833bb6f7bcad0107a216b37a72cc6a836486"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"77f2ed7471e07873b049bae5cbaec29096d7219f","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    cfg.BoolOpt(\u0027external_network_type_local\u0027,"},{"line_number":39,"context_line":"                default\u003dFalse,"},{"line_number":40,"context_line":"                help\u003d_(\"The default network type for external networks when\""},{"line_number":41,"context_line":"                       \"no provider attributes are specified.\"))"},{"line_number":42,"context_line":"]"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"ba7be1f8_b8dff067","line":41,"in_reply_to":"ba7be1f8_94dcbe47","updated":"2015-02-26 16:58:16.000000000","message":"Done","commit_id":"14fb833bb6f7bcad0107a216b37a72cc6a836486"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"ecf3e277cab82e430444ada2d88dfe91bb60a264","unresolved":false,"context_lines":[{"line_number":36,"context_line":"                       \"entrypoints to be loaded from the \""},{"line_number":37,"context_line":"                       \"neutron.ml2.extension_drivers namespace.\")),"},{"line_number":38,"context_line":"    cfg.StrOpt(\u0027external_network_type\u0027,"},{"line_number":39,"context_line":"               default\u003d\"\","},{"line_number":40,"context_line":"               help\u003d_(\"Default network type for external networks \""},{"line_number":41,"context_line":"                      \"when no provider attributes are specified.\"))"},{"line_number":42,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":19,"id":"9a80dd14_89c34256","line":39,"updated":"2015-03-12 16:16:35.000000000","message":"IMO None is better.","commit_id":"a2a22c8d6dfa08af4ee091142cc53fea0e989570"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"ed11349b39e5823b1c398513bc8e9a03c6c6c4ad","unresolved":false,"context_lines":[{"line_number":36,"context_line":"                       \"entrypoints to be loaded from the \""},{"line_number":37,"context_line":"                       \"neutron.ml2.extension_drivers namespace.\")),"},{"line_number":38,"context_line":"    cfg.StrOpt(\u0027external_network_type\u0027,"},{"line_number":39,"context_line":"               default\u003dNone,"},{"line_number":40,"context_line":"               help\u003d_(\"Default network type for external networks \""},{"line_number":41,"context_line":"                      \"when no provider attributes are specified.\"))"},{"line_number":42,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":20,"id":"9a80dd14_dc8dd2d4","line":39,"updated":"2015-03-13 09:10:11.000000000","message":"None is the default value of the default argument.\nyou can just omit it.","commit_id":"0f01c8a10905d3176837c450e450b673cbf54fff"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"7ad123a92a84c92741b9d1bc27b68a76b62cc904","unresolved":false,"context_lines":[{"line_number":36,"context_line":"                       \"entrypoints to be loaded from the \""},{"line_number":37,"context_line":"                       \"neutron.ml2.extension_drivers namespace.\")),"},{"line_number":38,"context_line":"    cfg.StrOpt(\u0027external_network_type\u0027,"},{"line_number":39,"context_line":"               default\u003d\"\","},{"line_number":40,"context_line":"               help\u003d_(\"Default network type for external networks \""},{"line_number":41,"context_line":"                      \"when no provider attributes are specified.\"))"},{"line_number":42,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a80dd14_8f8af918","line":39,"updated":"2015-03-16 07:10:40.000000000","message":"is it intentional to make this back from None to \"\"?","commit_id":"85a9491e296a6748ac5fe4f0d6ec9bcdadbc40cb"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"62bdd9496f27d0e66df5b77c5f6c0ba9e502cec2","unresolved":false,"context_lines":[{"line_number":36,"context_line":"                       \"entrypoints to be loaded from the \""},{"line_number":37,"context_line":"                       \"neutron.ml2.extension_drivers namespace.\")),"},{"line_number":38,"context_line":"    cfg.StrOpt(\u0027external_network_type\u0027,"},{"line_number":39,"context_line":"               default\u003d\"\","},{"line_number":40,"context_line":"               help\u003d_(\"Default network type for external networks \""},{"line_number":41,"context_line":"                      \"when no provider attributes are specified.\"))"},{"line_number":42,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a80dd14_f510a401","line":39,"in_reply_to":"9a80dd14_8a84a75e","updated":"2015-03-16 08:21:31.000000000","message":"Sorry i misunderstood.\nI will change in next PS if any other changes required :-)","commit_id":"85a9491e296a6748ac5fe4f0d6ec9bcdadbc40cb"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"daaa7a4bd1ea40fc4742b232fd66badaaae44e54","unresolved":false,"context_lines":[{"line_number":36,"context_line":"                       \"entrypoints to be loaded from the \""},{"line_number":37,"context_line":"                       \"neutron.ml2.extension_drivers namespace.\")),"},{"line_number":38,"context_line":"    cfg.StrOpt(\u0027external_network_type\u0027,"},{"line_number":39,"context_line":"               default\u003d\"\","},{"line_number":40,"context_line":"               help\u003d_(\"Default network type for external networks \""},{"line_number":41,"context_line":"                      \"when no provider attributes are specified.\"))"},{"line_number":42,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a80dd14_af309d56","line":39,"in_reply_to":"9a80dd14_8f8af918","updated":"2015-03-16 07:15:50.000000000","message":"In PS20 you said \"None is the default value of the default argument. you can just omit it.\"\nSo, I thought you asked to remove it again.","commit_id":"85a9491e296a6748ac5fe4f0d6ec9bcdadbc40cb"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"acab3601a07652015bff89a93e7241ae22c90169","unresolved":false,"context_lines":[{"line_number":36,"context_line":"                       \"entrypoints to be loaded from the \""},{"line_number":37,"context_line":"                       \"neutron.ml2.extension_drivers namespace.\")),"},{"line_number":38,"context_line":"    cfg.StrOpt(\u0027external_network_type\u0027,"},{"line_number":39,"context_line":"               default\u003d\"\","},{"line_number":40,"context_line":"               help\u003d_(\"Default network type for external networks \""},{"line_number":41,"context_line":"                      \"when no provider attributes are specified.\"))"},{"line_number":42,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a80dd14_8a84a75e","line":39,"in_reply_to":"9a80dd14_af309d56","updated":"2015-03-16 07:31:15.000000000","message":"i meant\nStrOpt(\u0027external_network_type\u0027, default\u003dNone, help\u003d...)\nis same as\nStrOpt(\u0027external_network_type\u0027, help\u003d...)","commit_id":"85a9491e296a6748ac5fe4f0d6ec9bcdadbc40cb"},{"author":{"_account_id":11546,"name":"Praveen Kumar SM","email":"praveen-sm.kumar@hpe.com","username":"praveen-sm-kumar"},"change_message_id":"0bad100500f6b354a129365653f54ecfcacfc9be","unresolved":false,"context_lines":[{"line_number":53,"context_line":"                       \"differs from the default segment_mtu value.\")),"},{"line_number":54,"context_line":"    cfg.StrOpt(\u0027external_network_type\u0027,"},{"line_number":55,"context_line":"               help\u003d_(\"Default network type for external networks \""},{"line_number":56,"context_line":"                      \"when no provider attributes are specified.\"))"},{"line_number":57,"context_line":"]"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"7a75e904_007ebaae","line":56,"updated":"2015-03-21 15:00:04.000000000","message":"help message here needs to be consistent with ml2_conf.ini","commit_id":"6e4d1c35f8f8a38d76176bbbac03ea0164b75600"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"ee86f7d1cd88e066bb3b3d959ff2c6a29343ef41","unresolved":false,"context_lines":[{"line_number":53,"context_line":"                       \"differs from the default segment_mtu value.\")),"},{"line_number":54,"context_line":"    cfg.StrOpt(\u0027external_network_type\u0027,"},{"line_number":55,"context_line":"               help\u003d_(\"Default network type for external networks \""},{"line_number":56,"context_line":"                      \"when no provider attributes are specified.\"))"},{"line_number":57,"context_line":"]"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"1a6ced46_c38f5674","line":56,"in_reply_to":"1a6ced46_a3ab3ad5","updated":"2015-03-21 16:28:54.000000000","message":"Ok, We will update it.\nThanks for the reference link :)","commit_id":"6e4d1c35f8f8a38d76176bbbac03ea0164b75600"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"7de4c9c4c12ea47975068713b8361ecbeae4c062","unresolved":false,"context_lines":[{"line_number":53,"context_line":"                       \"differs from the default segment_mtu value.\")),"},{"line_number":54,"context_line":"    cfg.StrOpt(\u0027external_network_type\u0027,"},{"line_number":55,"context_line":"               help\u003d_(\"Default network type for external networks \""},{"line_number":56,"context_line":"                      \"when no provider attributes are specified.\"))"},{"line_number":57,"context_line":"]"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"1a6ced46_95abc288","line":56,"in_reply_to":"1a6ced46_c38f5674","updated":"2015-03-23 07:18:20.000000000","message":"Done","commit_id":"6e4d1c35f8f8a38d76176bbbac03ea0164b75600"},{"author":{"_account_id":11546,"name":"Praveen Kumar SM","email":"praveen-sm.kumar@hpe.com","username":"praveen-sm-kumar"},"change_message_id":"78fef22269ca47a24347c4da2e6d3942a2abe629","unresolved":false,"context_lines":[{"line_number":53,"context_line":"                       \"differs from the default segment_mtu value.\")),"},{"line_number":54,"context_line":"    cfg.StrOpt(\u0027external_network_type\u0027,"},{"line_number":55,"context_line":"               help\u003d_(\"Default network type for external networks \""},{"line_number":56,"context_line":"                      \"when no provider attributes are specified.\"))"},{"line_number":57,"context_line":"]"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"1a6ced46_a3ab3ad5","line":56,"in_reply_to":"7a75e904_007ebaae","updated":"2015-03-21 16:12:28.000000000","message":"It is nice to maintain same message in help and ml2_conf.ini so that user will not get confused by seeing different messages in different places.\nAlso if there is more information in one place that means we need to rethink about adding that extra information here also.\n\nPlease refer to comments in below file\nhttps://review.openstack.org/#/c/137017/7/etc/dhcp_agent.ini","commit_id":"6e4d1c35f8f8a38d76176bbbac03ea0164b75600"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"5e6e07f5c8a159cfe7afdb6461fe34b71542442a","unresolved":false,"context_lines":[{"line_number":57,"context_line":"                      \"it is None, which means that if provider attributes \""},{"line_number":58,"context_line":"                      \"are not specified while creating external networks \""},{"line_number":59,"context_line":"                      \"then they will have the same type as tenant \""},{"line_number":60,"context_line":"                      \"networks.\"))"},{"line_number":61,"context_line":"]"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"9aa53dc9_76aa43d6","line":60,"updated":"2015-04-07 15:16:48.000000000","message":"Add here also, if you feel so.","commit_id":"12c95479edcb4c2bbdb1c9d84b4ddd7204fd21ec"}],"neutron/plugins/ml2/managers.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"2603ec56976c457f1adb6b2c08d5da3051ce2536","unresolved":false,"context_lines":[{"line_number":35,"context_line":"class TypeManager(stevedore.named.NamedExtensionManager):"},{"line_number":36,"context_line":"    \"\"\"Manage network segment types using drivers.\"\"\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def __init__(self, required_types\u003d[]):"},{"line_number":39,"context_line":"        # Mapping from type name to DriverManager"},{"line_number":40,"context_line":"        self.drivers \u003d {}"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_556e5330","line":38,"updated":"2015-01-23 12:39:17.000000000","message":"mutables as default arguments value should be avoided","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"5329adacf033cf09c6d3dfefe4603c28d4069882","unresolved":false,"context_lines":[{"line_number":35,"context_line":"class TypeManager(stevedore.named.NamedExtensionManager):"},{"line_number":36,"context_line":"    \"\"\"Manage network segment types using drivers.\"\"\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def __init__(self, required_types\u003d[]):"},{"line_number":39,"context_line":"        # Mapping from type name to DriverManager"},{"line_number":40,"context_line":"        self.drivers \u003d {}"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_870b0c29","line":38,"in_reply_to":"1a930d6b_556e5330","updated":"2015-01-25 19:20:49.000000000","message":"+1","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"6683734553469364e3d70cf1edf45d4059619658","unresolved":false,"context_lines":[{"line_number":35,"context_line":"class TypeManager(stevedore.named.NamedExtensionManager):"},{"line_number":36,"context_line":"    \"\"\"Manage network segment types using drivers.\"\"\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def __init__(self, required_types\u003d[]):"},{"line_number":39,"context_line":"        # Mapping from type name to DriverManager"},{"line_number":40,"context_line":"        self.drivers \u003d {}"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_876bc783","line":38,"in_reply_to":"1a930d6b_556e5330","updated":"2015-01-27 12:51:02.000000000","message":"Done","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"6683734553469364e3d70cf1edf45d4059619658","unresolved":false,"context_lines":[{"line_number":35,"context_line":"class TypeManager(stevedore.named.NamedExtensionManager):"},{"line_number":36,"context_line":"    \"\"\"Manage network segment types using drivers.\"\"\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def __init__(self, required_types\u003d[]):"},{"line_number":39,"context_line":"        # Mapping from type name to DriverManager"},{"line_number":40,"context_line":"        self.drivers \u003d {}"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_a76603b9","line":38,"in_reply_to":"1a930d6b_870b0c29","updated":"2015-01-27 12:51:02.000000000","message":"Done","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"5329adacf033cf09c6d3dfefe4603c28d4069882","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def __init__(self, required_types\u003d[]):"},{"line_number":39,"context_line":"        # Mapping from type name to DriverManager"},{"line_number":40,"context_line":"        self.drivers \u003d {}"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"        LOG.info(_LI(\"Configured type driver names: %s\"),"},{"line_number":43,"context_line":"                 cfg.CONF.ml2.type_drivers)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_623c4ec9","line":40,"updated":"2015-01-25 19:20:49.000000000","message":"@Aman: Could you please answer who is updating the drivers dict.","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"5329adacf033cf09c6d3dfefe4603c28d4069882","unresolved":false,"context_lines":[{"line_number":113,"context_line":"                                                  provider.SEGMENTATION_ID)"},{"line_number":114,"context_line":"            if self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":115,"context_line":"                if not network_type:"},{"line_number":116,"context_line":"                    network_type \u003d service_constants.TYPE_LOCAL"},{"line_number":117,"context_line":"            segments \u003d [{provider.NETWORK_TYPE: network_type,"},{"line_number":118,"context_line":"                         provider.PHYSICAL_NETWORK: physical_network,"},{"line_number":119,"context_line":"                         provider.SEGMENTATION_ID: segmentation_id}]"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_96433b41","line":116,"updated":"2015-01-25 19:20:49.000000000","message":"Why we have this condition here?","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"6683734553469364e3d70cf1edf45d4059619658","unresolved":false,"context_lines":[{"line_number":113,"context_line":"                                                  provider.SEGMENTATION_ID)"},{"line_number":114,"context_line":"            if self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":115,"context_line":"                if not network_type:"},{"line_number":116,"context_line":"                    network_type \u003d service_constants.TYPE_LOCAL"},{"line_number":117,"context_line":"            segments \u003d [{provider.NETWORK_TYPE: network_type,"},{"line_number":118,"context_line":"                         provider.PHYSICAL_NETWORK: physical_network,"},{"line_number":119,"context_line":"                         provider.SEGMENTATION_ID: segmentation_id}]"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_0758b7f8","line":116,"in_reply_to":"1a930d6b_96433b41","updated":"2015-01-27 12:51:02.000000000","message":"Done","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"91257c18a836ed292a454434a674e420cb2b05ba","unresolved":false,"context_lines":[{"line_number":113,"context_line":"                                                  provider.SEGMENTATION_ID)"},{"line_number":114,"context_line":"            if self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":115,"context_line":"                if not network_type:"},{"line_number":116,"context_line":"                    network_type \u003d service_constants.TYPE_LOCAL"},{"line_number":117,"context_line":"            segments \u003d [{provider.NETWORK_TYPE: network_type,"},{"line_number":118,"context_line":"                         provider.PHYSICAL_NETWORK: physical_network,"},{"line_number":119,"context_line":"                         provider.SEGMENTATION_ID: segmentation_id}]"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa81d914_ad8873e8","line":116,"in_reply_to":"1a930d6b_96433b41","updated":"2015-01-28 05:40:18.000000000","message":"it\u0027s not required, i have updated in patch set 3","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"2603ec56976c457f1adb6b2c08d5da3051ce2536","unresolved":false,"context_lines":[{"line_number":122,"context_line":"            segments \u003d [self._process_provider_segment(s)"},{"line_number":123,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":124,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":125,"context_line":"            segments \u003d [self._process_provider_segment(s)"},{"line_number":126,"context_line":"                        for s in[{provider.NETWORK_TYPE:"},{"line_number":127,"context_line":"                                  service_constants.TYPE_LOCAL,"},{"line_number":128,"context_line":"                                  provider.SEGMENTATION_ID: None}]]"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_155ccb7d","line":125,"updated":"2015-01-23 12:39:17.000000000","message":"iiuc, you are iterating on a list with length \u003d\u003d 1? O_o","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"6683734553469364e3d70cf1edf45d4059619658","unresolved":false,"context_lines":[{"line_number":122,"context_line":"            segments \u003d [self._process_provider_segment(s)"},{"line_number":123,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":124,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":125,"context_line":"            segments \u003d [self._process_provider_segment(s)"},{"line_number":126,"context_line":"                        for s in[{provider.NETWORK_TYPE:"},{"line_number":127,"context_line":"                                  service_constants.TYPE_LOCAL,"},{"line_number":128,"context_line":"                                  provider.SEGMENTATION_ID: None}]]"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_c72f8f3d","line":125,"in_reply_to":"1a930d6b_155ccb7d","updated":"2015-01-27 12:51:02.000000000","message":"Done","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"5329adacf033cf09c6d3dfefe4603c28d4069882","unresolved":false,"context_lines":[{"line_number":130,"context_line":"                                           self.is_partial_segment)"},{"line_number":131,"context_line":"        else:"},{"line_number":132,"context_line":"            return"},{"line_number":133,"context_line":"        return segments"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def _get_attribute(self, attrs, key):"},{"line_number":136,"context_line":"        value \u003d attrs.get(key)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_d6494361","line":133,"updated":"2015-01-25 19:20:49.000000000","message":"Will this work?\n\n    def _process_provider_create(self, network):\n        if any(attributes.is_attr_set(network.get(f))\n               for f in (provider.NETWORK_TYPE, provider.PHYSICAL_NETWORK,\n                         provider.SEGMENTATION_ID)):\n            # Verify that multiprovider and provider attributes are not set\n            # at the same time.\n            if attributes.is_attr_set(network.get(mpnet.SEGMENTS)):\n                raise mpnet.SegmentsSetInConjunctionWithProviders()\n\n            network_type \u003d self._get_attribute(network, provider.NETWORK_TYPE)\n            physical_network \u003d self._get_attribute(network,\n                                                   provider.PHYSICAL_NETWORK)\n            segmentation_id \u003d self._get_attribute(network,\n                                                  provider.SEGMENTATION_ID)\n            segments \u003d [{provider.NETWORK_TYPE: network_type,\n                         provider.PHYSICAL_NETWORK: physical_network,\n                         provider.SEGMENTATION_ID: segmentation_id}]\n            return [self._process_provider_segment(s) for s in segments]\n        elif attributes.is_attr_set(network.get(mpnet.SEGMENTS)):\n            segments \u003d [self._process_provider_segment(s)\n                        for s in network[mpnet.SEGMENTS]]\n            mpnet.check_duplicate_segments(\n                segments,\n                self.is_partial_segment)\n            return segments\n        elif self._get_attribute(network, external_net.EXTERNAL):\n            segments \u003d [{provider.NETWORK_TYPE: service_constants.TYPE_LOCAL,\n                         provider.PHYSICAL_NETWORK: None,\n                         provider.SEGMENTATION_ID: None}]\n            return [self._process_provider_segment(s) for s in segments]","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"7c6e8c6c17867c9a67e12d09f49d13ca72e5af0a","unresolved":false,"context_lines":[{"line_number":130,"context_line":"                                           self.is_partial_segment)"},{"line_number":131,"context_line":"        else:"},{"line_number":132,"context_line":"            return"},{"line_number":133,"context_line":"        return segments"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def _get_attribute(self, attrs, key):"},{"line_number":136,"context_line":"        value \u003d attrs.get(key)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa81d914_add6b3c3","line":133,"in_reply_to":"1a930d6b_d6494361","updated":"2015-01-28 05:41:23.000000000","message":"Done","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"b2faa378029a1165d1cf08301eed376091b163a6","unresolved":false,"context_lines":[{"line_number":35,"context_line":"class TypeManager(stevedore.named.NamedExtensionManager):"},{"line_number":36,"context_line":"    \"\"\"Manage network segment types using drivers.\"\"\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def __init__(self, required_types\u003d[]):"},{"line_number":39,"context_line":"        # Mapping from type name to DriverManager"},{"line_number":40,"context_line":"        self.drivers \u003d {}"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a930d6b_687b438c","line":38,"updated":"2015-01-26 10:33:01.000000000","message":"it is not good practice to use mutables arguments by default","commit_id":"c517260ccf631eaf8bc5d12518bd1836c746608e"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"86c7a8785899d352cde20a9348ce9c55b5001ee3","unresolved":false,"context_lines":[{"line_number":35,"context_line":"class TypeManager(stevedore.named.NamedExtensionManager):"},{"line_number":36,"context_line":"    \"\"\"Manage network segment types using drivers.\"\"\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def __init__(self, required_types\u003d[]):"},{"line_number":39,"context_line":"        # Mapping from type name to DriverManager"},{"line_number":40,"context_line":"        self.drivers \u003d {}"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a930d6b_e7a72bbb","line":38,"in_reply_to":"1a930d6b_687b438c","updated":"2015-01-27 12:51:27.000000000","message":"Done","commit_id":"c517260ccf631eaf8bc5d12518bd1836c746608e"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"3896b0d808d5ae80b322a10f51abb266695c2309","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                                cfg.CONF.ml2.type_drivers]"},{"line_number":53,"context_line":"        LOG.info(_LI(\u0027Missing Type drivers to be added: %s\u0027),"},{"line_number":54,"context_line":"                 missing_type_drivers)"},{"line_number":55,"context_line":"        type_driver_list \u003d cfg.CONF.ml2.type_drivers + missing_type_drivers"},{"line_number":56,"context_line":"        super(TypeManager, self).__init__(\u0027neutron.ml2.type_drivers\u0027,"},{"line_number":57,"context_line":"                                          type_driver_list,"},{"line_number":58,"context_line":"                                          invoke_on_load\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa81d914_53b6b53e","line":55,"updated":"2015-01-28 08:10:15.000000000","message":"IMO it\u0027s too \"kind\" to load type_local automatically.\nit\u0027s a matter of documentation.","commit_id":"42e27f413cdf711d99e151e5a1a0592f1dafb8b8"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"624782061f73f9a88d11b06bc217b42570de686e","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                                cfg.CONF.ml2.type_drivers]"},{"line_number":53,"context_line":"        LOG.info(_LI(\u0027Missing Type drivers to be added: %s\u0027),"},{"line_number":54,"context_line":"                 missing_type_drivers)"},{"line_number":55,"context_line":"        type_driver_list \u003d cfg.CONF.ml2.type_drivers + missing_type_drivers"},{"line_number":56,"context_line":"        super(TypeManager, self).__init__(\u0027neutron.ml2.type_drivers\u0027,"},{"line_number":57,"context_line":"                                          type_driver_list,"},{"line_number":58,"context_line":"                                          invoke_on_load\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa81d914_6ed02e54","line":55,"in_reply_to":"fa81d914_53b6b53e","updated":"2015-01-28 08:32:32.000000000","message":"@YAMAMOTO Takashi:\n\nI understand, we could add in the documentation, but at the same time if  any user missed to add local type_driver we should handle it here.","commit_id":"42e27f413cdf711d99e151e5a1a0592f1dafb8b8"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"cf6417a5ed49ad803a0ce9ff7a1466d69da4e4de","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                                cfg.CONF.ml2.type_drivers]"},{"line_number":53,"context_line":"        LOG.info(_LI(\u0027Missing Type drivers to be added: %s\u0027),"},{"line_number":54,"context_line":"                 missing_type_drivers)"},{"line_number":55,"context_line":"        type_driver_list \u003d cfg.CONF.ml2.type_drivers + missing_type_drivers"},{"line_number":56,"context_line":"        super(TypeManager, self).__init__(\u0027neutron.ml2.type_drivers\u0027,"},{"line_number":57,"context_line":"                                          type_driver_list,"},{"line_number":58,"context_line":"                                          invoke_on_load\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa81d914_ec41830c","line":55,"in_reply_to":"fa81d914_6904a87e","updated":"2015-01-28 11:17:56.000000000","message":"Done","commit_id":"42e27f413cdf711d99e151e5a1a0592f1dafb8b8"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"e1acde3dc54d60f6f55dc1846e80b039c6705773","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                                cfg.CONF.ml2.type_drivers]"},{"line_number":53,"context_line":"        LOG.info(_LI(\u0027Missing Type drivers to be added: %s\u0027),"},{"line_number":54,"context_line":"                 missing_type_drivers)"},{"line_number":55,"context_line":"        type_driver_list \u003d cfg.CONF.ml2.type_drivers + missing_type_drivers"},{"line_number":56,"context_line":"        super(TypeManager, self).__init__(\u0027neutron.ml2.type_drivers\u0027,"},{"line_number":57,"context_line":"                                          type_driver_list,"},{"line_number":58,"context_line":"                                          invoke_on_load\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa81d914_a95860fb","line":55,"in_reply_to":"fa81d914_6ed02e54","updated":"2015-01-28 09:19:55.000000000","message":"in that case, the user can\u0027t create external networks without specifying providernet explicitly.  not too bad, i guess...","commit_id":"42e27f413cdf711d99e151e5a1a0592f1dafb8b8"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"d50ea57e4fa76c19c3f93054606b0dc5802643e1","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                                cfg.CONF.ml2.type_drivers]"},{"line_number":53,"context_line":"        LOG.info(_LI(\u0027Missing Type drivers to be added: %s\u0027),"},{"line_number":54,"context_line":"                 missing_type_drivers)"},{"line_number":55,"context_line":"        type_driver_list \u003d cfg.CONF.ml2.type_drivers + missing_type_drivers"},{"line_number":56,"context_line":"        super(TypeManager, self).__init__(\u0027neutron.ml2.type_drivers\u0027,"},{"line_number":57,"context_line":"                                          type_driver_list,"},{"line_number":58,"context_line":"                                          invoke_on_load\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa81d914_6904a87e","line":55,"in_reply_to":"fa81d914_a95860fb","updated":"2015-01-28 09:27:24.000000000","message":"Cool :)","commit_id":"42e27f413cdf711d99e151e5a1a0592f1dafb8b8"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"3896b0d808d5ae80b322a10f51abb266695c2309","unresolved":false,"context_lines":[{"line_number":129,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":130,"context_line":"            segments \u003d [{provider.NETWORK_TYPE: service_constants.TYPE_LOCAL,"},{"line_number":131,"context_line":"                         provider.PHYSICAL_NETWORK: None,"},{"line_number":132,"context_line":"                         provider.SEGMENTATION_ID: None}]"},{"line_number":133,"context_line":"            return [self._process_provider_segment(s) for s in segments]"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def _get_attribute(self, attrs, key):"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa81d914_732c994b","line":132,"updated":"2015-01-28 08:10:15.000000000","message":"no need to specify Nones here as _process_provider_segment will provide them.","commit_id":"42e27f413cdf711d99e151e5a1a0592f1dafb8b8"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"624782061f73f9a88d11b06bc217b42570de686e","unresolved":false,"context_lines":[{"line_number":129,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":130,"context_line":"            segments \u003d [{provider.NETWORK_TYPE: service_constants.TYPE_LOCAL,"},{"line_number":131,"context_line":"                         provider.PHYSICAL_NETWORK: None,"},{"line_number":132,"context_line":"                         provider.SEGMENTATION_ID: None}]"},{"line_number":133,"context_line":"            return [self._process_provider_segment(s) for s in segments]"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def _get_attribute(self, attrs, key):"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa81d914_ae41460d","line":132,"in_reply_to":"fa81d914_732c994b","updated":"2015-01-28 08:32:32.000000000","message":"+1","commit_id":"42e27f413cdf711d99e151e5a1a0592f1dafb8b8"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"cf6417a5ed49ad803a0ce9ff7a1466d69da4e4de","unresolved":false,"context_lines":[{"line_number":129,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":130,"context_line":"            segments \u003d [{provider.NETWORK_TYPE: service_constants.TYPE_LOCAL,"},{"line_number":131,"context_line":"                         provider.PHYSICAL_NETWORK: None,"},{"line_number":132,"context_line":"                         provider.SEGMENTATION_ID: None}]"},{"line_number":133,"context_line":"            return [self._process_provider_segment(s) for s in segments]"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def _get_attribute(self, attrs, key):"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa81d914_44c1892d","line":132,"in_reply_to":"fa81d914_732c994b","updated":"2015-01-28 11:17:56.000000000","message":"Done","commit_id":"42e27f413cdf711d99e151e5a1a0592f1dafb8b8"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"70b2c0a882cf0efeee0829b3493e34467b9c3767","unresolved":false,"context_lines":[{"line_number":107,"context_line":"            segments \u003d [{provider.NETWORK_TYPE: network_type,"},{"line_number":108,"context_line":"                         provider.PHYSICAL_NETWORK: physical_network,"},{"line_number":109,"context_line":"                         provider.SEGMENTATION_ID: segmentation_id}]"},{"line_number":110,"context_line":"            return [self._process_provider_segment(s) for s in segments]"},{"line_number":111,"context_line":"        elif attributes.is_attr_set(network.get(mpnet.SEGMENTS)):"},{"line_number":112,"context_line":"            segments \u003d [self._process_provider_segment(s)"},{"line_number":113,"context_line":"                        for s in network[mpnet.SEGMENTS]]"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa81d914_6e7999c7","line":110,"updated":"2015-01-30 11:18:56.000000000","message":"Hi Cedric,\n\nMay I know why we have list comprehension with a one element list here, Can we correct in this patch set itself?","commit_id":"0838afa4a4a55982949f9577a966843467841d64"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"5dcd364e3955ecb6f2ad1155d89cd765358985d1","unresolved":false,"context_lines":[{"line_number":115,"context_line":"            return segments"},{"line_number":116,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":117,"context_line":"            segments \u003d [{provider.NETWORK_TYPE: service_constants.TYPE_LOCAL}]"},{"line_number":118,"context_line":"            return [self._process_provider_segment(s) for s in segments]"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    def _get_attribute(self, attrs, key):"},{"line_number":121,"context_line":"        value \u003d attrs.get(key)"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa81d914_0e0c9da4","line":118,"updated":"2015-01-30 11:05:37.000000000","message":"Why using a list comprehension with a one element list?","commit_id":"0838afa4a4a55982949f9577a966843467841d64"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"c37989703ab8cd25b84edbb3a8dd782dd6d0df22","unresolved":false,"context_lines":[{"line_number":115,"context_line":"            return segments"},{"line_number":116,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":117,"context_line":"            segments \u003d [{provider.NETWORK_TYPE: service_constants.TYPE_LOCAL}]"},{"line_number":118,"context_line":"            return [self._process_provider_segment(s) for s in segments]"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    def _get_attribute(self, attrs, key):"},{"line_number":121,"context_line":"        value \u003d attrs.get(key)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_e81bf819","line":118,"in_reply_to":"fa81d914_0e0c9da4","updated":"2015-02-03 06:29:18.000000000","message":"@Cedric Brandily: Done in patch set 7, pls review it and update ur point.","commit_id":"0838afa4a4a55982949f9577a966843467841d64"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"b4a34100e82320db6124d7d1232d40d6c92423cb","unresolved":false,"context_lines":[{"line_number":115,"context_line":"            return segments"},{"line_number":116,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":117,"context_line":"            segments \u003d [{provider.NETWORK_TYPE: service_constants.TYPE_LOCAL}]"},{"line_number":118,"context_line":"            return [self._process_provider_segment(s) for s in segments]"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    def _get_attribute(self, attrs, key):"},{"line_number":121,"context_line":"        value \u003d attrs.get(key)"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa81d914_d115c8e5","line":118,"in_reply_to":"fa81d914_0e0c9da4","updated":"2015-01-30 11:50:47.000000000","message":"Done","commit_id":"0838afa4a4a55982949f9577a966843467841d64"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"5bfc3935ef89a94e98c41991f5b29c3548f4ed86","unresolved":false,"context_lines":[{"line_number":107,"context_line":"            segment \u003d {provider.NETWORK_TYPE: network_type,"},{"line_number":108,"context_line":"                       provider.PHYSICAL_NETWORK: physical_network,"},{"line_number":109,"context_line":"                       provider.SEGMENTATION_ID: segmentation_id}"},{"line_number":110,"context_line":"            return [self._process_provider_segment(segment)]"},{"line_number":111,"context_line":"        elif attributes.is_attr_set(network.get(mpnet.SEGMENTS)):"},{"line_number":112,"context_line":"            segments \u003d [self._process_provider_segment(s)"},{"line_number":113,"context_line":"                        for s in network[mpnet.SEGMENTS]]"}],"source_content_type":"text/x-python","patch_set":7,"id":"da86d52c_c56816f8","line":110,"updated":"2015-02-02 05:28:07.000000000","message":"i prefer not to mix unrelated changes but i don\u0027t insist.","commit_id":"407a8d24e0738aa31c77b36648333950530fe518"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"e81fbbb4861bb3c5dd9bafb9f24c1e773f25b37f","unresolved":false,"context_lines":[{"line_number":107,"context_line":"            segment \u003d {provider.NETWORK_TYPE: network_type,"},{"line_number":108,"context_line":"                       provider.PHYSICAL_NETWORK: physical_network,"},{"line_number":109,"context_line":"                       provider.SEGMENTATION_ID: segmentation_id}"},{"line_number":110,"context_line":"            return [self._process_provider_segment(segment)]"},{"line_number":111,"context_line":"        elif attributes.is_attr_set(network.get(mpnet.SEGMENTS)):"},{"line_number":112,"context_line":"            segments \u003d [self._process_provider_segment(s)"},{"line_number":113,"context_line":"                        for s in network[mpnet.SEGMENTS]]"}],"source_content_type":"text/x-python","patch_set":7,"id":"da86d52c_1665c644","line":110,"in_reply_to":"da86d52c_c56816f8","updated":"2015-02-03 11:54:27.000000000","message":"I tend to agree but this is a nice little cleanup so I will allow it.","commit_id":"407a8d24e0738aa31c77b36648333950530fe518"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"a0e22d181c318b65bcf5eb26568d1b9e8348ce6d","unresolved":false,"context_lines":[{"line_number":101,"context_line":"                raise mpnet.SegmentsSetInConjunctionWithProviders()"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"            segment \u003d self._get_segment_attributes(network)"},{"line_number":104,"context_line":"            return [self._process_provider_segment(segment)]"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        elif attributes.is_attr_set(network.get(mpnet.SEGMENTS)):"},{"line_number":107,"context_line":"            segments \u003d [self._process_provider_segment(s)"}],"source_content_type":"text/x-python","patch_set":8,"id":"da86d52c_dc079bc8","line":104,"updated":"2015-02-04 12:13:00.000000000","message":"In the previous patch set I said I would allow this unrelated change. But now I see a more complete cleanup is proposed, https://review.openstack.org/151130\n\nSo I have changed my mind, sorry, and would prefer that lines 100-109 remain unchanged here. Laser focus on the bug. Thanks.","commit_id":"006c3660db90227a1a3972cef52dbce0ee5d9914"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"19663e40e83791fb02a75250894c507cde551f15","unresolved":false,"context_lines":[{"line_number":101,"context_line":"                raise mpnet.SegmentsSetInConjunctionWithProviders()"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"            segment \u003d self._get_segment_attributes(network)"},{"line_number":104,"context_line":"            return [self._process_provider_segment(segment)]"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        elif attributes.is_attr_set(network.get(mpnet.SEGMENTS)):"},{"line_number":107,"context_line":"            segments \u003d [self._process_provider_segment(s)"}],"source_content_type":"text/x-python","patch_set":8,"id":"da86d52c_702413af","line":104,"in_reply_to":"da86d52c_dc079bc8","updated":"2015-02-04 12:34:19.000000000","message":"it\u0027s OK :)","commit_id":"006c3660db90227a1a3972cef52dbce0ee5d9914"},{"author":{"_account_id":11952,"name":"Flavio Fernandes","email":"flavio@flaviof.com","username":"ffernand"},"change_message_id":"df88b3b476b375fbe9ee21f16066909663ff1dde","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        elif attributes.is_attr_set(network.get(mpnet.SEGMENTS)):"},{"line_number":106,"context_line":"            segments \u003d [self._process_provider_segment(s)"},{"line_number":107,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":108,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"}],"source_content_type":"text/x-python","patch_set":9,"id":"da86d52c_93227150","line":108,"updated":"2015-02-04 13:01:24.000000000","message":"this is 100% unrelated to the description of this gerrit\nconsider using a different commit?","commit_id":"0ab3040bac6aa1a7e5a9ac459fec6644b06e291f"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"f17b63de472e8d9ad8c499be9e65b4047f77802d","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        elif attributes.is_attr_set(network.get(mpnet.SEGMENTS)):"},{"line_number":106,"context_line":"            segments \u003d [self._process_provider_segment(s)"},{"line_number":107,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":108,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"}],"source_content_type":"text/x-python","patch_set":9,"id":"da86d52c_a6f811c4","line":108,"in_reply_to":"da86d52c_93227150","updated":"2015-02-04 13:27:22.000000000","message":"I feel these are nit changes and shouldn\u0027t be part of new review ID. \nWe will update the commit msg for the same.","commit_id":"0ab3040bac6aa1a7e5a9ac459fec6644b06e291f"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"4fdc02d193226ff8487e33b8a97c17a12679ec73","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        elif attributes.is_attr_set(network.get(mpnet.SEGMENTS)):"},{"line_number":106,"context_line":"            segments \u003d [self._process_provider_segment(s)"},{"line_number":107,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":108,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"}],"source_content_type":"text/x-python","patch_set":9,"id":"da86d52c_a67bb126","line":108,"in_reply_to":"da86d52c_93227150","updated":"2015-02-04 13:25:47.000000000","message":"Just a little bit extra cleaning, thought better to do in this patch set itself instead of extra commit.","commit_id":"0ab3040bac6aa1a7e5a9ac459fec6644b06e291f"},{"author":{"_account_id":11952,"name":"Flavio Fernandes","email":"flavio@flaviof.com","username":"ffernand"},"change_message_id":"e452930f30af76a14c02e67884d24bfd5445a1d5","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        elif attributes.is_attr_set(network.get(mpnet.SEGMENTS)):"},{"line_number":106,"context_line":"            segments \u003d [self._process_provider_segment(s)"},{"line_number":107,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":108,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"}],"source_content_type":"text/x-python","patch_set":9,"id":"da86d52c_0698fd1a","line":108,"in_reply_to":"da86d52c_a6f811c4","updated":"2015-02-04 13:35:28.000000000","message":"understood","commit_id":"0ab3040bac6aa1a7e5a9ac459fec6644b06e291f"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"374258c7fd04a4077ae8d7dd6646dadc47c36942","unresolved":false,"context_lines":[{"line_number":107,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":108,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":112,"context_line":"            segment \u003d {provider.NETWORK_TYPE: service_constants.TYPE_LOCAL}"},{"line_number":113,"context_line":"            return [self._process_provider_segment(segment)]"}],"source_content_type":"text/x-python","patch_set":9,"id":"da86d52c_f3156de5","line":110,"updated":"2015-02-04 13:00:40.000000000","message":"why this unnecessary extra line space","commit_id":"0ab3040bac6aa1a7e5a9ac459fec6644b06e291f"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"f17b63de472e8d9ad8c499be9e65b4047f77802d","unresolved":false,"context_lines":[{"line_number":107,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":108,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":112,"context_line":"            segment \u003d {provider.NETWORK_TYPE: service_constants.TYPE_LOCAL}"},{"line_number":113,"context_line":"            return [self._process_provider_segment(segment)]"}],"source_content_type":"text/x-python","patch_set":9,"id":"da86d52c_66e1b9fd","line":110,"in_reply_to":"da86d52c_f3156de5","updated":"2015-02-04 13:27:22.000000000","message":"Done","commit_id":"0ab3040bac6aa1a7e5a9ac459fec6644b06e291f"},{"author":{"_account_id":11952,"name":"Flavio Fernandes","email":"flavio@flaviof.com","username":"ffernand"},"change_message_id":"df88b3b476b375fbe9ee21f16066909663ff1dde","unresolved":false,"context_lines":[{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":112,"context_line":"            segment \u003d {provider.NETWORK_TYPE: service_constants.TYPE_LOCAL}"},{"line_number":113,"context_line":"            return [self._process_provider_segment(segment)]"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def _get_attribute(self, attrs, key):"}],"source_content_type":"text/x-python","patch_set":9,"id":"da86d52c_5325595a","line":112,"updated":"2015-02-04 13:01:24.000000000","message":"just like line 101 above, shouln\u0027t this be a list [of_one_element]?","commit_id":"0ab3040bac6aa1a7e5a9ac459fec6644b06e291f"},{"author":{"_account_id":11952,"name":"Flavio Fernandes","email":"flavio@flaviof.com","username":"ffernand"},"change_message_id":"e452930f30af76a14c02e67884d24bfd5445a1d5","unresolved":false,"context_lines":[{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":112,"context_line":"            segment \u003d {provider.NETWORK_TYPE: service_constants.TYPE_LOCAL}"},{"line_number":113,"context_line":"            return [self._process_provider_segment(segment)]"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def _get_attribute(self, attrs, key):"}],"source_content_type":"text/x-python","patch_set":9,"id":"da86d52c_a601f139","line":112,"in_reply_to":"da86d52c_4698356a","updated":"2015-02-04 13:35:28.000000000","message":"oops, sorry for missing that.","commit_id":"0ab3040bac6aa1a7e5a9ac459fec6644b06e291f"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"f17b63de472e8d9ad8c499be9e65b4047f77802d","unresolved":false,"context_lines":[{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":112,"context_line":"            segment \u003d {provider.NETWORK_TYPE: service_constants.TYPE_LOCAL}"},{"line_number":113,"context_line":"            return [self._process_provider_segment(segment)]"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def _get_attribute(self, attrs, key):"}],"source_content_type":"text/x-python","patch_set":9,"id":"da86d52c_c6d98523","line":112,"in_reply_to":"da86d52c_5325595a","updated":"2015-02-04 13:27:22.000000000","message":"Yes, its a list of one element.","commit_id":"0ab3040bac6aa1a7e5a9ac459fec6644b06e291f"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"4fdc02d193226ff8487e33b8a97c17a12679ec73","unresolved":false,"context_lines":[{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":112,"context_line":"            segment \u003d {provider.NETWORK_TYPE: service_constants.TYPE_LOCAL}"},{"line_number":113,"context_line":"            return [self._process_provider_segment(segment)]"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def _get_attribute(self, attrs, key):"}],"source_content_type":"text/x-python","patch_set":9,"id":"da86d52c_4698356a","line":112,"in_reply_to":"da86d52c_5325595a","updated":"2015-02-04 13:25:47.000000000","message":"check PS 6 comments, Cedric Brandily said not to use list for one element.","commit_id":"0ab3040bac6aa1a7e5a9ac459fec6644b06e291f"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"c4d8bfec9c2bd2dc41ab84a2208018fb5dca99cd","unresolved":false,"context_lines":[{"line_number":108,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":111,"context_line":"            segment \u003d {provider.NETWORK_TYPE: service_constants.TYPE_LOCAL}"},{"line_number":112,"context_line":"            return [self._process_provider_segment(segment)]"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"    def _get_attribute(self, attrs, key):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da86d52c_0553736b","line":111,"updated":"2015-02-05 05:39:04.000000000","message":"I think we should raise in this case to tel the user they shouldn\u0027t pass in the network_type if it\u0027s not supported on provider networks rather than bindly ignoring it.","commit_id":"7459e40856efc7d7b0a81ce736e15ffc1a78f781"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"c145a154f0e962f7c48f9b5868df08c24edf5b71","unresolved":false,"context_lines":[{"line_number":108,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":111,"context_line":"            segment \u003d {provider.NETWORK_TYPE: service_constants.TYPE_LOCAL}"},{"line_number":112,"context_line":"            return [self._process_provider_segment(segment)]"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"    def _get_attribute(self, attrs, key):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da86d52c_c53ebbd9","line":111,"in_reply_to":"da86d52c_0553736b","updated":"2015-02-05 05:45:28.000000000","message":"you mean they should?","commit_id":"7459e40856efc7d7b0a81ce736e15ffc1a78f781"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"a9be1fa1c6cb341acbfef95ce6b292ec89e06781","unresolved":false,"context_lines":[{"line_number":108,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":111,"context_line":"            segment \u003d {provider.NETWORK_TYPE: service_constants.TYPE_LOCAL}"},{"line_number":112,"context_line":"            return [self._process_provider_segment(segment)]"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"    def _get_attribute(self, attrs, key):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da86d52c_8d8606da","line":111,"in_reply_to":"da86d52c_20be1c00","updated":"2015-02-10 07:25:50.000000000","message":"Done","commit_id":"7459e40856efc7d7b0a81ce736e15ffc1a78f781"},{"author":{"_account_id":704,"name":"Edgar Magana","email":"emagana@gmail.com","username":"emagana"},"change_message_id":"695abb01c41dbdd7091fef48e316bbb1d3ff9e1b","unresolved":false,"context_lines":[{"line_number":108,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":111,"context_line":"            segment \u003d {provider.NETWORK_TYPE: service_constants.TYPE_LOCAL}"},{"line_number":112,"context_line":"            return [self._process_provider_segment(segment)]"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"    def _get_attribute(self, attrs, key):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da86d52c_318b5969","line":111,"in_reply_to":"da86d52c_20e5c537","updated":"2015-02-05 08:22:20.000000000","message":"I do agree with Romil. This looks like the proper way to handle this","commit_id":"7459e40856efc7d7b0a81ce736e15ffc1a78f781"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"36b33ca20edbdec31eeff254ee8c30f69dca3e07","unresolved":false,"context_lines":[{"line_number":108,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":111,"context_line":"            segment \u003d {provider.NETWORK_TYPE: service_constants.TYPE_LOCAL}"},{"line_number":112,"context_line":"            return [self._process_provider_segment(segment)]"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"    def _get_attribute(self, attrs, key):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da86d52c_20be1c00","line":111,"in_reply_to":"da86d52c_318b5969","updated":"2015-02-09 18:55:35.000000000","message":"I also agree with Romil and Edgar. This only handles the case where no providernet or multiprovidernet attributes have been supplied in. If any of these are passed in, the set of attributes that was passed will be validated.\n\nIf \u0027local\u0027 isn\u0027t included in the type_drivers config value, its a deployment error, not a user error, so raising an exception to the user is not appropriate. I\u0027d suggest checking that the local type is available as part of the condition on line 110, so that we fall through and a normal tenant network is allocated if the \u0027local\u0027 type is not available.","commit_id":"7459e40856efc7d7b0a81ce736e15ffc1a78f781"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"0e8bc28502382fa130c781e1e0ae8d16309907c5","unresolved":false,"context_lines":[{"line_number":108,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":111,"context_line":"            segment \u003d {provider.NETWORK_TYPE: service_constants.TYPE_LOCAL}"},{"line_number":112,"context_line":"            return [self._process_provider_segment(segment)]"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"    def _get_attribute(self, attrs, key):"}],"source_content_type":"text/x-python","patch_set":10,"id":"da86d52c_20e5c537","line":111,"in_reply_to":"da86d52c_c53ebbd9","updated":"2015-02-05 06:00:23.000000000","message":"@Aaron: As far as I understand user must needs to initialize the type_drivers\u003dlocal before creating a external network without provider attributes set otherwise it will raise error while creating network on CLI itself.\n\nHere, we are just handing the scenario where if provider attributes are not set while creating external networks by default it will take local type.","commit_id":"7459e40856efc7d7b0a81ce736e15ffc1a78f781"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"2fc654014ec0d833eb11215ef9a1fdf67994e538","unresolved":false,"context_lines":[{"line_number":107,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":108,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":111,"context_line":"            if p_const.TYPE_LOCAL in cfg.CONF.ml2.type_drivers:"},{"line_number":112,"context_line":"                segment \u003d {provider.NETWORK_TYPE: p_const.TYPE_LOCAL}"},{"line_number":113,"context_line":"                return [self._process_provider_segment(segment)]"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_901771a2","line":110,"updated":"2015-02-12 22:09:31.000000000","message":"I chatted with Robert about this on IRC and I\u0027m good with this if it\u0027s more configuration driven so it doesn\u0027t wipe out the VLAN use case now. For example:\n\nelif cfg.CONF.ml2.default_external_network_type and self._get_attribute(network, external_net.EXTERNAL):\n    segment \u003d {provider.NETWORK_TYPE: cfg.CONF.ml2.default_external_network_type}\n    return [self._process_provider_segment(segment)]","commit_id":"6fc452cb6e4b2ee5cc4cfd7a1e78052a49ab14c3"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"8a5fa79d57f55f2311db11a2ab86f5f10b2ae54e","unresolved":false,"context_lines":[{"line_number":107,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":108,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":109,"context_line":"            return segments"},{"line_number":110,"context_line":"        elif self._get_attribute(network, external_net.EXTERNAL):"},{"line_number":111,"context_line":"            if p_const.TYPE_LOCAL in cfg.CONF.ml2.type_drivers:"},{"line_number":112,"context_line":"                segment \u003d {provider.NETWORK_TYPE: p_const.TYPE_LOCAL}"},{"line_number":113,"context_line":"                return [self._process_provider_segment(segment)]"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_63421e6a","line":110,"in_reply_to":"da86d52c_901771a2","updated":"2015-02-13 12:18:24.000000000","message":"Done","commit_id":"6fc452cb6e4b2ee5cc4cfd7a1e78052a49ab14c3"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"efce7f3688e0656edc1a4856394a44dcfaaf8b2b","unresolved":false,"context_lines":[{"line_number":113,"context_line":"                return [self._process_provider_segment(segment)]"},{"line_number":114,"context_line":"            else:"},{"line_number":115,"context_line":"                LOG.warn(_LW(\"Type driver local is not configured\"))"},{"line_number":116,"context_line":"                return"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    def _get_attribute(self, attrs, key):"},{"line_number":119,"context_line":"        value \u003d attrs.get(key)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_44f4d1ce","line":116,"updated":"2015-02-10 17:17:38.000000000","message":"Nit: This return is not necessary. Also, the warning might be a bit more helpful if it mentioned something about allocating a non-provider external network.","commit_id":"6fc452cb6e4b2ee5cc4cfd7a1e78052a49ab14c3"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"8a5fa79d57f55f2311db11a2ab86f5f10b2ae54e","unresolved":false,"context_lines":[{"line_number":113,"context_line":"                return [self._process_provider_segment(segment)]"},{"line_number":114,"context_line":"            else:"},{"line_number":115,"context_line":"                LOG.warn(_LW(\"Type driver local is not configured\"))"},{"line_number":116,"context_line":"                return"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    def _get_attribute(self, attrs, key):"},{"line_number":119,"context_line":"        value \u003d attrs.get(key)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_83471277","line":116,"in_reply_to":"da86d52c_44f4d1ce","updated":"2015-02-13 12:18:24.000000000","message":"Done","commit_id":"6fc452cb6e4b2ee5cc4cfd7a1e78052a49ab14c3"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"49033ef5130113588bbeb6ec3998c64f3ccac0ec","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    def _check_external_network_type(self, ext_net_type_local):"},{"line_number":82,"context_line":"        if ext_net_type_local and p_const.TYPE_LOCAL not in self.drivers:"},{"line_number":83,"context_line":"            LOG.error(_LE(\"Type driver not loaded for external_network_type: \""},{"line_number":84,"context_line":"                          \"\u0027%s\u0027. Service terminated!\"), p_const.TYPE_LOCAL)"},{"line_number":85,"context_line":"            raise SystemExit(1)"},{"line_number":86,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"ba7be1f8_ddc1f980","line":83,"updated":"2015-02-26 16:12:53.000000000","message":"Super-tiny-nit: Can you word this message similar to the one on line 76?","commit_id":"14fb833bb6f7bcad0107a216b37a72cc6a836486"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"834dc3a78b33d9766f7f7c9d471ac8a7ea462fe1","unresolved":false,"context_lines":[{"line_number":112,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":113,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":114,"context_line":"            return segments"},{"line_number":115,"context_line":"        elif (cfg.CONF.ml2.external_network_type_local and"},{"line_number":116,"context_line":"              self._get_attribute(network, external_net.EXTERNAL)):"},{"line_number":117,"context_line":"            segment \u003d {provider.NETWORK_TYPE: p_const.TYPE_LOCAL}"},{"line_number":118,"context_line":"            return [self._process_provider_segment(segment)]"}],"source_content_type":"text/x-python","patch_set":18,"id":"ba7be1f8_c7e1fcd1","line":115,"updated":"2015-02-27 11:26:40.000000000","message":"Once the config is updated, this should be made generic to set the type to whatever default is configured, rather than just local.","commit_id":"fc8d4e46ffaca5e0cd9fb85f861852478c903561"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"0f2a0b18758b4b5a39144e0534a87e55e7c430c9","unresolved":false,"context_lines":[{"line_number":112,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":113,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":114,"context_line":"            return segments"},{"line_number":115,"context_line":"        elif (cfg.CONF.ml2.external_network_type_local and"},{"line_number":116,"context_line":"              self._get_attribute(network, external_net.EXTERNAL)):"},{"line_number":117,"context_line":"            segment \u003d {provider.NETWORK_TYPE: p_const.TYPE_LOCAL}"},{"line_number":118,"context_line":"            return [self._process_provider_segment(segment)]"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a80dd14_f2280c88","line":115,"in_reply_to":"9a80dd14_b7722f47","updated":"2015-03-06 16:31:41.000000000","message":"Thanks Kevin for the clarification.\n\nBefore we wipe out the change I want everybody to be on the same page. So here are changes we are targeting to make:\n\n 1. Introduce new flag \u0027external_network_type\u0027 in ml2_conf.ini, \n    it\u0027s values could be either one of them VXLAN, GRE, FLAT,\n    VLAN or LOCAL which represent the default network type for\n    external networks.\n\n 2. Once, users/customer configure this flag in ml2_conf.ini,\n    whenever he/she create external network we take the\n    network_type  value as configured value and take the\n    required provider attributes from ml2_conf.ini file \n    for network_type (VXLAN, GRE, VLAN and FLAT).\n\nIf you agree kindly put a +1 as a comment below.","commit_id":"fc8d4e46ffaca5e0cd9fb85f861852478c903561"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"1c9ab1c42a9aa0336b430ce469f01ed5c44383d0","unresolved":false,"context_lines":[{"line_number":112,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":113,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":114,"context_line":"            return segments"},{"line_number":115,"context_line":"        elif (cfg.CONF.ml2.external_network_type_local and"},{"line_number":116,"context_line":"              self._get_attribute(network, external_net.EXTERNAL)):"},{"line_number":117,"context_line":"            segment \u003d {provider.NETWORK_TYPE: p_const.TYPE_LOCAL}"},{"line_number":118,"context_line":"            return [self._process_provider_segment(segment)]"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a80dd14_2b7698a4","line":115,"in_reply_to":"9a80dd14_f2280c88","updated":"2015-03-07 14:25:04.000000000","message":"+1.","commit_id":"fc8d4e46ffaca5e0cd9fb85f861852478c903561"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"9c5b9883151263348d663fdce062b83cc0f689a4","unresolved":false,"context_lines":[{"line_number":112,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":113,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":114,"context_line":"            return segments"},{"line_number":115,"context_line":"        elif (cfg.CONF.ml2.external_network_type_local and"},{"line_number":116,"context_line":"              self._get_attribute(network, external_net.EXTERNAL)):"},{"line_number":117,"context_line":"            segment \u003d {provider.NETWORK_TYPE: p_const.TYPE_LOCAL}"},{"line_number":118,"context_line":"            return [self._process_provider_segment(segment)]"}],"source_content_type":"text/x-python","patch_set":18,"id":"ba7be1f8_e711a05e","line":115,"in_reply_to":"ba7be1f8_c7e1fcd1","updated":"2015-02-27 11:35:48.000000000","message":"Hi Kevin,\n\nLet\u0027s assume, default_external_network_type\u003dvlan,\nIn that case do we need to allow users to create a external_network without providing provider attributes? \n\nor we should raise here like provider attributes are must for vlan/vxlan/gre/flat type networks???","commit_id":"fc8d4e46ffaca5e0cd9fb85f861852478c903561"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"16cb4227e56410eee04af476286c9d96c87e9378","unresolved":false,"context_lines":[{"line_number":112,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":113,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":114,"context_line":"            return segments"},{"line_number":115,"context_line":"        elif (cfg.CONF.ml2.external_network_type_local and"},{"line_number":116,"context_line":"              self._get_attribute(network, external_net.EXTERNAL)):"},{"line_number":117,"context_line":"            segment \u003d {provider.NETWORK_TYPE: p_const.TYPE_LOCAL}"},{"line_number":118,"context_line":"            return [self._process_provider_segment(segment)]"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a80dd14_b7722f47","line":115,"in_reply_to":"ba7be1f8_ca93c34d","updated":"2015-03-05 21:56:15.000000000","message":"What I was thinking is that the default allocation strategy would take place for that type. i.e. if the default is vlan and they don\u0027t provide a vlan, let ML2 allocate one for them automatically.","commit_id":"fc8d4e46ffaca5e0cd9fb85f861852478c903561"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"cfa66bd5d57e725e914d75aeb0ad26e43f7da925","unresolved":false,"context_lines":[{"line_number":112,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":113,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":114,"context_line":"            return segments"},{"line_number":115,"context_line":"        elif (cfg.CONF.ml2.external_network_type_local and"},{"line_number":116,"context_line":"              self._get_attribute(network, external_net.EXTERNAL)):"},{"line_number":117,"context_line":"            segment \u003d {provider.NETWORK_TYPE: p_const.TYPE_LOCAL}"},{"line_number":118,"context_line":"            return [self._process_provider_segment(segment)]"}],"source_content_type":"text/x-python","patch_set":18,"id":"ba7be1f8_ca93c34d","line":115,"in_reply_to":"ba7be1f8_e711a05e","updated":"2015-02-27 11:55:30.000000000","message":"Continue my comments further\n\nIf we allow users to create a external_network of type VLAN/VXLAN/GRE/FLAT without providing provider attributes then from where I should take the SEGMENTATION_ID, PHYSICAL_NETWORK?\n\nIf we raise here, then user provides all provider attributes then what is the significance of this flag  default_external_network_type?","commit_id":"fc8d4e46ffaca5e0cd9fb85f861852478c903561"},{"author":{"_account_id":14757,"name":"Timothy Swanson","email":"tiswanso@cisco.com","username":"tiswanso"},"change_message_id":"853926a30dd1127cf3edb4dcaed96c88e8c777fa","unresolved":false,"context_lines":[{"line_number":182,"context_line":"            elif (cfg.CONF.ml2.external_network_type and"},{"line_number":183,"context_line":"                  self._get_attribute(network, external_net.EXTERNAL)):"},{"line_number":184,"context_line":"                segment \u003d self.allocate_ext_net_segment(session)"},{"line_number":185,"context_line":"                db.add_network_segment(session, network_id, segment)"},{"line_number":186,"context_line":"            else:"},{"line_number":187,"context_line":"                segment \u003d self.allocate_tenant_segment(session)"},{"line_number":188,"context_line":"                db.add_network_segment(session, network_id, segment)"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a80dd14_e61677f1","line":185,"updated":"2015-03-13 14:49:36.000000000","message":"we have a review with a change for this method.  We\u0027re adding calls to a new get_mtu method for the driver types.  So, if this merges bevore ours we\u0027ll be adding a call to the driver type\u0027s get_mtu method.  But if ours merges first, please add that in.\n\nReview:  https://review.openstack.org/#/c/156318","commit_id":"495e84cd1820a41a5a47134a377fcf83aa369753"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"876df3a42d8635d5e0e6e3b384310d4406c69437","unresolved":false,"context_lines":[{"line_number":182,"context_line":"            elif (cfg.CONF.ml2.external_network_type and"},{"line_number":183,"context_line":"                  self._get_attribute(network, external_net.EXTERNAL)):"},{"line_number":184,"context_line":"                segment \u003d self.allocate_ext_net_segment(session)"},{"line_number":185,"context_line":"                db.add_network_segment(session, network_id, segment)"},{"line_number":186,"context_line":"            else:"},{"line_number":187,"context_line":"                segment \u003d self.allocate_tenant_segment(session)"},{"line_number":188,"context_line":"                db.add_network_segment(session, network_id, segment)"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a80dd14_a1ce2981","line":185,"in_reply_to":"9a80dd14_e61677f1","updated":"2015-03-13 15:03:56.000000000","message":"We will take care.\n\nThanks for sharing this.","commit_id":"495e84cd1820a41a5a47134a377fcf83aa369753"},{"author":{"_account_id":14757,"name":"Timothy Swanson","email":"tiswanso@cisco.com","username":"tiswanso"},"change_message_id":"853926a30dd1127cf3edb4dcaed96c88e8c777fa","unresolved":false,"context_lines":[{"line_number":223,"context_line":"        driver \u003d self.drivers.get(network_type)"},{"line_number":224,"context_line":"        segment \u003d driver.obj.allocate_tenant_segment(session)"},{"line_number":225,"context_line":"        if segment:"},{"line_number":226,"context_line":"            return segment"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def release_network_segments(self, session, network_id):"},{"line_number":229,"context_line":"        segments \u003d db.get_network_segments(session, network_id,"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a80dd14_e619177b","line":226,"updated":"2015-03-13 14:49:36.000000000","message":"This is missing the exception raised in allocate_tenant_segment().  Is this intentional? appropriate?\n\nraise exc.NoNetworkAvailable()","commit_id":"495e84cd1820a41a5a47134a377fcf83aa369753"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"cd726102898f10af4dcd9cd437cdf5452371279c","unresolved":false,"context_lines":[{"line_number":223,"context_line":"        driver \u003d self.drivers.get(network_type)"},{"line_number":224,"context_line":"        segment \u003d driver.obj.allocate_tenant_segment(session)"},{"line_number":225,"context_line":"        if segment:"},{"line_number":226,"context_line":"            return segment"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def release_network_segments(self, session, network_id):"},{"line_number":229,"context_line":"        segments \u003d db.get_network_segments(session, network_id,"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a80dd14_6f5b0522","line":226,"in_reply_to":"9a80dd14_84be6063","updated":"2015-03-16 07:03:22.000000000","message":"Done","commit_id":"495e84cd1820a41a5a47134a377fcf83aa369753"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"eacf09456f748ca34e05360f8ffd07f44464bc88","unresolved":false,"context_lines":[{"line_number":223,"context_line":"        driver \u003d self.drivers.get(network_type)"},{"line_number":224,"context_line":"        segment \u003d driver.obj.allocate_tenant_segment(session)"},{"line_number":225,"context_line":"        if segment:"},{"line_number":226,"context_line":"            return segment"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def release_network_segments(self, session, network_id):"},{"line_number":229,"context_line":"        segments \u003d db.get_network_segments(session, network_id,"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a80dd14_84be6063","line":226,"in_reply_to":"9a80dd14_a113895a","updated":"2015-03-16 06:45:35.000000000","message":"It is must here:\n\nraise exc.NoNetworkAvailable()","commit_id":"495e84cd1820a41a5a47134a377fcf83aa369753"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"876df3a42d8635d5e0e6e3b384310d4406c69437","unresolved":false,"context_lines":[{"line_number":223,"context_line":"        driver \u003d self.drivers.get(network_type)"},{"line_number":224,"context_line":"        segment \u003d driver.obj.allocate_tenant_segment(session)"},{"line_number":225,"context_line":"        if segment:"},{"line_number":226,"context_line":"            return segment"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def release_network_segments(self, session, network_id):"},{"line_number":229,"context_line":"        segments \u003d db.get_network_segments(session, network_id,"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a80dd14_a113895a","line":226,"in_reply_to":"9a80dd14_e619177b","updated":"2015-03-13 15:03:56.000000000","message":"Probably, we could add it here also.","commit_id":"495e84cd1820a41a5a47134a377fcf83aa369753"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"9432dc2565b3b9ee0cc8e57e719ae80149524b62","unresolved":false,"context_lines":[{"line_number":109,"context_line":"        elif attributes.is_attr_set(network.get(mpnet.SEGMENTS)):"},{"line_number":110,"context_line":"            segments \u003d [self._process_provider_segment(s)"},{"line_number":111,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":112,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":113,"context_line":"            return segments"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def _match_segment(self, segment, filters):"}],"source_content_type":"text/x-python","patch_set":24,"id":"9a80dd14_2d4362b0","line":112,"updated":"2015-03-18 07:42:46.000000000","message":"no need to change it","commit_id":"a58c6493076d2d9aa9d055782b3ce0f270bb4e29"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"fa4c11075e7fc24f0e9c37b897674c45e0f52cd9","unresolved":false,"context_lines":[{"line_number":109,"context_line":"        elif attributes.is_attr_set(network.get(mpnet.SEGMENTS)):"},{"line_number":110,"context_line":"            segments \u003d [self._process_provider_segment(s)"},{"line_number":111,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":112,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":113,"context_line":"            return segments"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def _match_segment(self, segment, filters):"}],"source_content_type":"text/x-python","patch_set":24,"id":"9a80dd14_803a55e5","line":112,"in_reply_to":"9a80dd14_2d4362b0","updated":"2015-03-18 08:57:28.000000000","message":"It is just a code re-factory. If we can put all in a single line then what is the need of increasing 2 unnecessary extra lines.","commit_id":"a58c6493076d2d9aa9d055782b3ce0f270bb4e29"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"b411ff1a3737076f88ab14e468d56168f0ea88a7","unresolved":false,"context_lines":[{"line_number":109,"context_line":"        elif attributes.is_attr_set(network.get(mpnet.SEGMENTS)):"},{"line_number":110,"context_line":"            segments \u003d [self._process_provider_segment(s)"},{"line_number":111,"context_line":"                        for s in network[mpnet.SEGMENTS]]"},{"line_number":112,"context_line":"            mpnet.check_duplicate_segments(segments, self.is_partial_segment)"},{"line_number":113,"context_line":"            return segments"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def _match_segment(self, segment, filters):"}],"source_content_type":"text/x-python","patch_set":24,"id":"9a80dd14_91f2a099","line":112,"in_reply_to":"9a80dd14_803a55e5","updated":"2015-03-18 11:38:21.000000000","message":"@Gongysh: Is it breaking any functionality if we pass the argument in single line instead of multiple lines???","commit_id":"a58c6493076d2d9aa9d055782b3ce0f270bb4e29"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"9432dc2565b3b9ee0cc8e57e719ae80149524b62","unresolved":false,"context_lines":[{"line_number":187,"context_line":"                segment \u003d self.allocate_ext_net_segment(session)"},{"line_number":188,"context_line":"                db.add_network_segment(session, network_id, segment)"},{"line_number":189,"context_line":"                if segment.get(api.MTU) \u003e 0:"},{"line_number":190,"context_line":"                    mtu.append(segment[api.MTU])"},{"line_number":191,"context_line":"            else:"},{"line_number":192,"context_line":"                segment \u003d self.allocate_tenant_segment(session)"},{"line_number":193,"context_line":"                db.add_network_segment(session, network_id, segment)"}],"source_content_type":"text/x-python","patch_set":24,"id":"9a80dd14_8d344e4b","line":190,"updated":"2015-03-18 07:42:46.000000000","message":"maybe we should deal with it in function _process_provider_create to reduce code copy.","commit_id":"a58c6493076d2d9aa9d055782b3ce0f270bb4e29"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"fa4c11075e7fc24f0e9c37b897674c45e0f52cd9","unresolved":false,"context_lines":[{"line_number":187,"context_line":"                segment \u003d self.allocate_ext_net_segment(session)"},{"line_number":188,"context_line":"                db.add_network_segment(session, network_id, segment)"},{"line_number":189,"context_line":"                if segment.get(api.MTU) \u003e 0:"},{"line_number":190,"context_line":"                    mtu.append(segment[api.MTU])"},{"line_number":191,"context_line":"            else:"},{"line_number":192,"context_line":"                segment \u003d self.allocate_tenant_segment(session)"},{"line_number":193,"context_line":"                db.add_network_segment(session, network_id, segment)"}],"source_content_type":"text/x-python","patch_set":24,"id":"9a80dd14_9e70f2a5","line":190,"in_reply_to":"9a80dd14_8d344e4b","updated":"2015-03-18 08:57:28.000000000","message":"If we will add this code in _process_provider_create then it will call allocate_ext_net_segment()\nand this returns segment like:\n    driver \u003d self.drivers.get(network_type)\n    segment \u003d driver.obj.allocate_tenant_segment(session)\n\nand again at line no.179 it will return same thing\n    segment \u003d self.reserve_provider_segment()\nwhen _process_provider_create() will be called in create_network_segments()\n\nCheck: reserve_provider_segment()\n    driver \u003d self.drivers.get(network_type)\n        return driver.obj.reserve_provider_segment(session, segment)","commit_id":"a58c6493076d2d9aa9d055782b3ce0f270bb4e29"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"b411ff1a3737076f88ab14e468d56168f0ea88a7","unresolved":false,"context_lines":[{"line_number":187,"context_line":"                segment \u003d self.allocate_ext_net_segment(session)"},{"line_number":188,"context_line":"                db.add_network_segment(session, network_id, segment)"},{"line_number":189,"context_line":"                if segment.get(api.MTU) \u003e 0:"},{"line_number":190,"context_line":"                    mtu.append(segment[api.MTU])"},{"line_number":191,"context_line":"            else:"},{"line_number":192,"context_line":"                segment \u003d self.allocate_tenant_segment(session)"},{"line_number":193,"context_line":"                db.add_network_segment(session, network_id, segment)"}],"source_content_type":"text/x-python","patch_set":24,"id":"9a80dd14_940d2e38","line":190,"in_reply_to":"9a80dd14_9e70f2a5","updated":"2015-03-18 11:38:21.000000000","message":"The code copy is genuine here as explained by Aman above. \n\nIf we move this in _process_provide_create the method below will be called twice which allocate the segments twice for a single network which we don\u0027t want.\n\ndef allocate_partially_specified_segment()\nhttps://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/helpers.py#L56\n\nReferences:\n\nhttps://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/type_vlan.py#L224\n\nhttps://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/type_vlan.py#L213","commit_id":"a58c6493076d2d9aa9d055782b3ce0f270bb4e29"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"8833084e488bc5ed6fbb9bd60896ab604730f226","unresolved":false,"context_lines":[{"line_number":167,"context_line":"            LOG.info(_LI(\"Initializing driver for type \u0027%s\u0027\"), network_type)"},{"line_number":168,"context_line":"            driver.obj.initialize()"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    def create_network_segments(self, context, network, tenant_id):"},{"line_number":171,"context_line":"        \"\"\"Call type drivers to create network segments.\"\"\""},{"line_number":172,"context_line":"        segments \u003d self._process_provider_create(network)"},{"line_number":173,"context_line":"        session \u003d context.session"}],"source_content_type":"text/x-python","patch_set":27,"id":"fa963961_f2f2f499","line":170,"updated":"2015-03-27 09:20:35.000000000","message":"how about we just populate this here to pretent we have input from user with right network type:\n\nif self._get_attribute(network, external_net.EXTERNAL):\n    if no provider_network:network_type is specified and cfg.CONF.ml2.external_network_type:\n       network[\u0027 provider_network:network_type\u0027] \u003d cfg.CONF.ml2.external_network_type","commit_id":"5edbe5552d23728ae18f8d5a0fe39a054bf1a2bd"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"66b5cf4017a8a2a38527482e4e177279744d988f","unresolved":false,"context_lines":[{"line_number":167,"context_line":"            LOG.info(_LI(\"Initializing driver for type \u0027%s\u0027\"), network_type)"},{"line_number":168,"context_line":"            driver.obj.initialize()"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    def create_network_segments(self, context, network, tenant_id):"},{"line_number":171,"context_line":"        \"\"\"Call type drivers to create network segments.\"\"\""},{"line_number":172,"context_line":"        segments \u003d self._process_provider_create(network)"},{"line_number":173,"context_line":"        session \u003d context.session"}],"source_content_type":"text/x-python","patch_set":27,"id":"fa963961_6d83a5cd","line":170,"in_reply_to":"fa963961_f2f2f499","updated":"2015-03-27 09:53:18.000000000","message":"@gongysh: If user will set the network type then it will be checked by _process_provider_create() method and it will return segments but in case if user does not set any attributes then line number 172 will not have any segment and it will go to line number 185.\n\nif self._get_attribute(network, external_net.EXTERNAL):\n    if no provider_network:network_type is specified and cfg.CONF.ml2.external_network_type:\n       network[\u0027 provider_network:network_type\u0027] \u003d cfg.CONF.ml2.external_network_type\n\nIn your case, it will work only when external_network_type will be \"local\" because for local, segmentation id and other attributes are not required.\nBut in case of VLAN or VXLAN, segmentation id and other attributes are needed. So, can you tell me from where it will take segmentation id and other attributes.","commit_id":"5edbe5552d23728ae18f8d5a0fe39a054bf1a2bd"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"6c6e1fe469d4e71cb979e00684ec2d623aaf0b31","unresolved":false,"context_lines":[{"line_number":167,"context_line":"            LOG.info(_LI(\"Initializing driver for type \u0027%s\u0027\"), network_type)"},{"line_number":168,"context_line":"            driver.obj.initialize()"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    def create_network_segments(self, context, network, tenant_id):"},{"line_number":171,"context_line":"        \"\"\"Call type drivers to create network segments.\"\"\""},{"line_number":172,"context_line":"        segments \u003d self._process_provider_create(network)"},{"line_number":173,"context_line":"        session \u003d context.session"}],"source_content_type":"text/x-python","patch_set":27,"id":"fa963961_8d2b8982","line":170,"in_reply_to":"fa963961_f2f2f499","updated":"2015-03-27 09:32:29.000000000","message":"@gongysh: We didn\u0027t get your comment above. It would be great if you elaborate further.\n\nAnd, with this code snippet: \nif self._get_attribute(network, external_net.EXTERNAL):\n    if no provider_network:network_type is specified and cfg.CONF.ml2.external_network_type:\n       network[\u0027 provider_network:network_type\u0027] \u003d cfg.CONF.ml2.external_network_type\n\nHow will you fetch the segmentation ID and other attributes for a given network type like VLAN, VXLAN etc.?","commit_id":"5edbe5552d23728ae18f8d5a0fe39a054bf1a2bd"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"734e5673681b85e018b8e848692cc4be24882726","unresolved":false,"context_lines":[{"line_number":185,"context_line":"            elif (cfg.CONF.ml2.external_network_type and"},{"line_number":186,"context_line":"                  self._get_attribute(network, external_net.EXTERNAL)):"},{"line_number":187,"context_line":"                segment \u003d self.allocate_ext_net_segment(session)"},{"line_number":188,"context_line":"                db.add_network_segment(session, network_id, segment)"},{"line_number":189,"context_line":"                if segment.get(api.MTU) \u003e 0:"},{"line_number":190,"context_line":"                    mtu.append(segment[api.MTU])"},{"line_number":191,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":27,"id":"da9b358b_8695a7e5","line":188,"updated":"2015-03-30 14:17:26.000000000","message":"there\u0027s some code duplication here - lines 188-190, with the only difference being the segment_index.\nIt should not be difficult to rework the method to avoid such duplication","commit_id":"5edbe5552d23728ae18f8d5a0fe39a054bf1a2bd"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"8e48700cd3fc25c33f1005003d8df6feb20f6e56","unresolved":false,"context_lines":[{"line_number":185,"context_line":"            elif (cfg.CONF.ml2.external_network_type and"},{"line_number":186,"context_line":"                  self._get_attribute(network, external_net.EXTERNAL)):"},{"line_number":187,"context_line":"                segment \u003d self.allocate_ext_net_segment(session)"},{"line_number":188,"context_line":"                db.add_network_segment(session, network_id, segment)"},{"line_number":189,"context_line":"                if segment.get(api.MTU) \u003e 0:"},{"line_number":190,"context_line":"                    mtu.append(segment[api.MTU])"},{"line_number":191,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":27,"id":"da9b358b_82545321","line":188,"in_reply_to":"da9b358b_8695a7e5","updated":"2015-03-31 07:10:13.000000000","message":"Done","commit_id":"5edbe5552d23728ae18f8d5a0fe39a054bf1a2bd"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"734e5673681b85e018b8e848692cc4be24882726","unresolved":false,"context_lines":[{"line_number":232,"context_line":"        segment \u003d driver.obj.allocate_tenant_segment(session)"},{"line_number":233,"context_line":"        if segment:"},{"line_number":234,"context_line":"            return segment"},{"line_number":235,"context_line":"        raise exc.NoNetworkAvailable()"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"    def release_network_segments(self, session, network_id):"},{"line_number":238,"context_line":"        segments \u003d db.get_network_segments(session, network_id,"}],"source_content_type":"text/x-python","patch_set":27,"id":"da9b358b_463b1fec","line":235,"updated":"2015-03-30 14:17:26.000000000","message":"allocate_ext_net_segment also appears to unnecessarily duplicate code:\n\ndef allocate_segment(self, session, network_type):\n    driver \u003d self.drivers.get(network_type)\n    return driver.obj.allocate_tenant_segment(session)\n\ndef allocate_tenant_segment(self, session):\n    for network_type in self.tenant_network_types:\n       segment \u003d self.allocate_segment(session, network_type)\n       if segment:\n            return segment\n    raise exc.NoNetworkAvailable()\n\ndef allocate_ext_net_segment(self, session):\n    segment \u003d allocate_segment(session, cfg.CONF.ml2.external_network_type)\n    if segment:\n        return segment\n    raise exc.NoNetworkAvaialble()","commit_id":"5edbe5552d23728ae18f8d5a0fe39a054bf1a2bd"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"8e48700cd3fc25c33f1005003d8df6feb20f6e56","unresolved":false,"context_lines":[{"line_number":232,"context_line":"        segment \u003d driver.obj.allocate_tenant_segment(session)"},{"line_number":233,"context_line":"        if segment:"},{"line_number":234,"context_line":"            return segment"},{"line_number":235,"context_line":"        raise exc.NoNetworkAvailable()"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"    def release_network_segments(self, session, network_id):"},{"line_number":238,"context_line":"        segments \u003d db.get_network_segments(session, network_id,"}],"source_content_type":"text/x-python","patch_set":27,"id":"da9b358b_42352bf5","line":235,"in_reply_to":"da9b358b_022a832c","updated":"2015-03-31 07:10:13.000000000","message":"Done","commit_id":"5edbe5552d23728ae18f8d5a0fe39a054bf1a2bd"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"4e84eaa0d103a463bc86d4e88d50bf50d74ad56b","unresolved":false,"context_lines":[{"line_number":232,"context_line":"        segment \u003d driver.obj.allocate_tenant_segment(session)"},{"line_number":233,"context_line":"        if segment:"},{"line_number":234,"context_line":"            return segment"},{"line_number":235,"context_line":"        raise exc.NoNetworkAvailable()"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"    def release_network_segments(self, session, network_id):"},{"line_number":238,"context_line":"        segments \u003d db.get_network_segments(session, network_id,"}],"source_content_type":"text/x-python","patch_set":27,"id":"da9b358b_022a832c","line":235,"in_reply_to":"da9b358b_463b1fec","updated":"2015-03-31 06:47:35.000000000","message":"Since all are local methods, the method names should start with _.\n\nEg: def _allocate_segment(self, session, network_type)\n    def _allocate_tenant_segment(self, session)\n    def _allocate_ext_net_segment(self, session)","commit_id":"5edbe5552d23728ae18f8d5a0fe39a054bf1a2bd"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"6b38dfe26d8be53982ffb84b4bf274d20ab87790","unresolved":false,"context_lines":[{"line_number":170,"context_line":"    def _add_network_segment(self, session, network_id, segment,"},{"line_number":171,"context_line":"                             segment_index\u003d0):"},{"line_number":172,"context_line":"        db.add_network_segment(session, network_id, segment, segment_index)"},{"line_number":173,"context_line":"        if segment.get(api.MTU) \u003e 0:"},{"line_number":174,"context_line":"            self.mtu.append(segment[api.MTU])"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"    def create_network_segments(self, context, network, tenant_id):"}],"source_content_type":"text/x-python","patch_set":28,"id":"da9b358b_1b4ae5ac","line":173,"updated":"2015-03-31 12:49:08.000000000","message":"you are using segment.get(api.MTU) so api.MTU not in segment is allowed? In such case segment.get(api.MTU) \u003d\u003d None\n\nHow is it related to the change?","commit_id":"05c0bf5883fed5807b8e5c43350d13754222e082"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"f49b5a87fbf40ac6bfdc2968f3650e343528990b","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        \"\"\"Call type drivers to create network segments.\"\"\""},{"line_number":178,"context_line":"        segments \u003d self._process_provider_create(network)"},{"line_number":179,"context_line":"        session \u003d context.session"},{"line_number":180,"context_line":"        self.mtu \u003d []"},{"line_number":181,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":182,"context_line":"            network_id \u003d network[\u0027id\u0027]"},{"line_number":183,"context_line":"            if segments:"}],"source_content_type":"text/x-python","patch_set":28,"id":"da9b358b_aca066a0","line":180,"updated":"2015-03-31 09:50:01.000000000","message":"i don\u0027t think it\u0027s a good idea to use self\u0027s attribute this way.\n\nhow about:\n\n def create_network_segments():\n  mtu \u003d []\n  def _add_network_segment():\n   mtu.append()\n  :\n  :","commit_id":"05c0bf5883fed5807b8e5c43350d13754222e082"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"d56a3ce80cf9cddb56b3345f53f0adbc879369ae","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        \"\"\"Call type drivers to create network segments.\"\"\""},{"line_number":178,"context_line":"        segments \u003d self._process_provider_create(network)"},{"line_number":179,"context_line":"        session \u003d context.session"},{"line_number":180,"context_line":"        self.mtu \u003d []"},{"line_number":181,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":182,"context_line":"            network_id \u003d network[\u0027id\u0027]"},{"line_number":183,"context_line":"            if segments:"}],"source_content_type":"text/x-python","patch_set":28,"id":"da9b358b_6d0ff72e","line":180,"in_reply_to":"da9b358b_47f2d4d3","updated":"2015-03-31 11:41:07.000000000","message":"@Yamamoto: I don\u0027t think using nested function just to avoid self\u0027s attribute like self.mtu \u003d [] is good idea.\n\nBy using nested function again the method create_network_segments() will look bigger and complex.","commit_id":"05c0bf5883fed5807b8e5c43350d13754222e082"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"789d7edf1258c314f22b6290acdc31ac893a3d98","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        \"\"\"Call type drivers to create network segments.\"\"\""},{"line_number":178,"context_line":"        segments \u003d self._process_provider_create(network)"},{"line_number":179,"context_line":"        session \u003d context.session"},{"line_number":180,"context_line":"        self.mtu \u003d []"},{"line_number":181,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":182,"context_line":"            network_id \u003d network[\u0027id\u0027]"},{"line_number":183,"context_line":"            if segments:"}],"source_content_type":"text/x-python","patch_set":28,"id":"da9b358b_6d693725","line":180,"in_reply_to":"da9b358b_47f2d4d3","updated":"2015-03-31 12:01:10.000000000","message":"Here\u0027s one for you...\nhttp://git.openstack.org/cgit/openstack/neutron/tree/neutron/db/db_base_plugin_v2.py#n250","commit_id":"05c0bf5883fed5807b8e5c43350d13754222e082"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"789d7edf1258c314f22b6290acdc31ac893a3d98","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        \"\"\"Call type drivers to create network segments.\"\"\""},{"line_number":178,"context_line":"        segments \u003d self._process_provider_create(network)"},{"line_number":179,"context_line":"        session \u003d context.session"},{"line_number":180,"context_line":"        self.mtu \u003d []"},{"line_number":181,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":182,"context_line":"            network_id \u003d network[\u0027id\u0027]"},{"line_number":183,"context_line":"            if segments:"}],"source_content_type":"text/x-python","patch_set":28,"id":"da9b358b_2d732f17","line":180,"in_reply_to":"da9b358b_6d0ff72e","updated":"2015-03-31 12:01:10.000000000","message":"You\u0027re free to not use nested functions - albeit I do not see all this complexity... surely it would have taken less to do that rather than arguing.\nFrom Romil\u0027s answer it also appears that it\u0027s not entirely clear how nested functions work in Python?\n\nHonestly, there are a lot of things to question is you believe that introducing an instance variable for the sole purpose of sharing a value between create_network_segments and _add_network_segment.","commit_id":"05c0bf5883fed5807b8e5c43350d13754222e082"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"e1a359512ebc3d8d9cda52bd4122c6916d9422a0","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        \"\"\"Call type drivers to create network segments.\"\"\""},{"line_number":178,"context_line":"        segments \u003d self._process_provider_create(network)"},{"line_number":179,"context_line":"        session \u003d context.session"},{"line_number":180,"context_line":"        self.mtu \u003d []"},{"line_number":181,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":182,"context_line":"            network_id \u003d network[\u0027id\u0027]"},{"line_number":183,"context_line":"            if segments:"}],"source_content_type":"text/x-python","patch_set":28,"id":"da9b358b_90f93483","line":180,"in_reply_to":"da9b358b_6d693725","updated":"2015-03-31 12:25:07.000000000","message":"@Salvatore: First of all I am not arguing and I could understand the nested functions work in python.\n\nI have given the justification why we have used the helper_method just to simplify the things.\n\nBut, still I don\u0027t feel like to add the nested method here since you have given -1, I am forced to do so :(.\n\nI would support to use multiple helper_methods instead of putting a chunk of code inside a method just for a single variable (aka MTU). It will not break anything if we use self and it will be helpful eventually if some other method wants to use it.","commit_id":"05c0bf5883fed5807b8e5c43350d13754222e082"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"c5fba166b5f5fce1a61c285952d78fdb7b332e6a","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        \"\"\"Call type drivers to create network segments.\"\"\""},{"line_number":178,"context_line":"        segments \u003d self._process_provider_create(network)"},{"line_number":179,"context_line":"        session \u003d context.session"},{"line_number":180,"context_line":"        self.mtu \u003d []"},{"line_number":181,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":182,"context_line":"            network_id \u003d network[\u0027id\u0027]"},{"line_number":183,"context_line":"            if segments:"}],"source_content_type":"text/x-python","patch_set":28,"id":"da9b358b_47f2d4d3","line":180,"in_reply_to":"da9b358b_878c5d80","updated":"2015-03-31 10:45:06.000000000","message":"@Yamamoto: Can you please share the reference link in neutron where we have used this kind of coding style?\n\ndef create_network_segments():\n     mtu \u003d []\n     def _add_network_segment():\n          if segment.get(api.MTU) \u003e 0:\n               mtu.append(segment[api.MTU])\n\n               :\n               :\n     self._add_network_segment()","commit_id":"05c0bf5883fed5807b8e5c43350d13754222e082"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"5a6eeed082cd5a67c3ea993946c3391a36a587d5","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        \"\"\"Call type drivers to create network segments.\"\"\""},{"line_number":178,"context_line":"        segments \u003d self._process_provider_create(network)"},{"line_number":179,"context_line":"        session \u003d context.session"},{"line_number":180,"context_line":"        self.mtu \u003d []"},{"line_number":181,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":182,"context_line":"            network_id \u003d network[\u0027id\u0027]"},{"line_number":183,"context_line":"            if segments:"}],"source_content_type":"text/x-python","patch_set":28,"id":"da9b358b_f012bb61","line":180,"in_reply_to":"da9b358b_90f93483","updated":"2015-03-31 14:16:29.000000000","message":"I actually wrote that you\u0027re free to not use nested functions.","commit_id":"05c0bf5883fed5807b8e5c43350d13754222e082"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"09069c7c0b0da6cb41ddb14cd34ef4036e9819e4","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        \"\"\"Call type drivers to create network segments.\"\"\""},{"line_number":178,"context_line":"        segments \u003d self._process_provider_create(network)"},{"line_number":179,"context_line":"        session \u003d context.session"},{"line_number":180,"context_line":"        self.mtu \u003d []"},{"line_number":181,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":182,"context_line":"            network_id \u003d network[\u0027id\u0027]"},{"line_number":183,"context_line":"            if segments:"}],"source_content_type":"text/x-python","patch_set":28,"id":"da9b358b_878c5d80","line":180,"in_reply_to":"da9b358b_aca066a0","updated":"2015-03-31 10:17:12.000000000","message":"@Yamamoto: Could you please elaborate a bit.\n\nI guess you missed this if statement:\n\n   if segment.get(api.MTU) \u003e 0.\n\nBetter, you provide actual code snippet.\n\nNote: If you don\u0027t use self it will give undefined variable mtu in def _add_network_segment() since it\u0027s a local variable in def create_network_segments().","commit_id":"05c0bf5883fed5807b8e5c43350d13754222e082"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"d21dded2a3aabdaa8bbaf4c05a98c74572bfb3ed","unresolved":false,"context_lines":[{"line_number":221,"context_line":"    def _allocate_segment(self, session, network_type):"},{"line_number":222,"context_line":"        driver \u003d self.drivers.get(network_type)"},{"line_number":223,"context_line":"        return driver.obj.allocate_tenant_segment(session)"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"    def _allocate_tenant_segment(self, session):"},{"line_number":226,"context_line":"        for network_type in self.tenant_network_types:"},{"line_number":227,"context_line":"            segment \u003d self._allocate_segment(session, network_type)"}],"source_content_type":"text/x-python","patch_set":28,"id":"da9b358b_655f19e6","line":224,"updated":"2015-03-31 07:29:41.000000000","message":"@Aman: By any chance, we may need to post another patch-set.  \nWe could rename it to:\n\ndef _allocate_tenant_net_segment(self, session)","commit_id":"05c0bf5883fed5807b8e5c43350d13754222e082"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"0944ab768ffb9fde67fbf3420b17091b4056eb7f","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def __init__(self):"},{"line_number":41,"context_line":"        # Mapping from type name to DriverManager"},{"line_number":42,"context_line":"        self.drivers \u003d {}"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"        LOG.info(_LI(\"Configured type driver names: %s\"),"},{"line_number":45,"context_line":"                 cfg.CONF.ml2.type_drivers)"}],"source_content_type":"text/x-python","patch_set":29,"id":"da9b358b_063ba59d","line":42,"updated":"2015-03-31 14:36:20.000000000","message":"self.mtu \u003d []","commit_id":"17fdd706d2e7ed4feb1b9297aff4582754e0afa8"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"0c865ef4bcb98c44b3381d92cd7ef825b1eab3c2","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        \"\"\"Call type drivers to create network segments.\"\"\""},{"line_number":178,"context_line":"        segments \u003d self._process_provider_create(network)"},{"line_number":179,"context_line":"        session \u003d context.session"},{"line_number":180,"context_line":"        self.mtu \u003d []"},{"line_number":181,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":182,"context_line":"            network_id \u003d network[\u0027id\u0027]"},{"line_number":183,"context_line":"            if segments:"}],"source_content_type":"text/x-python","patch_set":29,"id":"da9b358b_931c9914","line":180,"updated":"2015-03-31 14:26:26.000000000","message":"Instantiating an object variable in the middle of the object life cycle is prone to errors and it\u0027s a gross abuse of the Python language. Please refrain from doing so.\n\nLet\u0027s stick to good design and coding practices.","commit_id":"17fdd706d2e7ed4feb1b9297aff4582754e0afa8"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"3b7a36934a3cdcba9e72297ea2bb965d63bbbee4","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        \"\"\"Call type drivers to create network segments.\"\"\""},{"line_number":178,"context_line":"        segments \u003d self._process_provider_create(network)"},{"line_number":179,"context_line":"        session \u003d context.session"},{"line_number":180,"context_line":"        self.mtu \u003d []"},{"line_number":181,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":182,"context_line":"            network_id \u003d network[\u0027id\u0027]"},{"line_number":183,"context_line":"            if segments:"}],"source_content_type":"text/x-python","patch_set":29,"id":"da9b358b_622a3d80","line":180,"in_reply_to":"da9b358b_66bf11fc","updated":"2015-04-01 07:46:38.000000000","message":"@Aman: As discussed, it\u0027s better we should pass the reference of mtu as part of \n\nself._add_network_segment(session, network_id, segment,segment_index, mtu) to avoid chances of errors.","commit_id":"17fdd706d2e7ed4feb1b9297aff4582754e0afa8"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"0944ab768ffb9fde67fbf3420b17091b4056eb7f","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        \"\"\"Call type drivers to create network segments.\"\"\""},{"line_number":178,"context_line":"        segments \u003d self._process_provider_create(network)"},{"line_number":179,"context_line":"        session \u003d context.session"},{"line_number":180,"context_line":"        self.mtu \u003d []"},{"line_number":181,"context_line":"        with session.begin(subtransactions\u003dTrue):"},{"line_number":182,"context_line":"            network_id \u003d network[\u0027id\u0027]"},{"line_number":183,"context_line":"            if segments:"}],"source_content_type":"text/x-python","patch_set":29,"id":"da9b358b_66bf11fc","line":180,"in_reply_to":"da9b358b_931c9914","updated":"2015-03-31 14:36:20.000000000","message":"How about declaring in __init__ method ?","commit_id":"17fdd706d2e7ed4feb1b9297aff4582754e0afa8"},{"author":{"_account_id":9423,"name":"Roey Chen","email":"roeyc@vmware.com","username":"roeyc"},"change_message_id":"a16dfbc384e1184b9556ce7c8ac20e667caa7d57","unresolved":false,"context_lines":[{"line_number":167,"context_line":"            LOG.info(_LI(\"Initializing driver for type \u0027%s\u0027\"), network_type)"},{"line_number":168,"context_line":"            driver.obj.initialize()"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    def _add_network_segment(self, session, mtu, network_id, segment,"},{"line_number":171,"context_line":"                             segment_index\u003d0):"},{"line_number":172,"context_line":"        db.add_network_segment(session, network_id, segment, segment_index)"},{"line_number":173,"context_line":"        if segment.get(api.MTU) \u003e 0:"}],"source_content_type":"text/x-python","patch_set":31,"id":"baa041b7_d525b65c","line":170,"updated":"2015-04-01 16:46:33.000000000","message":"I think that the order of parameters could be better (IMHO), with respect to the method name.\ne.g -\n\ndef _add_network_segment(self, session, network_id, segment, mtu,\n                         segment_index\u003d0)","commit_id":"226aeb0a88597bd4124b556b199769df10eaf596"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"d9f708c20971757d9ad2c4f6ef6af69efa9a36f6","unresolved":false,"context_lines":[{"line_number":167,"context_line":"            LOG.info(_LI(\"Initializing driver for type \u0027%s\u0027\"), network_type)"},{"line_number":168,"context_line":"            driver.obj.initialize()"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    def _add_network_segment(self, session, mtu, network_id, segment,"},{"line_number":171,"context_line":"                             segment_index\u003d0):"},{"line_number":172,"context_line":"        db.add_network_segment(session, network_id, segment, segment_index)"},{"line_number":173,"context_line":"        if segment.get(api.MTU) \u003e 0:"}],"source_content_type":"text/x-python","patch_set":31,"id":"baa041b7_eaafb87b","line":170,"in_reply_to":"baa041b7_d525b65c","updated":"2015-04-01 16:57:23.000000000","message":"@Roey: We\u0027ll make you happy as well :)\n\nWe will post the next patchset addressing this.","commit_id":"226aeb0a88597bd4124b556b199769df10eaf596"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"d862895a5bed6524912ed8329b609a4253cabda5","unresolved":false,"context_lines":[{"line_number":193,"context_line":"                self._add_network_segment(session, network_id, segment, mtu)"},{"line_number":194,"context_line":"            else:"},{"line_number":195,"context_line":"                segment \u003d self._allocate_tenant_net_segment(session)"},{"line_number":196,"context_line":"                self._add_network_segment(session, network_id, segment, mtu)"},{"line_number":197,"context_line":"        network[api.MTU] \u003d min(mtu) if mtu else 0"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"    def is_partial_segment(self, segment):"}],"source_content_type":"text/x-python","patch_set":41,"id":"7aaa499b_509835c0","line":196,"updated":"2015-04-14 22:47:31.000000000","message":"same method is called in line 193. in case you  will have another patchset, it makes sense to rearrange the code to invoke this method only once","commit_id":"d4829f7d53f81f1749d675821b7ed8187e3a19fc"}],"neutron/tests/unit/ml2/test_ml2_plugin.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"2603ec56976c457f1adb6b2c08d5da3051ce2536","unresolved":false,"context_lines":[{"line_number":156,"context_line":"        # For external network, expect network type to be \u0027local\u0027"},{"line_number":157,"context_line":"        self.assertEqual(\u0027local\u0027, network[\u0027network\u0027][pnet.NETWORK_TYPE])"},{"line_number":158,"context_line":"        # No physical network specified, expect \u0027None\u0027"},{"line_number":159,"context_line":"        self.assertEqual(None, network[\u0027network\u0027][pnet.PHYSICAL_NETWORK])"},{"line_number":160,"context_line":"        # External network will not have a segmentation id"},{"line_number":161,"context_line":"        self.assertEqual(None, network[\u0027network\u0027][pnet.SEGMENTATION_ID])"},{"line_number":162,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_55dc93e4","line":159,"updated":"2015-01-23 12:39:17.000000000","message":"use assertNone","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"6683734553469364e3d70cf1edf45d4059619658","unresolved":false,"context_lines":[{"line_number":156,"context_line":"        # For external network, expect network type to be \u0027local\u0027"},{"line_number":157,"context_line":"        self.assertEqual(\u0027local\u0027, network[\u0027network\u0027][pnet.NETWORK_TYPE])"},{"line_number":158,"context_line":"        # No physical network specified, expect \u0027None\u0027"},{"line_number":159,"context_line":"        self.assertEqual(None, network[\u0027network\u0027][pnet.PHYSICAL_NETWORK])"},{"line_number":160,"context_line":"        # External network will not have a segmentation id"},{"line_number":161,"context_line":"        self.assertEqual(None, network[\u0027network\u0027][pnet.SEGMENTATION_ID])"},{"line_number":162,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_0e99b46d","line":159,"in_reply_to":"1a930d6b_55dc93e4","updated":"2015-01-27 12:51:02.000000000","message":"Done","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"5329adacf033cf09c6d3dfefe4603c28d4069882","unresolved":false,"context_lines":[{"line_number":158,"context_line":"        # No physical network specified, expect \u0027None\u0027"},{"line_number":159,"context_line":"        self.assertEqual(None, network[\u0027network\u0027][pnet.PHYSICAL_NETWORK])"},{"line_number":160,"context_line":"        # External network will not have a segmentation id"},{"line_number":161,"context_line":"        self.assertEqual(None, network[\u0027network\u0027][pnet.SEGMENTATION_ID])"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"        self.assertNotIn(mpnet.SEGMENTS, network[\u0027network\u0027])"},{"line_number":164,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_566d53cb","line":161,"updated":"2015-01-25 19:20:49.000000000","message":"ditto","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"6683734553469364e3d70cf1edf45d4059619658","unresolved":false,"context_lines":[{"line_number":158,"context_line":"        # No physical network specified, expect \u0027None\u0027"},{"line_number":159,"context_line":"        self.assertEqual(None, network[\u0027network\u0027][pnet.PHYSICAL_NETWORK])"},{"line_number":160,"context_line":"        # External network will not have a segmentation id"},{"line_number":161,"context_line":"        self.assertEqual(None, network[\u0027network\u0027][pnet.SEGMENTATION_ID])"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"        self.assertNotIn(mpnet.SEGMENTS, network[\u0027network\u0027])"},{"line_number":164,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_2e9cb05c","line":161,"in_reply_to":"1a930d6b_566d53cb","updated":"2015-01-27 12:51:02.000000000","message":"Done","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"2181c55af3cec5b0dcb8f629011b05f788b1b247","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        network \u003d self.deserialize(self.fmt,"},{"line_number":155,"context_line":"                                   network_req.get_response(self.api))"},{"line_number":156,"context_line":"        # For external network, expect network type to be \u0027local\u0027"},{"line_number":157,"context_line":"        self.assertEqual(\u0027local\u0027, network[\u0027network\u0027][pnet.NETWORK_TYPE])"},{"line_number":158,"context_line":"        # No physical network specified, expect \u0027None\u0027"},{"line_number":159,"context_line":"        self.assertIsNone(network[\u0027network\u0027][pnet.PHYSICAL_NETWORK])"},{"line_number":160,"context_line":"        # External network will not have a segmentation id"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa81d914_e9db0319","line":157,"range":{"start_line":157,"start_character":26,"end_line":157,"end_character":31},"updated":"2015-01-29 05:05:48.000000000","message":"better to use TYPE_LOCAL","commit_id":"7301dbf3c23b5fd688a6cb7efe90220a71508d02"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"fc37e78b5348956c3c054a900a020ce79a07ad96","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        network \u003d self.deserialize(self.fmt,"},{"line_number":155,"context_line":"                                   network_req.get_response(self.api))"},{"line_number":156,"context_line":"        # For external network, expect network type to be \u0027local\u0027"},{"line_number":157,"context_line":"        self.assertEqual(service_constants.TYPE_LOCAL, network[\u0027network\u0027][pnet.NETWORK_TYPE])"},{"line_number":158,"context_line":"        # No physical network specified, expect \u0027None\u0027"},{"line_number":159,"context_line":"        self.assertIsNone(network[\u0027network\u0027][pnet.PHYSICAL_NETWORK])"},{"line_number":160,"context_line":"        # External network will not have a segmentation id"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa81d914_4156715d","line":157,"updated":"2015-01-30 05:30:04.000000000","message":"too long line.  i guess pep8 will complain.","commit_id":"a20d27995a27a2e07ffca2b211fdd100cd170475"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"6b818453c09ce43caf78e9a35f46ba3fc9892969","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        network \u003d self.deserialize(self.fmt,"},{"line_number":155,"context_line":"                                   network_req.get_response(self.api))"},{"line_number":156,"context_line":"        # For external network, expect network type to be \u0027local\u0027"},{"line_number":157,"context_line":"        self.assertEqual(service_constants.TYPE_LOCAL, network[\u0027network\u0027][pnet.NETWORK_TYPE])"},{"line_number":158,"context_line":"        # No physical network specified, expect \u0027None\u0027"},{"line_number":159,"context_line":"        self.assertIsNone(network[\u0027network\u0027][pnet.PHYSICAL_NETWORK])"},{"line_number":160,"context_line":"        # External network will not have a segmentation id"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa81d914_84495762","line":157,"in_reply_to":"fa81d914_4156715d","updated":"2015-01-30 05:46:18.000000000","message":"Done","commit_id":"a20d27995a27a2e07ffca2b211fdd100cd170475"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"1289cf5db79a819c31590450a1f065d096ad2267","unresolved":false,"context_lines":[{"line_number":32,"context_line":"from neutron.extensions import portbindings"},{"line_number":33,"context_line":"from neutron.extensions import providernet as pnet"},{"line_number":34,"context_line":"from neutron import manager"},{"line_number":35,"context_line":"from neutron.plugins.common import constants as p_const"},{"line_number":36,"context_line":"from neutron.plugins.ml2.common import exceptions as ml2_exc"},{"line_number":37,"context_line":"from neutron.plugins.ml2 import config"},{"line_number":38,"context_line":"from neutron.plugins.ml2 import db as ml2_db"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_61139a0d","line":35,"updated":"2015-02-10 09:35:41.000000000","message":"Just renamed from service_constants to p_const to have a consistency across other files in neutron. \n\nKindly, don\u0027t consider it as unrelated changes :)","commit_id":"6fc452cb6e4b2ee5cc4cfd7a1e78052a49ab14c3"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"bad684fe0aee48ef174d9ca65969c7d895cae5e8","unresolved":false,"context_lines":[{"line_number":27,"context_line":"from neutron import context"},{"line_number":28,"context_line":"from neutron.db import db_base_plugin_v2 as base_plugin"},{"line_number":29,"context_line":"from neutron.db import l3_db"},{"line_number":30,"context_line":"from neutron.extensions import external_net as external_net"},{"line_number":31,"context_line":"from neutron.extensions import multiprovidernet as mpnet"},{"line_number":32,"context_line":"from neutron.extensions import portbindings"},{"line_number":33,"context_line":"from neutron.extensions import providernet as pnet"}],"source_content_type":"text/x-python","patch_set":19,"id":"9a80dd14_a0001002","line":30,"updated":"2015-03-12 19:31:10.000000000","message":"see here also, I am wondering what is the significance of doing this???\n\n  from neutron.extensions import external_net as external_net\n\nIt should be like this:\n  from neutron.extensions import external_net as ext_net\n\nLet me ask reviewers a simple question if a developer or anyone came across such kind of small refactoring while coding. Do he/she should first remember such all improvements and fix it in different review id?\n\nDon\u0027t you think it\u0027s not easy to remember???\n\nOr he/she should fix it immediately in the same review id if changes are few.\n\nWhy we should make such rules which may decrease our productivity itself???","commit_id":"a2a22c8d6dfa08af4ee091142cc53fea0e989570"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"c595c0be02199002f5b13f48dd20ef9cd8bfa829","unresolved":false,"context_lines":[{"line_number":32,"context_line":"from neutron.extensions import portbindings"},{"line_number":33,"context_line":"from neutron.extensions import providernet as pnet"},{"line_number":34,"context_line":"from neutron import manager"},{"line_number":35,"context_line":"from neutron.plugins.common import constants as p_const"},{"line_number":36,"context_line":"from neutron.plugins.ml2.common import exceptions as ml2_exc"},{"line_number":37,"context_line":"from neutron.plugins.ml2 import config"},{"line_number":38,"context_line":"from neutron.plugins.ml2 import db as ml2_db"}],"source_content_type":"text/x-python","patch_set":19,"id":"9a80dd14_5af9014d","line":35,"updated":"2015-03-12 19:06:14.000000000","message":"Also, in neutron tree I have seen we have imported this file as p_const instead of service_constants in most of the places.\n\nIdeally, we should have some consistency across files.\n\nFrankly, speaking while writing unit tests I wanted to use TYPE_LOCAL and I mistakenly imported twice like:\n\n  from neutron.plugins.common import constants as service_constants\n  from neutron.plugins.common import constants as p_const\n\nLater I realize it\u0027s a same file with different alias. So, I changed it to p_consts.","commit_id":"a2a22c8d6dfa08af4ee091142cc53fea0e989570"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"71e7cc1240e0b4fbfac006122eff6cd7ec77c673","unresolved":false,"context_lines":[{"line_number":322,"context_line":""},{"line_number":323,"context_line":"    def test_l3_cleanup_on_net_delete(self):"},{"line_number":324,"context_line":"        l3plugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":325,"context_line":"            p_const.L3_ROUTER_NAT)"},{"line_number":326,"context_line":"        kwargs \u003d {\u0027arg_list\u0027: (external_net.EXTERNAL,),"},{"line_number":327,"context_line":"                  external_net.EXTERNAL: True}"},{"line_number":328,"context_line":"        with self.network(**kwargs) as n:"}],"source_content_type":"text/x-python","patch_set":19,"id":"9a80dd14_d76a2cec","line":325,"updated":"2015-03-12 18:46:36.000000000","message":"these changes seem irrelevant, please consider using the old import to minimize needless conflict","commit_id":"a2a22c8d6dfa08af4ee091142cc53fea0e989570"},{"author":{"_account_id":14966,"name":"Denis Cavalcante","email":"dencaval@gmail.com","username":"denis.cavalcante"},"change_message_id":"dee5438f18e5da50ced4d6b21f9fff0acadc77c5","unresolved":false,"context_lines":[{"line_number":259,"context_line":"            self.assertEqual(db_api.MAX_RETRIES + 1, f.call_count)"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"class TestExternalNetwork(Ml2PluginV2TestCase):"},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"    def _create_external_network(self):"},{"line_number":265,"context_line":"        data \u003d {\u0027network\u0027: {\u0027name\u0027: \u0027net1\u0027,"}],"source_content_type":"text/x-python","patch_set":28,"id":"da9b358b_bb6d3906","line":262,"updated":"2015-03-31 12:50:19.000000000","message":"I think it is missing the unit test for \"when no provider attributes are specified, by default it is None\"","commit_id":"05c0bf5883fed5807b8e5c43350d13754222e082"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"a1d6df818abf4a232a5aef99823a2db592553808","unresolved":false,"context_lines":[{"line_number":259,"context_line":"            self.assertEqual(db_api.MAX_RETRIES + 1, f.call_count)"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"class TestExternalNetwork(Ml2PluginV2TestCase):"},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"    def _create_external_network(self):"},{"line_number":265,"context_line":"        data \u003d {\u0027network\u0027: {\u0027name\u0027: \u0027net1\u0027,"}],"source_content_type":"text/x-python","patch_set":28,"id":"da9b358b_61e38006","line":262,"in_reply_to":"da9b358b_bb6d3906","updated":"2015-03-31 13:25:36.000000000","message":"Done","commit_id":"05c0bf5883fed5807b8e5c43350d13754222e082"},{"author":{"_account_id":9423,"name":"Roey Chen","email":"roeyc@vmware.com","username":"roeyc"},"change_message_id":"a16dfbc384e1184b9556ce7c8ac20e667caa7d57","unresolved":false,"context_lines":[{"line_number":293,"context_line":"        # External network will not have multiple segments."},{"line_number":294,"context_line":"        self.assertNotIn(mpnet.SEGMENTS, network[\u0027network\u0027])"},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"    def test_external_network_type_local(self):"},{"line_number":297,"context_line":"        config.cfg.CONF.set_default(\u0027external_network_type\u0027,"},{"line_number":298,"context_line":"                                    p_const.TYPE_LOCAL,"},{"line_number":299,"context_line":"                                    group\u003d\u0027ml2\u0027)"}],"source_content_type":"text/x-python","patch_set":31,"id":"baa041b7_872265b8","line":296,"updated":"2015-04-01 16:46:33.000000000","message":"I might be wrong here, but this test doesn\u0027t really adds anything in terms of coverage.\nthe \"_type_none\" and \"_type_vlan\" tests are sufficient.","commit_id":"226aeb0a88597bd4124b556b199769df10eaf596"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"d9f708c20971757d9ad2c4f6ef6af69efa9a36f6","unresolved":false,"context_lines":[{"line_number":293,"context_line":"        # External network will not have multiple segments."},{"line_number":294,"context_line":"        self.assertNotIn(mpnet.SEGMENTS, network[\u0027network\u0027])"},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"    def test_external_network_type_local(self):"},{"line_number":297,"context_line":"        config.cfg.CONF.set_default(\u0027external_network_type\u0027,"},{"line_number":298,"context_line":"                                    p_const.TYPE_LOCAL,"},{"line_number":299,"context_line":"                                    group\u003d\u0027ml2\u0027)"}],"source_content_type":"text/x-python","patch_set":31,"id":"baa041b7_eafd786f","line":296,"in_reply_to":"baa041b7_872265b8","updated":"2015-04-01 16:57:23.000000000","message":"You are right, we will remove this.","commit_id":"226aeb0a88597bd4124b556b199769df10eaf596"}],"neutron/tests/unit/ml2/test_type_manager.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"2603ec56976c457f1adb6b2c08d5da3051ce2536","unresolved":false,"context_lines":[{"line_number":12,"context_line":"# implied.\r"},{"line_number":13,"context_line":"# See the License for the specific language governing permissions and\r"},{"line_number":14,"context_line":"# limitations under the License.\r"},{"line_number":15,"context_line":"\r"},{"line_number":16,"context_line":"from neutron.plugins.common import constants as service_constants\r"},{"line_number":17,"context_line":"from neutron.plugins.ml2 import config\r"},{"line_number":18,"context_line":"from neutron.plugins.ml2 import managers\r"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_75d7cfbf","line":15,"updated":"2015-01-23 12:39:17.000000000","message":"incorrect line returns","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"5329adacf033cf09c6d3dfefe4603c28d4069882","unresolved":false,"context_lines":[{"line_number":12,"context_line":"# implied.\r"},{"line_number":13,"context_line":"# See the License for the specific language governing permissions and\r"},{"line_number":14,"context_line":"# limitations under the License.\r"},{"line_number":15,"context_line":"\r"},{"line_number":16,"context_line":"from neutron.plugins.common import constants as service_constants\r"},{"line_number":17,"context_line":"from neutron.plugins.ml2 import config\r"},{"line_number":18,"context_line":"from neutron.plugins.ml2 import managers\r"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_76724fae","line":15,"in_reply_to":"1a930d6b_75d7cfbf","updated":"2015-01-25 19:20:49.000000000","message":"Done","commit_id":"2672ae83f6eadd077fe522aa46c5c27914950ba9"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"2289688580dd078375c6bee90680a94ab7b3d58c","unresolved":false,"context_lines":[{"line_number":36,"context_line":"                                     group\u003d\u0027ml2\u0027)"},{"line_number":37,"context_line":"        typeManager \u003d managers.TypeManager()"},{"line_number":38,"context_line":"        self.assertTrue(service_constants.TYPE_LOCAL in"},{"line_number":39,"context_line":"                        typeManager.drivers.keys())"},{"line_number":40,"context_line":"        self.assertFalse(service_constants.TYPE_FLAT in"},{"line_number":41,"context_line":"                         typeManager.drivers.keys())"},{"line_number":42,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa81d914_951d7576","line":39,"updated":"2015-01-28 07:21:45.000000000","message":"keys() - are not needed here.","commit_id":"42e27f413cdf711d99e151e5a1a0592f1dafb8b8"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"cf6417a5ed49ad803a0ce9ff7a1466d69da4e4de","unresolved":false,"context_lines":[{"line_number":36,"context_line":"                                     group\u003d\u0027ml2\u0027)"},{"line_number":37,"context_line":"        typeManager \u003d managers.TypeManager()"},{"line_number":38,"context_line":"        self.assertTrue(service_constants.TYPE_LOCAL in"},{"line_number":39,"context_line":"                        typeManager.drivers.keys())"},{"line_number":40,"context_line":"        self.assertFalse(service_constants.TYPE_FLAT in"},{"line_number":41,"context_line":"                         typeManager.drivers.keys())"},{"line_number":42,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa81d914_24dbb51c","line":39,"in_reply_to":"fa81d914_951d7576","updated":"2015-01-28 11:17:56.000000000","message":"Done","commit_id":"42e27f413cdf711d99e151e5a1a0592f1dafb8b8"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"2289688580dd078375c6bee90680a94ab7b3d58c","unresolved":false,"context_lines":[{"line_number":38,"context_line":"        self.assertTrue(service_constants.TYPE_LOCAL in"},{"line_number":39,"context_line":"                        typeManager.drivers.keys())"},{"line_number":40,"context_line":"        self.assertFalse(service_constants.TYPE_FLAT in"},{"line_number":41,"context_line":"                         typeManager.drivers.keys())"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    def test_no_type_driver_required(self):"},{"line_number":44,"context_line":"        type_drivers \u003d [service_constants.TYPE_FLAT,"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa81d914_b5127960","line":41,"updated":"2015-01-28 07:21:45.000000000","message":"the same","commit_id":"42e27f413cdf711d99e151e5a1a0592f1dafb8b8"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"cf6417a5ed49ad803a0ce9ff7a1466d69da4e4de","unresolved":false,"context_lines":[{"line_number":38,"context_line":"        self.assertTrue(service_constants.TYPE_LOCAL in"},{"line_number":39,"context_line":"                        typeManager.drivers.keys())"},{"line_number":40,"context_line":"        self.assertFalse(service_constants.TYPE_FLAT in"},{"line_number":41,"context_line":"                         typeManager.drivers.keys())"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    def test_no_type_driver_required(self):"},{"line_number":44,"context_line":"        type_drivers \u003d [service_constants.TYPE_FLAT,"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa81d914_44d8a91d","line":41,"in_reply_to":"fa81d914_b5127960","updated":"2015-01-28 11:17:56.000000000","message":"Done","commit_id":"42e27f413cdf711d99e151e5a1a0592f1dafb8b8"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"2289688580dd078375c6bee90680a94ab7b3d58c","unresolved":false,"context_lines":[{"line_number":48,"context_line":"                                     type_drivers,"},{"line_number":49,"context_line":"                                     group\u003d\u0027ml2\u0027)"},{"line_number":50,"context_line":"        typeManager \u003d managers.TypeManager()"},{"line_number":51,"context_line":"        for driver_key in typeManager.drivers.keys():"},{"line_number":52,"context_line":"            self.assertTrue(driver_key in type_drivers)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa81d914_d517ed4f","line":51,"updated":"2015-01-28 07:21:45.000000000","message":"the same","commit_id":"42e27f413cdf711d99e151e5a1a0592f1dafb8b8"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"cf6417a5ed49ad803a0ce9ff7a1466d69da4e4de","unresolved":false,"context_lines":[{"line_number":48,"context_line":"                                     type_drivers,"},{"line_number":49,"context_line":"                                     group\u003d\u0027ml2\u0027)"},{"line_number":50,"context_line":"        typeManager \u003d managers.TypeManager()"},{"line_number":51,"context_line":"        for driver_key in typeManager.drivers.keys():"},{"line_number":52,"context_line":"            self.assertTrue(driver_key in type_drivers)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa81d914_8409c197","line":51,"in_reply_to":"fa81d914_d517ed4f","updated":"2015-01-28 11:17:56.000000000","message":"Done","commit_id":"42e27f413cdf711d99e151e5a1a0592f1dafb8b8"}]}
