)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"cd85a4553b5aaf52f67ad0a09f3acab6d0a352f4","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Sławek Kapłoński \u003cslawek@kaplonski.pl\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-10-24 10:02:00 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add prefix for all trunk bridges and ports"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"It\u0027s new config option for trunk drivers which allows to"},{"line_number":10,"context_line":"configure common prefix for all trunk ports, subports and"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f4b6375_b7969592","line":7,"updated":"2017-10-24 16:14:59.000000000","message":"if I compare this approach with the approach that would monkey patch the method that defines what the trunk bridge prefix needs to be to provide isolation in fullstack, I must admit that would look a lot cleaner than what\u0027s being proposed here.\n\nThis does feel a lot more hackish.","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5e58364bd1dc42f7b9b131d960392cd2dd8389f7","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Sławek Kapłoński \u003cslawek@kaplonski.pl\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-10-24 10:02:00 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add prefix for all trunk bridges and ports"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"It\u0027s new config option for trunk drivers which allows to"},{"line_number":10,"context_line":"configure common prefix for all trunk ports, subports and"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f4b6375_d906d1ce","line":7,"in_reply_to":"3f4b6375_579761ed","updated":"2017-10-25 09:53:40.000000000","message":"I was trying to avoid monkey patching which is done e.g. for DHCP agent. Also in fact if this config option will be set to empty string then in fact there is no any change here.\n\nAFAIR e.g. Kevin wasn\u0027t big fan of such monkey patching and using different code for tests only. He even asked to add such \"test only\" config option to production code) for DHCP agent but I haven\u0027t got time to do it yet.","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"8c1d55ec3eb55543b1af3df531b4091bdff7d7f5","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Sławek Kapłoński \u003cslawek@kaplonski.pl\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-10-24 10:02:00 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add prefix for all trunk bridges and ports"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"It\u0027s new config option for trunk drivers which allows to"},{"line_number":10,"context_line":"configure common prefix for all trunk ports, subports and"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f4b6375_579761ed","line":7,"in_reply_to":"3f4b6375_b7969592","updated":"2017-10-24 16:36:18.000000000","message":"The number of changes made to non-test code to address a testing limitation is pretty big.","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"8c1d55ec3eb55543b1af3df531b4091bdff7d7f5","unresolved":false,"context_lines":[{"line_number":10,"context_line":"configure common prefix for all trunk ports, subports and"},{"line_number":11,"context_line":"bridges."},{"line_number":12,"context_line":"It is used for Openvswitch trunk driver."},{"line_number":13,"context_line":"It is useful e.g for testing purpose, like fullstack tests."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I028fa26e7565b008c6344c8046b6f50faf92741e"},{"line_number":16,"context_line":"Closes-Bug: #1687709"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f4b6375_77a6dd55","line":13,"updated":"2017-10-24 16:36:18.000000000","message":"this is really only useful for that. Is there any other reason?","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5e58364bd1dc42f7b9b131d960392cd2dd8389f7","unresolved":false,"context_lines":[{"line_number":10,"context_line":"configure common prefix for all trunk ports, subports and"},{"line_number":11,"context_line":"bridges."},{"line_number":12,"context_line":"It is used for Openvswitch trunk driver."},{"line_number":13,"context_line":"It is useful e.g for testing purpose, like fullstack tests."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I028fa26e7565b008c6344c8046b6f50faf92741e"},{"line_number":16,"context_line":"Closes-Bug: #1687709"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f4b6375_b90b15d4","line":13,"in_reply_to":"3f4b6375_77a6dd55","updated":"2017-10-25 09:53:40.000000000","message":"changed","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"67e1fc4ffaf94bbd081221985e2796bed582e2ca","unresolved":false,"context_lines":[{"line_number":9,"context_line":"It\u0027s new config option for trunk drivers which allows to"},{"line_number":10,"context_line":"configure common prefix for all trunk ports, subports and"},{"line_number":11,"context_line":"bridges."},{"line_number":12,"context_line":"It is used for Openvswitch trunk driver and only for testing purpose."},{"line_number":13,"context_line":"This option shoudn\u0027t be changed from it\u0027s default value on production"},{"line_number":14,"context_line":"code."},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"3f4b6375_57e428ac","line":12,"range":{"start_line":12,"start_character":14,"end_line":12,"end_character":25},"updated":"2017-11-01 20:06:08.000000000","message":"Open vSwitch","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"67e1fc4ffaf94bbd081221985e2796bed582e2ca","unresolved":false,"context_lines":[{"line_number":10,"context_line":"configure common prefix for all trunk ports, subports and"},{"line_number":11,"context_line":"bridges."},{"line_number":12,"context_line":"It is used for Openvswitch trunk driver and only for testing purpose."},{"line_number":13,"context_line":"This option shoudn\u0027t be changed from it\u0027s default value on production"},{"line_number":14,"context_line":"code."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I028fa26e7565b008c6344c8046b6f50faf92741e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"3f4b6375_37df6cd7","line":13,"range":{"start_line":13,"start_character":37,"end_line":13,"end_character":41},"updated":"2017-11-01 20:06:08.000000000","message":"its","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"}],"neutron/conf/services/trunk.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"6094bdc42e6cfc58eead0666944a75f9408e5b14","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from neutron._i18n import _"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"trunk_ovs_driver_opts \u003d ["},{"line_number":22,"context_line":"    cfg.StrOpt(\u0027prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It can be usefull for testing purpose. \u0027"},{"line_number":25,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_0f58bff7","line":22,"range":{"start_line":22,"start_character":25,"end_line":22,"end_character":35},"updated":"2017-10-24 10:30:32.000000000","message":"why do we need this. The default is None. That should suffice","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5e58364bd1dc42f7b9b131d960392cd2dd8389f7","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from neutron._i18n import _"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"trunk_ovs_driver_opts \u003d ["},{"line_number":22,"context_line":"    cfg.StrOpt(\u0027prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It can be usefull for testing purpose. \u0027"},{"line_number":25,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_3e726b7c","line":22,"range":{"start_line":22,"start_character":25,"end_line":22,"end_character":35},"in_reply_to":"3f4b6375_0f58bff7","updated":"2017-10-25 09:53:40.000000000","message":"IMHO it\u0027s easier to implement it in way that will not change anything if this option is not set. If it would be None than I would need to add \"if prefix\" everywhere, now I don\u0027t have to do that.","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"6094bdc42e6cfc58eead0666944a75f9408e5b14","unresolved":false,"context_lines":[{"line_number":21,"context_line":"trunk_ovs_driver_opts \u003d ["},{"line_number":22,"context_line":"    cfg.StrOpt(\u0027prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It can be usefull for testing purpose. \u0027"},{"line_number":25,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":26,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":27,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_2f0c9beb","line":24,"range":{"start_line":24,"start_character":67,"end_line":24,"end_character":74},"updated":"2017-10-24 10:30:32.000000000","message":"purposes","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"6094bdc42e6cfc58eead0666944a75f9408e5b14","unresolved":false,"context_lines":[{"line_number":21,"context_line":"trunk_ovs_driver_opts \u003d ["},{"line_number":22,"context_line":"    cfg.StrOpt(\u0027prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It can be usefull for testing purpose. \u0027"},{"line_number":25,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":26,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":27,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_cf750766","line":24,"range":{"start_line":24,"start_character":47,"end_line":24,"end_character":54},"updated":"2017-10-24 10:30:32.000000000","message":"useful","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5e58364bd1dc42f7b9b131d960392cd2dd8389f7","unresolved":false,"context_lines":[{"line_number":21,"context_line":"trunk_ovs_driver_opts \u003d ["},{"line_number":22,"context_line":"    cfg.StrOpt(\u0027prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It can be usefull for testing purpose. \u0027"},{"line_number":25,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":26,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":27,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_1eee8fec","line":24,"range":{"start_line":24,"start_character":67,"end_line":24,"end_character":74},"in_reply_to":"3f4b6375_2f0c9beb","updated":"2017-10-25 09:53:40.000000000","message":"Done","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5e58364bd1dc42f7b9b131d960392cd2dd8389f7","unresolved":false,"context_lines":[{"line_number":21,"context_line":"trunk_ovs_driver_opts \u003d ["},{"line_number":22,"context_line":"    cfg.StrOpt(\u0027prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It can be usefull for testing purpose. \u0027"},{"line_number":25,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":26,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":27,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_feea93d5","line":24,"range":{"start_line":24,"start_character":47,"end_line":24,"end_character":54},"in_reply_to":"3f4b6375_cf750766","updated":"2017-10-25 09:53:40.000000000","message":"Done","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"6094bdc42e6cfc58eead0666944a75f9408e5b14","unresolved":false,"context_lines":[{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It can be usefull for testing purpose. \u0027"},{"line_number":25,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":26,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":27,"context_line":"]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_0f267f69","line":26,"updated":"2017-10-24 10:30:32.000000000","message":"what if the user changes this, will existing ones be updated or will it jus be new prefixes. could this cause problems with deletions?","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"8c1d55ec3eb55543b1af3df531b4091bdff7d7f5","unresolved":false,"context_lines":[{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It can be usefull for testing purpose. \u0027"},{"line_number":25,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":26,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":27,"context_line":"]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_37c505f2","line":26,"in_reply_to":"3f4b6375_0f267f69","updated":"2017-10-24 16:36:18.000000000","message":"actually we should tell users not to touch this for fear of exceeding the limitation of the length of interface names.","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"53e4082171f1e08ebe29ff0963f13794ece9c161","unresolved":false,"context_lines":[{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It can be usefull for testing purpose. \u0027"},{"line_number":25,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":26,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":27,"context_line":"]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_91e4ade1","line":26,"in_reply_to":"3f4b6375_1e9c4f68","updated":"2017-10-25 15:26:21.000000000","message":"Yep","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"f35ba162a5898825ac234551b490246c31ef0a0b","unresolved":false,"context_lines":[{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It can be usefull for testing purpose. \u0027"},{"line_number":25,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":26,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":27,"context_line":"]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_adfd176f","line":26,"in_reply_to":"3f4b6375_37c505f2","updated":"2017-10-25 07:46:51.000000000","message":"I think we could/should define this option in an array that is not looked at by [1] (directly or indirectly), and hence not automatically exposed in the generated documentation.\n\nSince the file is new and hsn\u0027t been added to [1], we\u0027re all good.\n\nIt is thus probably sufficient say \"Not meant to be usd except in fullstack jobs\".\n\n[1] https://github.com/openstack/neutron/blob/master/neutron/opts.py","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5e58364bd1dc42f7b9b131d960392cd2dd8389f7","unresolved":false,"context_lines":[{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It can be usefull for testing purpose. \u0027"},{"line_number":25,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":26,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":27,"context_line":"]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_5ed1a722","line":26,"in_reply_to":"3f4b6375_37c505f2","updated":"2017-10-25 09:53:40.000000000","message":"I updated help message. Is it better for You now?","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"53e4082171f1e08ebe29ff0963f13794ece9c161","unresolved":false,"context_lines":[{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It can be usefull for testing purpose. \u0027"},{"line_number":25,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":26,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":27,"context_line":"]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_56b863e3","line":26,"in_reply_to":"3f4b6375_5ed1a722","updated":"2017-10-25 15:26:21.000000000","message":"Works for me.","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5e58364bd1dc42f7b9b131d960392cd2dd8389f7","unresolved":false,"context_lines":[{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It can be usefull for testing purpose. \u0027"},{"line_number":25,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":26,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":27,"context_line":"]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_1e9c4f68","line":26,"in_reply_to":"3f4b6375_adfd176f","updated":"2017-10-25 09:53:40.000000000","message":"currently it isn\u0027t added in https://github.com/openstack/neutron/blob/master/neutron/opts.py so should be fine, right?","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"2a68c6f100e6a16b7eda9c6ae65d0c2acf058e59","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from neutron._i18n import _"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"trunk_ovs_driver_opts \u003d ["},{"line_number":22,"context_line":"    cfg.StrOpt(\u0027test_prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It is useful for testing purposes only. \u0027"},{"line_number":25,"context_line":"                      \u0027It shoud not be set on production environment. \u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_b09f4664","line":22,"range":{"start_line":22,"start_character":30,"end_line":22,"end_character":40},"updated":"2017-10-29 11:51:17.000000000","message":"the default is None you do not need this","commit_id":"1df411f338024533bb21a15163bb9c351ca78e0b"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"c40e3930b8a29f0b1d1b0428960ab1f52ef5b5bb","unresolved":false,"context_lines":[{"line_number":22,"context_line":"    cfg.StrOpt(\u0027test_prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It is useful for testing purposes only. \u0027"},{"line_number":25,"context_line":"                      \u0027It shoud not be set on production environment. \u0027"},{"line_number":26,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":27,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":28,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_70b42ef3","line":25,"range":{"start_line":25,"start_character":26,"end_line":25,"end_character":31},"updated":"2017-10-29 11:47:57.000000000","message":"should","commit_id":"1df411f338024533bb21a15163bb9c351ca78e0b"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"ef60f5abff9a3af571986caeb69e990e1903a037","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from neutron._i18n import _"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"trunk_ovs_driver_opts \u003d ["},{"line_number":22,"context_line":"    cfg.StrOpt(\u0027test_prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It is useful for testing purposes only. \u0027"},{"line_number":25,"context_line":"                      \u0027It shoud not be set on production environment. \u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_0677d63c","line":22,"updated":"2017-10-31 10:01:04.000000000","message":"i feel that this patch is an accident waiting to happen. why are you unable to monkey patch as armando suggested.\nthe community is striving to remove configuration variables and here we are adding one for something that can be dealt with without adding more configurations.\nif its for testing then tou can script the client to get this information","commit_id":"9c702da4bdee2ce55f1107708ae7e39802bccfe9"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"f6d8554356361cbf97db80a735263cc938e3c73b","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from neutron._i18n import _"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"trunk_ovs_driver_opts \u003d ["},{"line_number":22,"context_line":"    cfg.StrOpt(\u0027test_prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It is useful for testing purposes only. \u0027"},{"line_number":25,"context_line":"                      \u0027It shoud not be set on production environment. \u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_f3fc77b6","line":22,"in_reply_to":"3f4b6375_0677d63c","updated":"2017-10-31 11:03:21.000000000","message":"There was a discussion at the Denver PTG about which approach to chose and Armando was advocating for testing only config option. By the time of discussion it wasn\u0027t clear how complex the patch is going to be.","commit_id":"9c702da4bdee2ce55f1107708ae7e39802bccfe9"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"bdfc376d576c1744f03fdb2abdcc3e9902a507c7","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from neutron._i18n import _"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"trunk_ovs_driver_opts \u003d ["},{"line_number":22,"context_line":"    cfg.StrOpt(\u0027test_prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It is useful for testing purposes only. \u0027"},{"line_number":25,"context_line":"                      \u0027It shoud not be set on production environment. \u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_f3f7d758","line":22,"in_reply_to":"3f4b6375_f3fc77b6","updated":"2017-10-31 11:21:25.000000000","message":"Please note that both neutron-server and neutron-openvswitch-agent would require to monkey patch and use this patched version.\nSo in overall we will use all main binaries patched in fullstack tests.\nDo You think this is better idea than providing this config options?","commit_id":"9c702da4bdee2ce55f1107708ae7e39802bccfe9"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"67e1fc4ffaf94bbd081221985e2796bed582e2ca","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"trunk_ovs_driver_opts \u003d ["},{"line_number":22,"context_line":"    cfg.StrOpt(\u0027test_prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It is useful for testing purposes only. \u0027"},{"line_number":25,"context_line":"                      \u0027It shoud not be set on production environment. \u0027"},{"line_number":26,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":27,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_d7e93880","line":24,"range":{"start_line":23,"start_character":39,"end_line":24,"end_character":35},"updated":"2017-11-01 20:06:08.000000000","message":"to each bridge, port and subport (note all singular)","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"745573a1264f5ccaf2cb1ca6a48a8cce196b34b2","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"trunk_ovs_driver_opts \u003d ["},{"line_number":22,"context_line":"    cfg.StrOpt(\u0027test_prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It is useful for testing purposes only. \u0027"},{"line_number":25,"context_line":"                      \u0027It shoud not be set on production environment. \u0027"},{"line_number":26,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":27,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_9f863613","line":24,"range":{"start_line":23,"start_character":39,"end_line":24,"end_character":35},"in_reply_to":"3f4b6375_d7e93880","updated":"2017-11-01 22:23:10.000000000","message":"Done","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"67e1fc4ffaf94bbd081221985e2796bed582e2ca","unresolved":false,"context_lines":[{"line_number":22,"context_line":"    cfg.StrOpt(\u0027test_prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It is useful for testing purposes only. \u0027"},{"line_number":25,"context_line":"                      \u0027It shoud not be set on production environment. \u0027"},{"line_number":26,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":27,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":28,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_9703c042","line":25,"range":{"start_line":25,"start_character":39,"end_line":25,"end_character":42},"updated":"2017-11-01 20:06:08.000000000","message":"it should not be *used* *in* production environment","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"745573a1264f5ccaf2cb1ca6a48a8cce196b34b2","unresolved":false,"context_lines":[{"line_number":22,"context_line":"    cfg.StrOpt(\u0027test_prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It is useful for testing purposes only. \u0027"},{"line_number":25,"context_line":"                      \u0027It shoud not be set on production environment. \u0027"},{"line_number":26,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":27,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":28,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_3f77423d","line":25,"range":{"start_line":25,"start_character":39,"end_line":25,"end_character":42},"in_reply_to":"3f4b6375_9703c042","updated":"2017-11-01 22:23:10.000000000","message":"Done","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"67e1fc4ffaf94bbd081221985e2796bed582e2ca","unresolved":false,"context_lines":[{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It is useful for testing purposes only. \u0027"},{"line_number":25,"context_line":"                      \u0027It shoud not be set on production environment. \u0027"},{"line_number":26,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":27,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":28,"context_line":"]"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_37f88c47","line":27,"range":{"start_line":26,"start_character":22,"end_line":27,"end_character":66},"updated":"2017-11-01 20:06:08.000000000","message":"-\u003e Default is no prefix.","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"745573a1264f5ccaf2cb1ca6a48a8cce196b34b2","unresolved":false,"context_lines":[{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent ports and \u0027"},{"line_number":24,"context_line":"                      \u0027and subports. It is useful for testing purposes only. \u0027"},{"line_number":25,"context_line":"                      \u0027It shoud not be set on production environment. \u0027"},{"line_number":26,"context_line":"                      \u0027If this value is empty, it will not add any prefix \u0027"},{"line_number":27,"context_line":"                      \u0027to trunk bridge, parent ports and subports.\u0027))"},{"line_number":28,"context_line":"]"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_9f9bd664","line":27,"range":{"start_line":26,"start_character":22,"end_line":27,"end_character":66},"in_reply_to":"3f4b6375_37f88c47","updated":"2017-11-01 22:23:10.000000000","message":"Done","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"304cbedccd940c5ad95f11c5c05994e9f25514ba","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron._i18n import _"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"trunk_ovs_driver_opts \u003d ["},{"line_number":22,"context_line":"    cfg.StrOpt(\u0027test_prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent port and \u0027"},{"line_number":24,"context_line":"                      \u0027and subport. It is useful for testing purposes only. \u0027"},{"line_number":25,"context_line":"                      \u0027It shoud not be used in production environment. \u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"3f4b6375_a5d1d1fd","line":22,"range":{"start_line":21,"start_character":25,"end_line":22,"end_character":30},"updated":"2017-11-02 12:51:24.000000000","message":"once again no default value is None so this should not be here","commit_id":"ad6e893669de30f10c7a66b0fd36b3b32297a5b6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"d9f2d6764394e175fc97b52f2a6c1c31232b5ecf","unresolved":false,"context_lines":[{"line_number":22,"context_line":"    cfg.StrOpt(\u0027test_prefix\u0027, default\u003d\"\","},{"line_number":23,"context_line":"               help\u003d_(\u0027Prefix added to each trunk bridge, parent port and \u0027"},{"line_number":24,"context_line":"                      \u0027and subport. It is useful for testing purposes only. \u0027"},{"line_number":25,"context_line":"                      \u0027It shoud not be used in production environment. \u0027"},{"line_number":26,"context_line":"                      \u0027Default is no prefix.\u0027))"},{"line_number":27,"context_line":"]"},{"line_number":28,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3f4b6375_a57e7116","line":25,"range":{"start_line":25,"start_character":26,"end_line":25,"end_character":31},"updated":"2017-11-02 12:48:48.000000000","message":"should","commit_id":"ad6e893669de30f10c7a66b0fd36b3b32297a5b6"}],"neutron/services/trunk/drivers/base.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c541fd773410ec40aab26bb1f4d14700429c9df9","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.services.trunk import constants as trunk_consts"},{"line_number":23,"context_line":"from neutron.services.trunk.rpc import backend"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"trunk_cfg.register_trunk_driver_opts()"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"@registry.has_registry_receivers"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_069bd365","line":25,"updated":"2017-10-25 21:43:52.000000000","message":"Didn\u0027t we say that we don\u0027t want to register config options as a side effect? Besides, this is technically server side code so it should not be loaded on the agent side. Did you double check that prefix indeed applies on the agent?","commit_id":"b2d276bba1c56c54bfe1b49fba214e722b1c3065"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"af141b1b89e30dc109d884fa04b9ff431670e7dc","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.services.trunk import constants as trunk_consts"},{"line_number":23,"context_line":"from neutron.services.trunk.rpc import backend"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"trunk_cfg.register_trunk_driver_opts()"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"@registry.has_registry_receivers"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_cd57e825","line":25,"in_reply_to":"3f4b6375_069bd365","updated":"2017-10-27 12:56:44.000000000","message":"I am sure that when I was doing that and I added some debug log messages it appers many times in openvswitch-agent log file.\nAlso if I will remove it from this file, trunk test is failing so IMO it is necessary here.\nHow I could do it in different way without registering?","commit_id":"b2d276bba1c56c54bfe1b49fba214e722b1c3065"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"4347dad4010cf6f0fdc47d9c50cf5a3986669634","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.services.trunk import constants as trunk_consts"},{"line_number":23,"context_line":"from neutron.services.trunk.rpc import backend"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"trunk_cfg.register_trunk_driver_opts()"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"@registry.has_registry_receivers"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_853e39d8","line":25,"in_reply_to":"3f4b6375_378e9ed0","updated":"2017-10-30 14:48:11.000000000","message":"the server sends the bridge name to nova:\n\nhttps://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/openvswitch/mech_driver/mech_openvswitch.py#L122\nhttps://github.com/openstack/neutron/blob/master/neutron/services/trunk/drivers/openvswitch/driver.py#L71","commit_id":"b2d276bba1c56c54bfe1b49fba214e722b1c3065"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"3bf9f360c0177656a33b4c94bbd5c881475cd65d","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.services.trunk import constants as trunk_consts"},{"line_number":23,"context_line":"from neutron.services.trunk.rpc import backend"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"trunk_cfg.register_trunk_driver_opts()"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"@registry.has_registry_receivers"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_378e9ed0","line":25,"in_reply_to":"3f4b6375_644b6a5f","updated":"2017-10-30 11:35:38.000000000","message":"Why is it needed on server side? The trunk bridge name is driver specific implementation detail, server doesn\u0027t know about trunk bridges. What am I missing?","commit_id":"b2d276bba1c56c54bfe1b49fba214e722b1c3065"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"cf84665c340e2ee9f4cef264959537896ab28467","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.services.trunk import constants as trunk_consts"},{"line_number":23,"context_line":"from neutron.services.trunk.rpc import backend"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"trunk_cfg.register_trunk_driver_opts()"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"@registry.has_registry_receivers"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_e8bca46d","line":25,"in_reply_to":"3f4b6375_853e39d8","updated":"2017-10-30 15:13:39.000000000","message":"Thanks, I missed that","commit_id":"b2d276bba1c56c54bfe1b49fba214e722b1c3065"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"e301e14fc499d745ffdebc82d75dca9905b29285","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.services.trunk import constants as trunk_consts"},{"line_number":23,"context_line":"from neutron.services.trunk.rpc import backend"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"trunk_cfg.register_trunk_driver_opts()"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"@registry.has_registry_receivers"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_e885f2ad","line":25,"in_reply_to":"3f4b6375_884f9e69","updated":"2017-10-27 14:38:14.000000000","message":"Ok, I moved it to agent main but it makes test failing all the time. I will have to dig more to check why it happens like that :/","commit_id":"b2d276bba1c56c54bfe1b49fba214e722b1c3065"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"5109eabdf55035b5ccb760230ecdd95bff1090f6","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.services.trunk import constants as trunk_consts"},{"line_number":23,"context_line":"from neutron.services.trunk.rpc import backend"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"trunk_cfg.register_trunk_driver_opts()"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"@registry.has_registry_receivers"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_644b6a5f","line":25,"in_reply_to":"3f4b6375_884f9e69","updated":"2017-10-27 15:08:48.000000000","message":"this must be registered by both server and agent.","commit_id":"b2d276bba1c56c54bfe1b49fba214e722b1c3065"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"42adefc5b62c06f8f350c52ccd06989bb37f1698","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.services.trunk import constants as trunk_consts"},{"line_number":23,"context_line":"from neutron.services.trunk.rpc import backend"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"trunk_cfg.register_trunk_driver_opts()"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"@registry.has_registry_receivers"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_884f9e69","line":25,"in_reply_to":"3f4b6375_cd57e825","updated":"2017-10-27 13:08:21.000000000","message":"You can rather register it in the agent main: https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py#L2206","commit_id":"b2d276bba1c56c54bfe1b49fba214e722b1c3065"}],"neutron/services/trunk/drivers/openvswitch/agent/ovsdb_handler.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"67e1fc4ffaf94bbd081221985e2796bed582e2ca","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    return func_decor"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"def is_trunk_bridge(port_name, test_prefix\u003dNone):"},{"line_number":69,"context_line":"    if not test_prefix:"},{"line_number":70,"context_line":"        test_prefix \u003d cfg.CONF.trunk.test_prefix"},{"line_number":71,"context_line":"    prefix \u003d \"%s%s\" % (t_const.TRUNK_BR_PREFIX, test_prefix)"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_17beb064","line":68,"range":{"start_line":68,"start_character":31,"end_line":68,"end_character":42},"updated":"2017-11-01 20:06:08.000000000","message":"-\u003e prefix; the fact that we don\u0027t pass it in non-testing environment is the problem of the caller not the helper function.\n\nsame below.","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"745573a1264f5ccaf2cb1ca6a48a8cce196b34b2","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    return func_decor"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"def is_trunk_bridge(port_name, test_prefix\u003dNone):"},{"line_number":69,"context_line":"    if not test_prefix:"},{"line_number":70,"context_line":"        test_prefix \u003d cfg.CONF.trunk.test_prefix"},{"line_number":71,"context_line":"    prefix \u003d \"%s%s\" % (t_const.TRUNK_BR_PREFIX, test_prefix)"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_3fc5023d","line":68,"range":{"start_line":68,"start_character":31,"end_line":68,"end_character":42},"in_reply_to":"3f4b6375_17beb064","updated":"2017-11-01 22:23:10.000000000","message":"Done","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"67e1fc4ffaf94bbd081221985e2796bed582e2ca","unresolved":false,"context_lines":[{"line_number":66,"context_line":""},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"def is_trunk_bridge(port_name, test_prefix\u003dNone):"},{"line_number":69,"context_line":"    if not test_prefix:"},{"line_number":70,"context_line":"        test_prefix \u003d cfg.CONF.trunk.test_prefix"},{"line_number":71,"context_line":"    prefix \u003d \"%s%s\" % (t_const.TRUNK_BR_PREFIX, test_prefix)"},{"line_number":72,"context_line":"    return port_name.startswith(prefix)"},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_d79ed805","line":70,"range":{"start_line":69,"start_character":4,"end_line":70,"end_character":48},"updated":"2017-11-01 20:06:08.000000000","message":"test_prefix \u003d test_prefix or cfg.CONF.trunk.test_prefix","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"745573a1264f5ccaf2cb1ca6a48a8cce196b34b2","unresolved":false,"context_lines":[{"line_number":66,"context_line":""},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"def is_trunk_bridge(port_name, test_prefix\u003dNone):"},{"line_number":69,"context_line":"    if not test_prefix:"},{"line_number":70,"context_line":"        test_prefix \u003d cfg.CONF.trunk.test_prefix"},{"line_number":71,"context_line":"    prefix \u003d \"%s%s\" % (t_const.TRUNK_BR_PREFIX, test_prefix)"},{"line_number":72,"context_line":"    return port_name.startswith(prefix)"},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_5fc67e4b","line":70,"range":{"start_line":69,"start_character":4,"end_line":70,"end_character":48},"in_reply_to":"3f4b6375_d79ed805","updated":"2017-11-01 22:23:10.000000000","message":"Done","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"67e1fc4ffaf94bbd081221985e2796bed582e2ca","unresolved":false,"context_lines":[{"line_number":105,"context_line":"    \"\"\"True if there is an OVS port that doesn\u0027t have bridge or patch ports"},{"line_number":106,"context_line":"       prefix."},{"line_number":107,"context_line":"    \"\"\""},{"line_number":108,"context_line":"    is_instance_port \u003d lambda port, prefix: not is_trunk_service_port("},{"line_number":109,"context_line":"        port, prefix)"},{"line_number":110,"context_line":"    return bridge_has_port(bridge, is_instance_port, test_prefix)"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_1731100c","line":109,"range":{"start_line":108,"start_character":4,"end_line":109,"end_character":21},"updated":"2017-11-01 20:06:08.000000000","message":"now that it uses two lines, this is now not that elegant and clear as it was. consider defining a local function:\n\ndef is_instance_port(port, prefix):\n    return not is_trunk_service_port(port, prefix)","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"745573a1264f5ccaf2cb1ca6a48a8cce196b34b2","unresolved":false,"context_lines":[{"line_number":105,"context_line":"    \"\"\"True if there is an OVS port that doesn\u0027t have bridge or patch ports"},{"line_number":106,"context_line":"       prefix."},{"line_number":107,"context_line":"    \"\"\""},{"line_number":108,"context_line":"    is_instance_port \u003d lambda port, prefix: not is_trunk_service_port("},{"line_number":109,"context_line":"        port, prefix)"},{"line_number":110,"context_line":"    return bridge_has_port(bridge, is_instance_port, test_prefix)"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_7ff93a7e","line":109,"range":{"start_line":108,"start_character":4,"end_line":109,"end_character":21},"in_reply_to":"3f4b6375_1731100c","updated":"2017-11-01 22:23:10.000000000","message":"Done","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"}],"neutron/services/trunk/drivers/openvswitch/agent/trunk_manager.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"228a772d6cbef4e8f5cbfe51cbf572c6bbba48dc","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            self.dev_prefix(), port_id)"},{"line_number":93,"context_line":"        self._transaction \u003d None"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @staticmethod"},{"line_number":96,"context_line":"    def dev_prefix():"},{"line_number":97,"context_line":"        return \"%s%s\" % (cfg.CONF.trunk.prefix,"},{"line_number":98,"context_line":"                         TrunkParentPort.BASE_DEV_PREFIX)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_0cb68d8b","line":95,"range":{"start_line":95,"start_character":4,"end_line":95,"end_character":17},"updated":"2017-10-24 10:18:05.000000000","message":"nit: @property would be more convenient","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5e58364bd1dc42f7b9b131d960392cd2dd8389f7","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            self.dev_prefix(), port_id)"},{"line_number":93,"context_line":"        self._transaction \u003d None"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @staticmethod"},{"line_number":96,"context_line":"    def dev_prefix():"},{"line_number":97,"context_line":"        return \"%s%s\" % (cfg.CONF.trunk.prefix,"},{"line_number":98,"context_line":"                         TrunkParentPort.BASE_DEV_PREFIX)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_debfd75e","line":95,"range":{"start_line":95,"start_character":4,"end_line":95,"end_character":17},"in_reply_to":"3f4b6375_0cb68d8b","updated":"2017-10-25 09:53:40.000000000","message":"but will it be \"static\" then? I need to access it without instantiate object in: https://review.openstack.org/#/c/514586/1/neutron/services/trunk/drivers/openvswitch/agent/ovsdb_handler.py","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"42adefc5b62c06f8f350c52ccd06989bb37f1698","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            self.dev_prefix(), port_id)"},{"line_number":93,"context_line":"        self._transaction \u003d None"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @staticmethod"},{"line_number":96,"context_line":"    def dev_prefix():"},{"line_number":97,"context_line":"        return \"%s%s\" % (cfg.CONF.trunk.prefix,"},{"line_number":98,"context_line":"                         TrunkParentPort.BASE_DEV_PREFIX)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_28a66a10","line":95,"range":{"start_line":95,"start_character":4,"end_line":95,"end_character":17},"in_reply_to":"3f4b6375_debfd75e","updated":"2017-10-27 13:08:21.000000000","message":"aha, I see","commit_id":"30c1baabcba8eef6c44b89c5f39808097c97f627"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"42adefc5b62c06f8f350c52ccd06989bb37f1698","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            self.dev_prefix(), port_id)"},{"line_number":93,"context_line":"        self._transaction \u003d None"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @staticmethod"},{"line_number":96,"context_line":"    def dev_prefix():"},{"line_number":97,"context_line":"        return \"%s%s\" % (TrunkParentPort.BASE_DEV_PREFIX,"},{"line_number":98,"context_line":"                         cfg.CONF.trunk.test_prefix)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    def plug(self, br_int):"},{"line_number":101,"context_line":"        \"\"\"Plug patch ports between trunk bridge and given bridge."}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_089a8eb7","line":98,"range":{"start_line":95,"start_character":0,"end_line":98,"end_character":52},"updated":"2017-10-27 13:08:21.000000000","message":"Make this following and you won\u0027t need L165 - L168\n\n @classmethod\n def dev_prefix(cls):\n     return \"%s%s\" % (cls.BASE_DEV_PREFIX, cfg.CONF.trunk.test_prefix)","commit_id":"b2d276bba1c56c54bfe1b49fba214e722b1c3065"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"e301e14fc499d745ffdebc82d75dca9905b29285","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            self.dev_prefix(), port_id)"},{"line_number":93,"context_line":"        self._transaction \u003d None"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @staticmethod"},{"line_number":96,"context_line":"    def dev_prefix():"},{"line_number":97,"context_line":"        return \"%s%s\" % (TrunkParentPort.BASE_DEV_PREFIX,"},{"line_number":98,"context_line":"                         cfg.CONF.trunk.test_prefix)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    def plug(self, br_int):"},{"line_number":101,"context_line":"        \"\"\"Plug patch ports between trunk bridge and given bridge."}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_c8a91624","line":98,"range":{"start_line":95,"start_character":0,"end_line":98,"end_character":52},"in_reply_to":"3f4b6375_089a8eb7","updated":"2017-10-27 14:38:14.000000000","message":"Done","commit_id":"b2d276bba1c56c54bfe1b49fba214e722b1c3065"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"67e1fc4ffaf94bbd081221985e2796bed582e2ca","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        self._transaction \u003d None"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @classmethod"},{"line_number":96,"context_line":"    def dev_prefix(cls, test_prefix\u003dNone):"},{"line_number":97,"context_line":"        if not test_prefix:"},{"line_number":98,"context_line":"            test_prefix \u003d cfg.CONF.trunk.test_prefix"},{"line_number":99,"context_line":"        return \"%s%s\" % (cls.BASE_DEV_PREFIX, test_prefix)"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_a90b0422","line":96,"range":{"start_line":96,"start_character":22,"end_line":96,"end_character":40},"updated":"2017-11-01 20:06:08.000000000","message":"why do we even need to pass it as an argument? can\u0027t we always extract test_prefix option value inline and use it if it\u0027s set? the default \u0027\u0027 value should still work.\n\nAnd once you have no argument passed, you can transform it to a property, and keep the old name:\n\n@property\ndef DEV_PREFIX(self):\n    return \"tp%s\" % cfg.CONF.trunk.test_prefix\n\nThen whoever relies on DEV_PREFIX attribute right now, can continue use it as if it\u0027s the same ol\u0027 class attribute they interacted with.\n\nI think same approach can be applied to other class attribute for prefixes, allowing for less intrusive change.","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"745573a1264f5ccaf2cb1ca6a48a8cce196b34b2","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        self._transaction \u003d None"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @classmethod"},{"line_number":96,"context_line":"    def dev_prefix(cls, test_prefix\u003dNone):"},{"line_number":97,"context_line":"        if not test_prefix:"},{"line_number":98,"context_line":"            test_prefix \u003d cfg.CONF.trunk.test_prefix"},{"line_number":99,"context_line":"        return \"%s%s\" % (cls.BASE_DEV_PREFIX, test_prefix)"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_3f4862ca","line":96,"range":{"start_line":96,"start_character":22,"end_line":96,"end_character":40},"in_reply_to":"3f4b6375_695aac50","updated":"2017-11-01 22:23:10.000000000","message":"It also can\u0027t be \"property\" as it is used without instantiate class in https://github.com/openstack/neutron/blob/master/neutron/services/trunk/drivers/openvswitch/agent/ovsdb_handler.py#L78","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"1cd69af49da2377fa4a5c32ba73d8e2183f87bac","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        self._transaction \u003d None"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @classmethod"},{"line_number":96,"context_line":"    def dev_prefix(cls, test_prefix\u003dNone):"},{"line_number":97,"context_line":"        if not test_prefix:"},{"line_number":98,"context_line":"            test_prefix \u003d cfg.CONF.trunk.test_prefix"},{"line_number":99,"context_line":"        return \"%s%s\" % (cls.BASE_DEV_PREFIX, test_prefix)"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_695aac50","line":96,"range":{"start_line":96,"start_character":22,"end_line":96,"end_character":40},"in_reply_to":"3f4b6375_a90b0422","updated":"2017-11-01 20:42:04.000000000","message":"OK, so Slawek explained to me that that was Kuba\u0027s request in PS4, and that the reason why we should pass it is because some of functions are used both in agent code as well as in fullstack test runner itself, and the latter doesn\u0027t (and arguably shouldn\u0027t) register any options.","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"67e1fc4ffaf94bbd081221985e2796bed582e2ca","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @classmethod"},{"line_number":96,"context_line":"    def dev_prefix(cls, test_prefix\u003dNone):"},{"line_number":97,"context_line":"        if not test_prefix:"},{"line_number":98,"context_line":"            test_prefix \u003d cfg.CONF.trunk.test_prefix"},{"line_number":99,"context_line":"        return \"%s%s\" % (cls.BASE_DEV_PREFIX, test_prefix)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def plug(self, br_int):"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_7708442c","line":98,"range":{"start_line":97,"start_character":8,"end_line":98,"end_character":52},"updated":"2017-11-01 20:06:08.000000000","message":"test_prefix \u003d test_prefix or ...","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"745573a1264f5ccaf2cb1ca6a48a8cce196b34b2","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @classmethod"},{"line_number":96,"context_line":"    def dev_prefix(cls, test_prefix\u003dNone):"},{"line_number":97,"context_line":"        if not test_prefix:"},{"line_number":98,"context_line":"            test_prefix \u003d cfg.CONF.trunk.test_prefix"},{"line_number":99,"context_line":"        return \"%s%s\" % (cls.BASE_DEV_PREFIX, test_prefix)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def plug(self, br_int):"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_df16eea7","line":98,"range":{"start_line":97,"start_character":8,"end_line":98,"end_character":52},"in_reply_to":"3f4b6375_7708442c","updated":"2017-11-01 22:23:10.000000000","message":"Done","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"}],"neutron/services/trunk/drivers/openvswitch/utils.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"67e1fc4ffaf94bbd081221985e2796bed582e2ca","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"def gen_trunk_br_name(trunk_id, test_prefix\u003dNone):"},{"line_number":21,"context_line":"    if not test_prefix:"},{"line_number":22,"context_line":"        test_prefix \u003d cfg.CONF.trunk.test_prefix"},{"line_number":23,"context_line":"    return ((ovs_const.TRUNK_BR_PREFIX + test_prefix + trunk_id)"},{"line_number":24,"context_line":"            [:constants.DEVICE_NAME_MAX_LEN - 1])"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_e978dc8f","line":22,"range":{"start_line":21,"start_character":3,"end_line":22,"end_character":48},"updated":"2017-11-01 20:06:08.000000000","message":"prefix \u003d prefix or ...","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"745573a1264f5ccaf2cb1ca6a48a8cce196b34b2","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"def gen_trunk_br_name(trunk_id, test_prefix\u003dNone):"},{"line_number":21,"context_line":"    if not test_prefix:"},{"line_number":22,"context_line":"        test_prefix \u003d cfg.CONF.trunk.test_prefix"},{"line_number":23,"context_line":"    return ((ovs_const.TRUNK_BR_PREFIX + test_prefix + trunk_id)"},{"line_number":24,"context_line":"            [:constants.DEVICE_NAME_MAX_LEN - 1])"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_3f2182fc","line":22,"range":{"start_line":21,"start_character":3,"end_line":22,"end_character":48},"in_reply_to":"3f4b6375_e978dc8f","updated":"2017-11-01 22:23:10.000000000","message":"Done","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"}],"neutron/tests/fullstack/resources/environment.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"67e1fc4ffaf94bbd081221985e2796bed582e2ca","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        self.arp_responder \u003d arp_responder"},{"line_number":47,"context_line":"        self.agent_down_time \u003d agent_down_time"},{"line_number":48,"context_line":"        self.router_scheduler \u003d router_scheduler"},{"line_number":49,"context_line":"        self.trunk_prefix \u003d helpers.get_random_string(4)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        self.service_plugins \u003d service_plugins"},{"line_number":52,"context_line":"        if self.qos:"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_295ef411","line":49,"updated":"2017-11-01 20:06:08.000000000","message":"does 4-length give us enough randomness to ensure no clashes? is there anything that blocks us from using something wider (8?)","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"745573a1264f5ccaf2cb1ca6a48a8cce196b34b2","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        self.arp_responder \u003d arp_responder"},{"line_number":47,"context_line":"        self.agent_down_time \u003d agent_down_time"},{"line_number":48,"context_line":"        self.router_scheduler \u003d router_scheduler"},{"line_number":49,"context_line":"        self.trunk_prefix \u003d helpers.get_random_string(4)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        self.service_plugins \u003d service_plugins"},{"line_number":52,"context_line":"        if self.qos:"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f4b6375_5fd55eb6","line":49,"in_reply_to":"3f4b6375_295ef411","updated":"2017-11-01 22:23:10.000000000","message":"it is limited with DEVICE_NAME_MAX_LEN: https://github.com/openstack/neutron-lib/blob/master/neutron_lib/constants.py#L262 but I can increate it e.g. to 6 chars. IMHO it should be enough","commit_id":"38f83aee40d3143264eaad4d857a80fd199c6c5f"}],"neutron/tests/fullstack/test_trunk.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"7eff9de71c382d7a4b54b4ca40081bab5070c10f","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"# Register trunk config options which will be necessary e.g. in"},{"line_number":31,"context_line":"# trunk_bridge_does_not_exist function"},{"line_number":32,"context_line":"trunk_cfg.register_trunk_driver_opts()"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"def trunk_bridge_does_not_exist(trunk_id):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_e84a6481","line":32,"range":{"start_line":32,"start_character":0,"end_line":32,"end_character":38},"updated":"2017-10-30 15:15:29.000000000","message":"Test executor doesn\u0027t parse any config.","commit_id":"9c702da4bdee2ce55f1107708ae7e39802bccfe9"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"9c36e9110118a4420afc85a1bc4ac8a4d5c73390","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"# Register trunk config options which will be necessary e.g. in"},{"line_number":31,"context_line":"# trunk_bridge_does_not_exist function"},{"line_number":32,"context_line":"trunk_cfg.register_trunk_driver_opts()"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"def trunk_bridge_does_not_exist(trunk_id):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_c64c1e78","line":32,"range":{"start_line":32,"start_character":0,"end_line":32,"end_character":38},"in_reply_to":"3f4b6375_0945bb70","updated":"2017-10-31 09:45:45.000000000","message":"I see. Then we need to replace functions like trunk_bridge_does_not_exist that are used in fullstack tests to consume the configurable prefix. The idea would be that fullstack creates the prefix per test and then passes it to config file for agents and server. Fullstack also passes the trunk prefix wherever it\u0027s needed.\n\nYou can also fake the config but I\u0027d rather avoid using config options in test runner.","commit_id":"9c702da4bdee2ce55f1107708ae7e39802bccfe9"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5dad8a4c5be391924bb4c09f84f3e2238d0b5e40","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"# Register trunk config options which will be necessary e.g. in"},{"line_number":31,"context_line":"# trunk_bridge_does_not_exist function"},{"line_number":32,"context_line":"trunk_cfg.register_trunk_driver_opts()"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"def trunk_bridge_does_not_exist(trunk_id):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f4b6375_0945bb70","line":32,"range":{"start_line":32,"start_character":0,"end_line":32,"end_character":38},"in_reply_to":"3f4b6375_e84a6481","updated":"2017-10-31 09:40:11.000000000","message":"but it is used in trunk_manager.TrunkBridge() in L37 and for example in calls to ovsdb_handler, like L297 and others\nSo if it\u0027s not registered during import of trunk_manager module (like was in one of previous PS) than I need to register it here also.\nAnother solution could be passing prefix values as arguments everywhere but it might be even more not necessary changes to production code IMHO","commit_id":"9c702da4bdee2ce55f1107708ae7e39802bccfe9"}]}
