)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c7d80ae9c0696e8114c6919fe3078576203ce6b6","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Jaume Devesa \u003cdevvesa@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-12-01 17:16:47 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"[WIP] BGP Dynamic Routing: introduce entities"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This is the first patch to provide BGP dynamic routing functionality in"},{"line_number":10,"context_line":"Neutron."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"7a016987_78244dae","line":7,"updated":"2015-05-17 01:13:52.000000000","message":"the space between [WIP] and BGP is not a space but a non-breaking space u\u0027\\xa0\u0027","commit_id":"4c624c771544c2d4bdd898c9d31d5be261cbc75d"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"44a0a8ccdd41150d71d168de7964baa736247d0b","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Jaume Devesa \u003cdevvesa@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-12-01 17:16:47 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"[WIP] BGP Dynamic Routing: introduce entities"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This is the first patch to provide BGP dynamic routing functionality in"},{"line_number":10,"context_line":"Neutron."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"7a016987_fb681ebc","line":7,"in_reply_to":"7a016987_78244dae","updated":"2015-05-28 14:31:52.000000000","message":"Done","commit_id":"4c624c771544c2d4bdd898c9d31d5be261cbc75d"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"aa81dad675ce57c626b1ca9a520ddc0d02abe695","unresolved":false,"context_lines":[{"line_number":26,"context_line":"Change-Id: I33e039df1bdd14af9ab83d9120595adc4ab2f38e"},{"line_number":27,"context_line":"Partially-Implements: blueprint bgp-dynamic-routing"},{"line_number":28,"context_line":"Co-Authored-By: Ryan Tidwell \u003cryan.tidwell@hp.com\u003e"},{"line_number":29,"context_line":"Co-Authored-By: Jaume Devesa \u003cdevvesa@gmail.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":26,"id":"ba3cc151_59efa31d","line":29,"updated":"2015-07-03 07:00:44.000000000","message":"request you to recognize all the co-authors.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"b918707254587bb0aebd3bca2c473738616bea92","unresolved":false,"context_lines":[{"line_number":24,"context_line":"Partially-Implements: blueprint bgp-dynamic-routing"},{"line_number":25,"context_line":"Co-Authored-By: Ryan Tidwell \u003cryan.tidwell@hp.com\u003e"},{"line_number":26,"context_line":"Co-Authored-By: Jaume Devesa \u003cdevvesa@gmail.com\u003e"},{"line_number":27,"context_line":"Co-Authored-By: Vikram Choudhary \u003cvikram.choudhary@huawei.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":27,"id":"ba3cc151_9236814f","line":27,"updated":"2015-07-09 05:18:57.000000000","message":"Can you please mention it as \"vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e\" in the next patch-set.","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"762eed2ab4b64880fca4b2e2241083aea2bc9a9d","unresolved":false,"context_lines":[{"line_number":24,"context_line":"Partially-Implements: blueprint bgp-dynamic-routing"},{"line_number":25,"context_line":"Co-Authored-By: Ryan Tidwell \u003cryan.tidwell@hp.com\u003e"},{"line_number":26,"context_line":"Co-Authored-By: Jaume Devesa \u003cdevvesa@gmail.com\u003e"},{"line_number":27,"context_line":"Co-Authored-By: Vikram Choudhary \u003cvikram.choudhary@huawei.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":27,"id":"ba3cc151_99e4410d","line":27,"in_reply_to":"ba3cc151_9236814f","updated":"2015-07-09 18:20:00.000000000","message":"Using your email should be enough to tag you.  I think we prefer real names here :)","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"}],"etc/policy.json":[{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"c564ff8a5d8e9fc350167cadf4c9e669fd88f94d","unresolved":false,"context_lines":[{"line_number":160,"context_line":"    \"get_bgpspeaker\": \"rule:admin_only\","},{"line_number":161,"context_line":"    \"create_bgpspeaker\": \"rule:admin_only\","},{"line_number":162,"context_line":"    \"update_bgpspeaker\": \"rule:admin_only\","},{"line_number":163,"context_line":"    \"delete_bgpspeaker\": \"rule:admin_only\""},{"line_number":164,"context_line":"}"}],"source_content_type":"application/json","patch_set":19,"id":"1af86dd1_b84b332b","line":163,"updated":"2015-06-12 10:16:30.000000000","message":"Don\u0027t forget to add new rows here as you add new endpoints!","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"}],"neutron/api/v2/attributes.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"cdfd16ff523be97f11d1bcc4a22fcfdae52d640c","unresolved":false,"context_lines":[{"line_number":352,"context_line":""},{"line_number":353,"context_line":"def _validate_routingpeers(data, valid_values\u003dNone):"},{"line_number":354,"context_line":"    if not isinstance(data, list):"},{"line_number":355,"context_line":"        msg \u003d _(\"Invalid data format for routingpeer: \u0027%s\u0027\") % data"},{"line_number":356,"context_line":"        LOG.debug(msg)"},{"line_number":357,"context_line":"        return msg"},{"line_number":358,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_bf3d6e2d","line":355,"updated":"2014-08-21 13:33:44.000000000","message":"Are these messages only used for debug logging? If so, i18n translation should be removed (could do as a separate effort and do all messages).","commit_id":"64c37da067b03404c70db13c15775bac8741ca1f"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"a068adb3865ef6161320d12f27632b0f4496c8a7","unresolved":false,"context_lines":[{"line_number":352,"context_line":""},{"line_number":353,"context_line":"def _validate_routingpeers(data, valid_values\u003dNone):"},{"line_number":354,"context_line":"    if not isinstance(data, list):"},{"line_number":355,"context_line":"        msg \u003d _(\"Invalid data format for routingpeer: \u0027%s\u0027\") % data"},{"line_number":356,"context_line":"        LOG.debug(msg)"},{"line_number":357,"context_line":"        return msg"},{"line_number":358,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_a838bad3","line":355,"in_reply_to":"1abeadc6_bf3d6e2d","updated":"2014-08-22 07:18:57.000000000","message":"They are not just for debug: if you send a request with invalid input data, you will receive these messages. So I think it makes sense to i18n it","commit_id":"64c37da067b03404c70db13c15775bac8741ca1f"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"a99c4e6168e93582f80186614a83e4e6f9e5ee0d","unresolved":false,"context_lines":[{"line_number":350,"context_line":"    return _validate_regex(data, valid_values)"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"def _validate_routingpeers(data, valid_values\u003dNone):"},{"line_number":354,"context_line":"    if not isinstance(data, list):"},{"line_number":355,"context_line":"        msg \u003d _(\"Invalid data format for routingpeer: \u0027%s\u0027\") % data"},{"line_number":356,"context_line":"        LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_cad493bf","line":353,"updated":"2014-08-26 14:26:09.000000000","message":"this validator function should reside in corresponding extension as it doesn\u0027t seem to be generic or related to a common API","commit_id":"44502e56a036738a66800882dcd931c21847fbf7"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"a99c4e6168e93582f80186614a83e4e6f9e5ee0d","unresolved":false,"context_lines":[{"line_number":353,"context_line":"def _validate_routingpeers(data, valid_values\u003dNone):"},{"line_number":354,"context_line":"    if not isinstance(data, list):"},{"line_number":355,"context_line":"        msg \u003d _(\"Invalid data format for routingpeer: \u0027%s\u0027\") % data"},{"line_number":356,"context_line":"        LOG.debug(msg)"},{"line_number":357,"context_line":"        return msg"},{"line_number":358,"context_line":""},{"line_number":359,"context_line":"    expected_keys \u003d [\u0027peer\u0027, \u0027remote_as\u0027, \u0027password\u0027]"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_6aee1f8d","line":356,"updated":"2014-08-26 14:26:09.000000000","message":"I\u0027m not sure we need to log debug messages with validation errors. Here and below","commit_id":"44502e56a036738a66800882dcd931c21847fbf7"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"a99c4e6168e93582f80186614a83e4e6f9e5ee0d","unresolved":false,"context_lines":[{"line_number":599,"context_line":"              \u0027type:range\u0027: _validate_range,"},{"line_number":600,"context_line":"              \u0027type:regex\u0027: _validate_regex,"},{"line_number":601,"context_line":"              \u0027type:regex_or_none\u0027: _validate_regex_or_none,"},{"line_number":602,"context_line":"              \u0027type:routingpeers\u0027: _validate_routingpeers,"},{"line_number":603,"context_line":"              \u0027type:string\u0027: _validate_string,"},{"line_number":604,"context_line":"              \u0027type:string_or_none\u0027: _validate_string_or_none,"},{"line_number":605,"context_line":"              \u0027type:not_empty_string\u0027: _validate_not_empty_string,"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_2afc273e","line":602,"updated":"2014-08-26 14:26:09.000000000","message":"that is also usually done from the corresponding extension module","commit_id":"44502e56a036738a66800882dcd931c21847fbf7"}],"neutron/db/bgp_speaker_db.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"6cee39a98db83cfb8ee77d8853724a26c00088fb","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014 OpenStack Foundation"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_54c76312","line":1,"updated":"2015-06-12 14:25:34.000000000","message":"nit: New file 2015 copyright. This should be your company or self, unless you work for the Foundation. Check other new files.","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"4cd4d3c749a890d68fca95a2842daa9d5cfccffc","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014 OpenStack Foundation"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_ca93a7f9","line":1,"in_reply_to":"1af86dd1_54c76312","updated":"2015-06-12 16:04:32.000000000","message":"Oops, missed this file.","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"c564ff8a5d8e9fc350167cadf4c9e669fd88f94d","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    password \u003d sa.Column(sa.String(16))"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"class BGPSpeakerRoute(models_v2.Route):"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    \"\"\"Represents a route advertised by a BGPSpeaker\"\"\""},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_d85cafef","line":51,"updated":"2015-06-12 10:16:30.000000000","message":"I still prefer just AdvertiseRoutes, but I won\u0027t push hard since I am who speaks worst english here :)","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"4cd4d3c749a890d68fca95a2842daa9d5cfccffc","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    password \u003d sa.Column(sa.String(16))"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"class BGPSpeakerRoute(models_v2.Route):"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    \"\"\"Represents a route advertised by a BGPSpeaker\"\"\""},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_6abb93c5","line":51,"in_reply_to":"1af86dd1_544ac384","updated":"2015-06-12 16:04:32.000000000","message":"My thinking was that this extension is BGP-specific and the naming conventions should take that into account.  I\u0027m not going to push back too hard about names though.","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"6cee39a98db83cfb8ee77d8853724a26c00088fb","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    password \u003d sa.Column(sa.String(16))"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"class BGPSpeakerRoute(models_v2.Route):"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    \"\"\"Represents a route advertised by a BGPSpeaker\"\"\""},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_544ac384","line":51,"in_reply_to":"1af86dd1_d85cafef","updated":"2015-06-12 14:25:34.000000000","message":"AdvertisedRoute?","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"c564ff8a5d8e9fc350167cadf4c9e669fd88f94d","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    router_id \u003d sa.Column(sa.String(36),"},{"line_number":56,"context_line":"                          sa.ForeignKey(\u0027routers.id\u0027,"},{"line_number":57,"context_line":"                                        ondelete\u003d\"CASCADE\"),"},{"line_number":58,"context_line":"                          primary_key\u003dTrue)"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"class BGPSpeakerBinding(model_base.BASEV2):"}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_98c75745","line":58,"updated":"2015-06-12 10:16:30.000000000","message":"You may want to add the router object instead of just the id, as the ExtraRouter does:\n\nhttps://github.com/openstack/neutron/blob/master/neutron/db/extraroute_db.py#L48","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"4cd4d3c749a890d68fca95a2842daa9d5cfccffc","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    router_id \u003d sa.Column(sa.String(36),"},{"line_number":56,"context_line":"                          sa.ForeignKey(\u0027routers.id\u0027,"},{"line_number":57,"context_line":"                                        ondelete\u003d\"CASCADE\"),"},{"line_number":58,"context_line":"                          primary_key\u003dTrue)"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"class BGPSpeakerBinding(model_base.BASEV2):"}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_4a09f72b","line":58,"in_reply_to":"1af86dd1_98c75745","updated":"2015-06-12 16:04:32.000000000","message":"Tried that and got cryptic errors about missing FK relationships between routerroutes and bgpspeakerroutes tables. I glossed over this just to make some more progress.  Will re-visit.","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"c564ff8a5d8e9fc350167cadf4c9e669fd88f94d","unresolved":false,"context_lines":[{"line_number":164,"context_line":"        res \u003d dict((k, bgpspeaker[k]) for k in attr)"},{"line_number":165,"context_line":"        return self._fields(res, fields)"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"    def create_bgppeer(self, context, bgppeer):"},{"line_number":168,"context_line":"        ri \u003d bgppeer[\u0027bgppeer\u0027]"},{"line_number":169,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":170,"context_line":"            res_keys \u003d [\u0027bgpspeaker_id\u0027, \u0027remote_as\u0027,"}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_58d8bf1d","line":167,"updated":"2015-06-12 10:16:30.000000000","message":"log the peer creation too","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"4cd4d3c749a890d68fca95a2842daa9d5cfccffc","unresolved":false,"context_lines":[{"line_number":164,"context_line":"        res \u003d dict((k, bgpspeaker[k]) for k in attr)"},{"line_number":165,"context_line":"        return self._fields(res, fields)"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"    def create_bgppeer(self, context, bgppeer):"},{"line_number":168,"context_line":"        ri \u003d bgppeer[\u0027bgppeer\u0027]"},{"line_number":169,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":170,"context_line":"            res_keys \u003d [\u0027bgpspeaker_id\u0027, \u0027remote_as\u0027,"}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_0acbff54","line":167,"in_reply_to":"1af86dd1_58d8bf1d","updated":"2015-06-12 16:04:32.000000000","message":"Thanks for the reminder, we need logging in many more places as well.","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"c564ff8a5d8e9fc350167cadf4c9e669fd88f94d","unresolved":false,"context_lines":[{"line_number":167,"context_line":"    def create_bgppeer(self, context, bgppeer):"},{"line_number":168,"context_line":"        ri \u003d bgppeer[\u0027bgppeer\u0027]"},{"line_number":169,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":170,"context_line":"            res_keys \u003d [\u0027bgpspeaker_id\u0027, \u0027remote_as\u0027,"},{"line_number":171,"context_line":"                        \u0027ip_address\u0027, \u0027password\u0027]"},{"line_number":172,"context_line":"            res \u003d dict((k, ri[k]) for k in res_keys)"},{"line_number":173,"context_line":"            res[\u0027id\u0027] \u003d uuidutils.generate_uuid()"}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_d8394f43","line":170,"updated":"2015-06-12 10:16:30.000000000","message":"If the relationship bgpspeaker-peer is n-to-n, I don\u0027t see why we need the bgpspeaker id here if we already have the PeerBGPSpeakerBinding entity defined","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"c564ff8a5d8e9fc350167cadf4c9e669fd88f94d","unresolved":false,"context_lines":[{"line_number":174,"context_line":"            bgppeer_db \u003d BgpPeer(**res)"},{"line_number":175,"context_line":"            context.session.add(bgppeer_db)"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    def get_bgppeer(self, context, bgppeer_id):"},{"line_number":178,"context_line":"        return self._get_bgppeer(context, bgppeer_id)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"    def _get_bgppeer(self, context, bgppeer_id):"}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_d8ecaf91","line":177,"updated":"2015-06-12 10:16:30.000000000","message":"filters?","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"4cd4d3c749a890d68fca95a2842daa9d5cfccffc","unresolved":false,"context_lines":[{"line_number":174,"context_line":"            bgppeer_db \u003d BgpPeer(**res)"},{"line_number":175,"context_line":"            context.session.add(bgppeer_db)"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    def get_bgppeer(self, context, bgppeer_id):"},{"line_number":178,"context_line":"        return self._get_bgppeer(context, bgppeer_id)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"    def _get_bgppeer(self, context, bgppeer_id):"}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_eac78343","line":177,"in_reply_to":"1af86dd1_d8ecaf91","updated":"2015-06-12 16:04:32.000000000","message":"Done","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"c564ff8a5d8e9fc350167cadf4c9e669fd88f94d","unresolved":false,"context_lines":[{"line_number":185,"context_line":"                bgppeer_id\u003dbgppeer_id)"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    def _make_bgppeer_dict(self, bgppeer, fields\u003dNone):"},{"line_number":188,"context_line":"        attr \u003d bgp_speaker_ext.RESOURCE_ATTRIBUTE_MAP.get(\u0027bgppeers\u0027)"},{"line_number":189,"context_line":"        res \u003d dict((k, bgppeer[k]) for k in attr)"},{"line_number":190,"context_line":"        # TODO(tidwellr) Need to fill in the status field with a real value"},{"line_number":191,"context_line":"        return self._fields(res, fields)"}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_582c3fab","line":188,"updated":"2015-06-12 10:16:30.000000000","message":"I probably did the same for bgp speaker on my patches, so I am just seeing now, but using RESOURCE_ATTRIBUTE_MAP here you are forcing the same attribute names exposed in the endpoints and in the database columns. I think this is not desirable.","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"89025178cb517fbc35b08be21fb1d60bdd7b0d89","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014 OpenStack Foundation"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_ea03bb0b","line":1,"updated":"2015-06-16 11:45:56.000000000","message":"See PS19 comment.","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"54dee5ec4b9a6f54a459d6d4134cdb2cda1d772c","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    peer_ip \u003d sa.Column(sa.String(64), nullable\u003dFalse)"},{"line_number":48,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, autoincrement\u003dFalse)"},{"line_number":49,"context_line":"    password \u003d sa.Column(sa.String(16))"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"class BgpAdvertisedRoute(models_v2.Route):"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_08907242","line":49,"updated":"2015-06-16 08:48:27.000000000","message":"Didn\u0027t we agree that we should use some king of auth_type+value tuple instead of assuming that is a md5 password. I remember vikram pushed strong for that.","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"58ce597fec677639f508e94a3cd4753450d0067f","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    peer_ip \u003d sa.Column(sa.String(64), nullable\u003dFalse)"},{"line_number":48,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, autoincrement\u003dFalse)"},{"line_number":49,"context_line":"    password \u003d sa.Column(sa.String(16))"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"class BgpAdvertisedRoute(models_v2.Route):"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_72322861","line":49,"in_reply_to":"fa32b979_08907242","updated":"2015-06-26 18:43:47.000000000","message":"Yes, you are correct.  I am iterating, so things like this will come.  The reminders are helpful though.","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"54dee5ec4b9a6f54a459d6d4134cdb2cda1d772c","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    password \u003d sa.Column(sa.String(16))"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"class BgpAdvertisedRoute(models_v2.Route):"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    \"\"\"Represents a route advertised by a BGPSpeaker\"\"\""},{"line_number":55,"context_line":""}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_25647f47","line":52,"updated":"2015-06-16 08:48:27.000000000","message":"Good enough :)","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"89025178cb517fbc35b08be21fb1d60bdd7b0d89","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    \"\"\"Represents a route advertised by a BGPSpeaker\"\"\""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    __tablename__ \u003d \u0027bgp_advertised_routes\u0027"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    router_id \u003d sa.Column(sa.String(36),"},{"line_number":59,"context_line":"                          sa.ForeignKey(\u0027routers.id\u0027,"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_8a21cfa1","line":56,"updated":"2015-06-16 11:45:56.000000000","message":"nit: bgp_advertised_route","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"ff0f94630fb08a286e7d2f7215ba405fa24633c7","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    \"\"\"Represents a route advertised by a BGPSpeaker\"\"\""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    __tablename__ \u003d \u0027bgp_advertised_routes\u0027"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    router_id \u003d sa.Column(sa.String(36),"},{"line_number":59,"context_line":"                          sa.ForeignKey(\u0027routers.id\u0027,"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_329ca05c","line":56,"in_reply_to":"fa32b979_8a21cfa1","updated":"2015-06-16 21:08:33.000000000","message":"Table names are almost always plural. If you don\u0027t override it, then the framework creates the table name \u003d classname.lower() + \u0027s\u0027. Think of this as \"the table of bgp_advertised_routes\".","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"58ce597fec677639f508e94a3cd4753450d0067f","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    \"\"\"Represents a route advertised by a BGPSpeaker\"\"\""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    __tablename__ \u003d \u0027bgp_advertised_routes\u0027"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    router_id \u003d sa.Column(sa.String(36),"},{"line_number":59,"context_line":"                          sa.ForeignKey(\u0027routers.id\u0027,"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_72f54855","line":56,"in_reply_to":"fa32b979_8a21cfa1","updated":"2015-06-26 18:43:47.000000000","message":"The convention we\u0027ve used for table names is that they are the plural form of the entity name. I suggest we stick with this.","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"54dee5ec4b9a6f54a459d6d4134cdb2cda1d772c","unresolved":false,"context_lines":[{"line_number":61,"context_line":"                          primary_key\u003dTrue)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"class BgpSpeakerBinding(model_base.BASEV2):"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    bgpspeaker_id \u003d sa.Column(sa.String(length\u003d36),"},{"line_number":67,"context_line":"                              sa.ForeignKey(\u0027bgp_speakers.id\u0027,"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_65f8474a","line":64,"updated":"2015-06-16 08:48:27.000000000","message":"Yup. I like more these lowercase names. They are less... noisy.","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"ff0f94630fb08a286e7d2f7215ba405fa24633c7","unresolved":false,"context_lines":[{"line_number":80,"context_line":"                           primary_key\u003dTrue)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"class PeerBgpSpeakerBinding(model_base.BASEV2):"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    bgpspeaker_id \u003d sa.Column(sa.String(length\u003d36),"},{"line_number":86,"context_line":"                              sa.ForeignKey(\u0027bgp_speakers.id\u0027,"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_f2015839","line":83,"updated":"2015-06-16 21:08:33.000000000","message":"Consider naming it BgpPeerSpeakerBinding so all tables start with bgp. This might be a silly reason though.","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"89025178cb517fbc35b08be21fb1d60bdd7b0d89","unresolved":false,"context_lines":[{"line_number":154,"context_line":"            context.session.delete(bgpspeaker_db)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    @log.log"},{"line_number":157,"context_line":"    def create_bgppeer(self, context, bgppeer):"},{"line_number":158,"context_line":"        ri \u003d bgppeer[\u0027bgppeer\u0027]"},{"line_number":159,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":160,"context_line":"            res_keys \u003d [\u0027remote_as\u0027, \u0027peer_ip\u0027, \u0027password\u0027]"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_ea641b4a","line":157,"updated":"2015-06-16 11:45:56.000000000","message":"Consider bgp_peer for naming. It\u0027s (subjectively) easier to read.","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"c33a680b160292a602d68ee022244870ceb159d8","unresolved":false,"context_lines":[{"line_number":154,"context_line":"            context.session.delete(bgpspeaker_db)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    @log.log"},{"line_number":157,"context_line":"    def create_bgppeer(self, context, bgppeer):"},{"line_number":158,"context_line":"        ri \u003d bgppeer[\u0027bgppeer\u0027]"},{"line_number":159,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":160,"context_line":"            res_keys \u003d [\u0027remote_as\u0027, \u0027peer_ip\u0027, \u0027password\u0027]"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_a42f1cf5","line":157,"in_reply_to":"fa32b979_ea641b4a","updated":"2015-06-16 15:33:24.000000000","message":"Done","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"17d7f39864c3a21eccf4ae0c8e57cb2d24c8a84b","unresolved":false,"context_lines":[{"line_number":72,"context_line":"            name\u003d\u0027unique_bgp_speaker_network_bindings0network_id\u0027),"},{"line_number":73,"context_line":"        model_base.BASEV2.__table_args__"},{"line_number":74,"context_line":"    )"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"class BgpSpeaker(model_base.BASEV2,"},{"line_number":78,"context_line":"                 models_v2.HasId,"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_80026b3d","line":75,"updated":"2015-06-29 08:57:31.000000000","message":"Missing the binding BgpSpeaker-Router","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7739745b0cd63cd53df60f4ef8236bd9b2d0cee1","unresolved":false,"context_lines":[{"line_number":72,"context_line":"            name\u003d\u0027unique_bgp_speaker_network_bindings0network_id\u0027),"},{"line_number":73,"context_line":"        model_base.BASEV2.__table_args__"},{"line_number":74,"context_line":"    )"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"class BgpSpeaker(model_base.BASEV2,"},{"line_number":78,"context_line":"                 models_v2.HasId,"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_6d7e30e6","line":75,"in_reply_to":"ba3cc151_80026b3d","updated":"2015-06-29 15:29:03.000000000","message":"Yes it\u0027s missing, but it\u0027s on purpose :) The binding is being made speaker-to-network rather than speaker-to-router.  From the network we can look up the routers to advertise as next-hops.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"17d7f39864c3a21eccf4ae0c8e57cb2d24c8a84b","unresolved":false,"context_lines":[{"line_number":105,"context_line":"    peer_ip \u003d sa.Column(sa.String(64), nullable\u003dFalse)"},{"line_number":106,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, autoincrement\u003dFalse)"},{"line_number":107,"context_line":"    auth_type \u003d sa.Column(sa.String(16), nullable\u003dFalse)"},{"line_number":108,"context_line":"    password \u003d sa.Column(sa.String(16), nullable\u003dFalse)"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"class BgpAdvertisedRoute(models_v2.Route):"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_bba00092","line":108,"updated":"2015-06-29 08:57:31.000000000","message":"An \u0027auth_type\u0027 \u003d \u0027no_auth\u0027 and password\u003dNone would be valid, right? So nullable on password can be True","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7739745b0cd63cd53df60f4ef8236bd9b2d0cee1","unresolved":false,"context_lines":[{"line_number":105,"context_line":"    peer_ip \u003d sa.Column(sa.String(64), nullable\u003dFalse)"},{"line_number":106,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, autoincrement\u003dFalse)"},{"line_number":107,"context_line":"    auth_type \u003d sa.Column(sa.String(16), nullable\u003dFalse)"},{"line_number":108,"context_line":"    password \u003d sa.Column(sa.String(16), nullable\u003dFalse)"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"class BgpAdvertisedRoute(models_v2.Route):"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_cd541c56","line":108,"in_reply_to":"ba3cc151_bba00092","updated":"2015-06-29 15:29:03.000000000","message":"Yes, you\u0027re correct. Will fix.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"7fcae16268b29f07b6add8b38c8631a7cf6c1658","unresolved":false,"context_lines":[{"line_number":178,"context_line":""},{"line_number":179,"context_line":"    @log.log"},{"line_number":180,"context_line":"    def add_bgp_peer(self, context, bgp_speaker_id, bgp_peer_info):"},{"line_number":181,"context_line":"        bgp_peer_id \u003d bgp_peer_info.get(\u0027bgp_peer_id\u0027, None)"},{"line_number":182,"context_line":"        if not bgp_peer_id:"},{"line_number":183,"context_line":"            msg \u003d _(\"bgp_peer_id must be specified\")"},{"line_number":184,"context_line":"            raise n_exc.BadRequest("}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_6fe20431","line":181,"updated":"2015-07-02 12:24:45.000000000","message":"nit: could have helper to get bgp peer id and use for several of these methods.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"7fcae16268b29f07b6add8b38c8631a7cf6c1658","unresolved":false,"context_lines":[{"line_number":207,"context_line":"    @log.log"},{"line_number":208,"context_line":"    def advertise_network(self, context,"},{"line_number":209,"context_line":"                          bgp_speaker_id, network_info):"},{"line_number":210,"context_line":"        network_id \u003d network_info.get(\u0027network_id\u0027, None)"},{"line_number":211,"context_line":"        if not network_id:"},{"line_number":212,"context_line":"            msg \u003d _(\"network_id must be specified\")"},{"line_number":213,"context_line":"            raise n_exc.BadRequest("}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_8fc66898","line":210,"updated":"2015-07-02 12:24:45.000000000","message":"ditto with network id. In fact could have one method:\n    def get_id_for(self, which_id, resource, id_name):\n        try:\n            return resource.get(id_name)\n        except AttributeError:\n            msg \u003d _(\"%s must be specified\") % id_name\n            raise n_exc.BadRequest(\n                resource\u003dbgp_speaker_ext.BGP_SPEAKER_RESOURCE_NAME,\n                msg\u003dmsg)\n\n    network_id \u003d self.get_id_for(network_info, \"network_id\")","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"61c5943b5546d7a045708617b94eb218041cbbdd","unresolved":false,"context_lines":[{"line_number":207,"context_line":"    @log.log"},{"line_number":208,"context_line":"    def advertise_network(self, context,"},{"line_number":209,"context_line":"                          bgp_speaker_id, network_info):"},{"line_number":210,"context_line":"        network_id \u003d network_info.get(\u0027network_id\u0027, None)"},{"line_number":211,"context_line":"        if not network_id:"},{"line_number":212,"context_line":"            msg \u003d _(\"network_id must be specified\")"},{"line_number":213,"context_line":"            raise n_exc.BadRequest("}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_5eaec2e6","line":210,"in_reply_to":"ba3cc151_8fc66898","updated":"2015-07-02 16:08:27.000000000","message":"Done","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"902f28e0768848097a8b3b7ab14cc5896e0b8eb3","unresolved":false,"context_lines":[{"line_number":409,"context_line":"                                     name\u003d\u0027next_hop\u0027)"},{"line_number":410,"context_line":"            query \u003d context.session.query(dest_alias.floating_ip_address,"},{"line_number":411,"context_line":"                                          next_hop_alias.ip_address)"},{"line_number":412,"context_line":"            query \u003d query.filter("},{"line_number":413,"context_line":"                           dest_alias.floating_network_id \u003d\u003d network_id)"},{"line_number":414,"context_line":"            query \u003d query.filter("},{"line_number":415,"context_line":"                                dest_alias.router_id \u003d\u003d l3_db.Router.id)"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_35cf4d2a","line":412,"updated":"2015-07-09 12:26:16.000000000","message":"You can combine all the filters together...\n    query \u003d query.filter(\n        dest_alias.floating_network_id \u003d\u003d network_id,\n        dest_alias.router_id \u003d\u003d l3_db.Router.id,\n        ...)","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"762eed2ab4b64880fca4b2e2241083aea2bc9a9d","unresolved":false,"context_lines":[{"line_number":409,"context_line":"                                     name\u003d\u0027next_hop\u0027)"},{"line_number":410,"context_line":"            query \u003d context.session.query(dest_alias.floating_ip_address,"},{"line_number":411,"context_line":"                                          next_hop_alias.ip_address)"},{"line_number":412,"context_line":"            query \u003d query.filter("},{"line_number":413,"context_line":"                           dest_alias.floating_network_id \u003d\u003d network_id)"},{"line_number":414,"context_line":"            query \u003d query.filter("},{"line_number":415,"context_line":"                                dest_alias.router_id \u003d\u003d l3_db.Router.id)"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_3632e2f2","line":412,"in_reply_to":"ba3cc151_35cf4d2a","updated":"2015-07-09 18:20:00.000000000","message":"Done, thanks for the sqlachemy tip!","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"902f28e0768848097a8b3b7ab14cc5896e0b8eb3","unresolved":false,"context_lines":[{"line_number":432,"context_line":"            query \u003d context.session.query(dest_alias.floating_ip_address,"},{"line_number":433,"context_line":"                                          next_hop_alias.ip_address)"},{"line_number":434,"context_line":"            query.filter(speaker_binding.bgp_speaker_id \u003d\u003d bgp_speaker_id)"},{"line_number":435,"context_line":"            query \u003d query.filter("},{"line_number":436,"context_line":"                 dest_alias.floating_network_id \u003d\u003d speaker_binding.network_id)"},{"line_number":437,"context_line":"            query \u003d query.filter("},{"line_number":438,"context_line":"                                dest_alias.router_id \u003d\u003d l3_db.Router.id)"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_7565d51b","line":435,"updated":"2015-07-09 12:26:16.000000000","message":"ditto","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"762eed2ab4b64880fca4b2e2241083aea2bc9a9d","unresolved":false,"context_lines":[{"line_number":432,"context_line":"            query \u003d context.session.query(dest_alias.floating_ip_address,"},{"line_number":433,"context_line":"                                          next_hop_alias.ip_address)"},{"line_number":434,"context_line":"            query.filter(speaker_binding.bgp_speaker_id \u003d\u003d bgp_speaker_id)"},{"line_number":435,"context_line":"            query \u003d query.filter("},{"line_number":436,"context_line":"                 dest_alias.floating_network_id \u003d\u003d speaker_binding.network_id)"},{"line_number":437,"context_line":"            query \u003d query.filter("},{"line_number":438,"context_line":"                                dest_alias.router_id \u003d\u003d l3_db.Router.id)"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_f64eba6d","line":435,"in_reply_to":"ba3cc151_7565d51b","updated":"2015-07-09 18:20:00.000000000","message":"Done","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"902f28e0768848097a8b3b7ab14cc5896e0b8eb3","unresolved":false,"context_lines":[{"line_number":452,"context_line":"        return ([])"},{"line_number":453,"context_line":""},{"line_number":454,"context_line":"    def _make_floating_ip_route_tuple_list(self, ip_next_hop_tuples):"},{"line_number":455,"context_line":"        \"\"\"Return a list of (host route, next hop) tuples from the list of"},{"line_number":456,"context_line":"           given (floating IP, router gateway IP) tuples"},{"line_number":457,"context_line":"        \"\"\""},{"line_number":458,"context_line":"        return ((netaddr.IPNetwork((netaddr.IPAddress(x).__int__(), 32)),"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_70016304","line":455,"updated":"2015-07-09 12:26:16.000000000","message":"nit: First line of docstring should be a period terminated summary, with additional info on subsequent lines. PEP257,","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"762eed2ab4b64880fca4b2e2241083aea2bc9a9d","unresolved":false,"context_lines":[{"line_number":452,"context_line":"        return ([])"},{"line_number":453,"context_line":""},{"line_number":454,"context_line":"    def _make_floating_ip_route_tuple_list(self, ip_next_hop_tuples):"},{"line_number":455,"context_line":"        \"\"\"Return a list of (host route, next hop) tuples from the list of"},{"line_number":456,"context_line":"           given (floating IP, router gateway IP) tuples"},{"line_number":457,"context_line":"        \"\"\""},{"line_number":458,"context_line":"        return ((netaddr.IPNetwork((netaddr.IPAddress(x).__int__(), 32)),"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_961dee10","line":455,"in_reply_to":"ba3cc151_70016304","updated":"2015-07-09 18:20:00.000000000","message":"Done","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"902f28e0768848097a8b3b7ab14cc5896e0b8eb3","unresolved":false,"context_lines":[{"line_number":455,"context_line":"        \"\"\"Return a list of (host route, next hop) tuples from the list of"},{"line_number":456,"context_line":"           given (floating IP, router gateway IP) tuples"},{"line_number":457,"context_line":"        \"\"\""},{"line_number":458,"context_line":"        return ((netaddr.IPNetwork((netaddr.IPAddress(x).__int__(), 32)),"},{"line_number":459,"context_line":"                 netaddr.IPAddress(y)) for x, y in ip_next_hop_tuples)"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_d0894f70","line":458,"updated":"2015-07-09 12:26:16.000000000","message":"What about IPv6 addresses?","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"762eed2ab4b64880fca4b2e2241083aea2bc9a9d","unresolved":false,"context_lines":[{"line_number":455,"context_line":"        \"\"\"Return a list of (host route, next hop) tuples from the list of"},{"line_number":456,"context_line":"           given (floating IP, router gateway IP) tuples"},{"line_number":457,"context_line":"        \"\"\""},{"line_number":458,"context_line":"        return ((netaddr.IPNetwork((netaddr.IPAddress(x).__int__(), 32)),"},{"line_number":459,"context_line":"                 netaddr.IPAddress(y)) for x, y in ip_next_hop_tuples)"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_56b2064a","line":458,"in_reply_to":"ba3cc151_d0894f70","updated":"2015-07-09 18:20:00.000000000","message":"This is floating IP specific, I\u0027m not concerned at all about IPv6 addresses here. There will be different methods for gathering up tenant network routes and DVR host routes in a forthcoming patch. We\u0027ll have to deal with IPv6 there, but we don\u0027t have to deal with it here.  We could probably use a constant instead of a magic 32 though....","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"f14853a4644ac266ef91f24212e1a4b6c8819f42","unresolved":false,"context_lines":[{"line_number":111,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, autoincrement\u003dFalse)"},{"line_number":112,"context_line":"    auth_type \u003d sa.Column(sa.String(16), nullable\u003dFalse)"},{"line_number":113,"context_line":"    #TODO(tidwellr) re-visit password length"},{"line_number":114,"context_line":"    password \u003d sa.Column(sa.String(16), nullable\u003dTrue)"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"class BgpSpeakerDbMixin(bgp_speaker_ext.BgpSpeakerPluginBase,"}],"source_content_type":"text/x-python","patch_set":28,"id":"ba3cc151_3d139a02","line":114,"updated":"2015-07-09 20:11:53.000000000","message":"Forgot to change password length to match the migration","commit_id":"d1285e59a59e92fa4e93f0e7e9ca42fb2a78f13a"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"a3bb2c892d010d98f45ffd194f3e46ffcdc4d226","unresolved":false,"context_lines":[{"line_number":452,"context_line":"           given (floating IP, router gateway IP) tuples"},{"line_number":453,"context_line":"        \"\"\""},{"line_number":454,"context_line":"        # NOTE(tidwellr) Because these should be FIP\u0027s, IPv4 is assumed"},{"line_number":455,"context_line":"        return ((netaddr.IPNetwork((netaddr.IPAddress(x).__int__(), 32)),"},{"line_number":456,"context_line":"                 netaddr.IPAddress(y)) for x, y in ip_next_hop_tuples)"}],"source_content_type":"text/x-python","patch_set":28,"id":"ba3cc151_9dabb41e","line":455,"updated":"2015-07-10 06:31:58.000000000","message":"As already suggested in PS26, better use a constant instead of magic number.","commit_id":"d1285e59a59e92fa4e93f0e7e9ca42fb2a78f13a"}],"neutron/db/dr_db.py":[{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"003c47dee8f5225160be670f82b64eb25a1dc096","unresolved":false,"context_lines":[{"line_number":10,"context_line":"# distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT"},{"line_number":11,"context_line":"# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import sqlalchemy as sa"},{"line_number":16,"context_line":"from sqlalchemy import orm"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_f450d633","line":13,"updated":"2014-08-22 00:36:52.000000000","message":"IMO, file name should be dynamic_routing_db.py","commit_id":"64c37da067b03404c70db13c15775bac8741ca1f"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"a068adb3865ef6161320d12f27632b0f4496c8a7","unresolved":false,"context_lines":[{"line_number":10,"context_line":"# distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT"},{"line_number":11,"context_line":"# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import sqlalchemy as sa"},{"line_number":16,"context_line":"from sqlalchemy import orm"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_2854aafd","line":13,"in_reply_to":"1abeadc6_f450d633","updated":"2014-08-22 07:18:57.000000000","message":"Ok, I\u0027ll change","commit_id":"64c37da067b03404c70db13c15775bac8741ca1f"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"003c47dee8f5225160be670f82b64eb25a1dc096","unresolved":false,"context_lines":[{"line_number":40,"context_line":"class RoutingPeer(model_base.BASEV2):"},{"line_number":41,"context_line":"    \"\"\"Represents a routing peer.\"\"\""},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    peer \u003d sa.Column(sa.String(64), nullable\u003dFalse, primary_key\u003dTrue)"},{"line_number":44,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, primary_key\u003dTrue,"},{"line_number":45,"context_line":"                          autoincrement\u003dFalse)"},{"line_number":46,"context_line":"    password \u003d sa.Column(sa.String(255))"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_bfb3974b","line":43,"updated":"2014-08-22 00:36:52.000000000","message":"could you give me example of peer value?  I can\u0027t find it in the spec, so I\u0027m not sure length is correct or not","commit_id":"64c37da067b03404c70db13c15775bac8741ca1f"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"a068adb3865ef6161320d12f27632b0f4496c8a7","unresolved":false,"context_lines":[{"line_number":40,"context_line":"class RoutingPeer(model_base.BASEV2):"},{"line_number":41,"context_line":"    \"\"\"Represents a routing peer.\"\"\""},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    peer \u003d sa.Column(sa.String(64), nullable\u003dFalse, primary_key\u003dTrue)"},{"line_number":44,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, primary_key\u003dTrue,"},{"line_number":45,"context_line":"                          autoincrement\u003dFalse)"},{"line_number":46,"context_line":"    password \u003d sa.Column(sa.String(255))"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_a866faea","line":43,"in_reply_to":"1abeadc6_bfb3974b","updated":"2014-08-22 07:18:57.000000000","message":"If you look at the spec, is at line 430 https://review.openstack.org/#/c/90833/9/specs/juno/bgp-dynamic-routing.rst\n\nIt should be the IP address of the remote peer. Although I am not sure if there is a BGP speaker that runs with IPv6 addresses, I understand that they should be.","commit_id":"64c37da067b03404c70db13c15775bac8741ca1f"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"003c47dee8f5225160be670f82b64eb25a1dc096","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    peer \u003d sa.Column(sa.String(64), nullable\u003dFalse, primary_key\u003dTrue)"},{"line_number":44,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, primary_key\u003dTrue,"},{"line_number":45,"context_line":"                          autoincrement\u003dFalse)"},{"line_number":46,"context_line":"    password \u003d sa.Column(sa.String(255))"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    routinginstance_id \u003d sa.Column(sa.String(36),"},{"line_number":49,"context_line":"                                   sa.ForeignKey(\u0027routinginstances.id\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_df85b35a","line":46,"updated":"2014-08-22 00:36:52.000000000","message":"I don\u0027t see this in the spec","commit_id":"64c37da067b03404c70db13c15775bac8741ca1f"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"a068adb3865ef6161320d12f27632b0f4496c8a7","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    peer \u003d sa.Column(sa.String(64), nullable\u003dFalse, primary_key\u003dTrue)"},{"line_number":44,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, primary_key\u003dTrue,"},{"line_number":45,"context_line":"                          autoincrement\u003dFalse)"},{"line_number":46,"context_line":"    password \u003d sa.Column(sa.String(255))"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    routinginstance_id \u003d sa.Column(sa.String(36),"},{"line_number":49,"context_line":"                                   sa.ForeignKey(\u0027routinginstances.id\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_884e9e39","line":46,"in_reply_to":"1abeadc6_df85b35a","updated":"2014-08-22 07:18:57.000000000","message":"In te beggining, I wanted to create a more \u0027open\u0027 way to define peers, using the config attribute to let define more fields: https://review.openstack.org/#/c/90833/9/specs/juno/bgp-dynamic-routing.rst (line 440).\n\nBut I found myself only using the \u0027password\u0027 attribute in the config field and, since this is the initial approach, I thought it would be better to be more explicit to add the password as an attribute and the code would be easier.\n\nThere are more places where I changed the spec because I\u0027ve tried to simplify things. So if you find something different that is in the spec, I\u0027ll explain to you and you decide if it make sense.  I have the \u0027extended version\u0027 if you want the code as the spec says :)","commit_id":"64c37da067b03404c70db13c15775bac8741ca1f"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"cdfd16ff523be97f11d1bcc4a22fcfdae52d640c","unresolved":false,"context_lines":[{"line_number":258,"context_line":"                nexthop\u003droute[\u0027nexthop\u0027])"},{"line_number":259,"context_line":"            context.session.add(routinginstance_route)"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"        LOG.debug(_(\u0027Removed routes are %s\u0027), removed)"},{"line_number":262,"context_line":"        for route in removed:"},{"line_number":263,"context_line":"            context.session.delete("},{"line_number":264,"context_line":"                routes_dict[(route[\u0027destination\u0027], route[\u0027nexthop\u0027])])"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_7f5d9678","line":261,"updated":"2014-08-21 13:33:44.000000000","message":"remove i18n from debug log. Here and several lines below.","commit_id":"64c37da067b03404c70db13c15775bac8741ca1f"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"a068adb3865ef6161320d12f27632b0f4496c8a7","unresolved":false,"context_lines":[{"line_number":258,"context_line":"                nexthop\u003droute[\u0027nexthop\u0027])"},{"line_number":259,"context_line":"            context.session.add(routinginstance_route)"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"        LOG.debug(_(\u0027Removed routes are %s\u0027), removed)"},{"line_number":262,"context_line":"        for route in removed:"},{"line_number":263,"context_line":"            context.session.delete("},{"line_number":264,"context_line":"                routes_dict[(route[\u0027destination\u0027], route[\u0027nexthop\u0027])])"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_e86632ba","line":261,"in_reply_to":"1abeadc6_7f5d9678","updated":"2014-08-22 07:18:57.000000000","message":"That\u0027s true.","commit_id":"64c37da067b03404c70db13c15775bac8741ca1f"}],"neutron/db/dynamic_routing_db.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"a99c4e6168e93582f80186614a83e4e6f9e5ee0d","unresolved":false,"context_lines":[{"line_number":138,"context_line":"            context, routinginstance_id)"},{"line_number":139,"context_line":"        routinginstance_dict \u003d self._make_routinginstance_dict("},{"line_number":140,"context_line":"            routinginstance_db)"},{"line_number":141,"context_line":"        routinginstance_dict[\u0027advertiseroutes\u0027] \u003d advertise_routes"},{"line_number":142,"context_line":"        routinginstance_dict[\u0027peers\u0027] \u003d peers"},{"line_number":143,"context_line":"        return routinginstance_dict"},{"line_number":144,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_35f1e8cd","line":141,"updated":"2014-08-26 14:26:09.000000000","message":"aren\u0027t  lines 141-142 the same as in _make_routinginstance_dict?","commit_id":"44502e56a036738a66800882dcd931c21847fbf7"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"a99c4e6168e93582f80186614a83e4e6f9e5ee0d","unresolved":false,"context_lines":[{"line_number":152,"context_line":"    @log.log"},{"line_number":153,"context_line":"    def list_routers_on_routinginstance(self, context, routinginstance_id):"},{"line_number":154,"context_line":"        query \u003d context.session.query(RoutingInstanceRouterBinding.router_id)"},{"line_number":155,"context_line":"        query \u003d query.filter("},{"line_number":156,"context_line":"            RoutingInstanceRouterBinding.routinginstance_id \u003d\u003d"},{"line_number":157,"context_line":"            routinginstance_id)"},{"line_number":158,"context_line":"        router_ids \u003d [item[0] for item in query]"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_95855c5b","line":155,"updated":"2014-08-26 14:26:09.000000000","message":"nit: filter_by","commit_id":"44502e56a036738a66800882dcd931c21847fbf7"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"a99c4e6168e93582f80186614a83e4e6f9e5ee0d","unresolved":false,"context_lines":[{"line_number":177,"context_line":"                    RoutingInstanceRouterBinding.router_id \u003d\u003d router_id)"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"            try:"},{"line_number":180,"context_line":"                binding \u003d query.one()"},{"line_number":181,"context_line":"                raise dr.RouterAlreadyAssociated("},{"line_number":182,"context_line":"                    routinginstance_id\u003dbinding.routinginstance_id,"},{"line_number":183,"context_line":"                    router_id\u003drouter_id)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_15d86c7e","line":180,"updated":"2014-08-26 14:26:09.000000000","message":"i\u0027d use .first() and avoid catching exception","commit_id":"44502e56a036738a66800882dcd931c21847fbf7"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"a99c4e6168e93582f80186614a83e4e6f9e5ee0d","unresolved":false,"context_lines":[{"line_number":200,"context_line":"            routinginstance_db \u003d self._get_routinginstance("},{"line_number":201,"context_line":"                context, routinginstance_id)"},{"line_number":202,"context_line":"            query \u003d context.session.query(RoutingInstanceRouterBinding)"},{"line_number":203,"context_line":"            query \u003d query.filter("},{"line_number":204,"context_line":"                    RoutingInstanceRouterBinding.routinginstance_id \u003d\u003d"},{"line_number":205,"context_line":"                    routinginstance_db.id,"},{"line_number":206,"context_line":"                    RoutingInstanceRouterBinding.router_id \u003d\u003d router_id)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_ea5dcf49","line":203,"updated":"2014-08-26 14:26:09.000000000","message":"nit: use filter_by, could\u0027ve saved a bunch of line breaks","commit_id":"44502e56a036738a66800882dcd931c21847fbf7"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"a99c4e6168e93582f80186614a83e4e6f9e5ee0d","unresolved":false,"context_lines":[{"line_number":205,"context_line":"                    routinginstance_db.id,"},{"line_number":206,"context_line":"                    RoutingInstanceRouterBinding.router_id \u003d\u003d router_id)"},{"line_number":207,"context_line":"            try:"},{"line_number":208,"context_line":"                binding \u003d query.one()"},{"line_number":209,"context_line":"            except exc.NoResultFound:"},{"line_number":210,"context_line":"                raise dr.RouterNotAssociated("},{"line_number":211,"context_line":"                     routinginstance_id\u003droutinginstance_id,"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_b5ca589f","line":208,"updated":"2014-08-26 14:26:09.000000000","message":".first() could be preferable","commit_id":"44502e56a036738a66800882dcd931c21847fbf7"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"5c428464443a85cb97e320021f361db49ab3b501","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        peers \u003d self._get_peers_by_routinginstance_id("},{"line_number":138,"context_line":"            context, routinginstance_id)"},{"line_number":139,"context_line":"        routinginstance_dict \u003d self._make_routinginstance_dict("},{"line_number":140,"context_line":"            routinginstance_db)"},{"line_number":141,"context_line":"        routinginstance_dict[\u0027advertiseroutes\u0027] \u003d advertise_routes"},{"line_number":142,"context_line":"        routinginstance_dict[\u0027peers\u0027] \u003d peers"},{"line_number":143,"context_line":"        return routinginstance_dict"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_d22a618f","line":140,"updated":"2014-08-27 10:23:00.000000000","message":"Eugene: regarding on your previous patchset\u0027s comment: we\u0027ve popped these attributes in lines 127 and 133 to let update the instance in line 133.\nI\u0027ve used the same logic as update_routers does. Please, can you tell me if it is a better way to do it?","commit_id":"31152c2b807df1b70c05d97784f629a7de2de3f0"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3d3c5a1b138bd0284f7e6b57d16ce1474c73d2c3","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                            extraroute_db.ExtraRoute_dbonly_mixin):"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    @log.log"},{"line_number":91,"context_line":"    def create_routinginstance(self, context, routinginstance):"},{"line_number":92,"context_line":"        ri \u003d routinginstance[\u0027routinginstance\u0027]"},{"line_number":93,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":94,"context_line":"            res_keys \u003d [\u0027name\u0027,"}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_5e7ce420","line":91,"updated":"2014-10-01 16:00:42.000000000","message":"These can\u0027t be created with advertiseroutes\u0027 or \u0027peers\u0027.  From what I can tell, I need to call create and then call update to create those.","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"6a1b766f501c7806fc247e594223ee516d98c6e6","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                            extraroute_db.ExtraRoute_dbonly_mixin):"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    @log.log"},{"line_number":91,"context_line":"    def create_routinginstance(self, context, routinginstance):"},{"line_number":92,"context_line":"        ri \u003d routinginstance[\u0027routinginstance\u0027]"},{"line_number":93,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":94,"context_line":"            res_keys \u003d [\u0027name\u0027,"}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_fe3f4623","line":91,"in_reply_to":"baa201ad_5e7ce420","updated":"2014-10-01 16:38:03.000000000","message":"Yes. I based this code in router and routerroutes relationship just to be coherent. If you think that we should create peers with the routing instance, I\u0027ll do","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3d3c5a1b138bd0284f7e6b57d16ce1474c73d2c3","unresolved":false,"context_lines":[{"line_number":174,"context_line":"                    router_id\u003drouter_id)"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"            binding \u003d query.first()"},{"line_number":177,"context_line":"            if binding:"},{"line_number":178,"context_line":"                raise dr.RouterAlreadyAssociated("},{"line_number":179,"context_line":"                    routinginstance_id\u003dbinding.routinginstance_id,"},{"line_number":180,"context_line":"                    router_id\u003drouter_id)"}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_a8fcba3f","line":177,"updated":"2014-10-01 16:00:42.000000000","message":"This check and then set needs locking to be resilient to races.  Even then, it is difficult to get right and avoid regression in the future.\n\nI think this should be handled with a constraint in the database (which it already has since these two fields are in the primary key).  If the constraint is violated, the db layer will raise a conflict error which can caught and translated in to a RouterAlreadyAssociated error.  In other words, there is no reason to check first.  Just try to add and catch the db error if a duplicate is detected.","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"6a1b766f501c7806fc247e594223ee516d98c6e6","unresolved":false,"context_lines":[{"line_number":174,"context_line":"                    router_id\u003drouter_id)"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"            binding \u003d query.first()"},{"line_number":177,"context_line":"            if binding:"},{"line_number":178,"context_line":"                raise dr.RouterAlreadyAssociated("},{"line_number":179,"context_line":"                    routinginstance_id\u003dbinding.routinginstance_id,"},{"line_number":180,"context_line":"                    router_id\u003drouter_id)"}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_5e1cd2c1","line":177,"in_reply_to":"baa201ad_a8fcba3f","updated":"2014-10-01 16:38:03.000000000","message":"Ok","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3d3c5a1b138bd0284f7e6b57d16ce1474c73d2c3","unresolved":false,"context_lines":[{"line_number":199,"context_line":"                    routinginstance_id\u003droutinginstance_db.id,"},{"line_number":200,"context_line":"                    router_id\u003drouter_id)"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"            binding \u003d query.first()"},{"line_number":203,"context_line":"            if not binding:"},{"line_number":204,"context_line":"                raise dr.RouterNotAssociated("},{"line_number":205,"context_line":"                     routinginstance_id\u003droutinginstance_id,"}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_28844ad3","line":202,"updated":"2014-10-01 16:00:42.000000000","message":"Just call delete directly here.  It will return the number of rows that were actually deleted.  If 0, you can still raise the error below.\n\nThe advantage is that it is a single query with no possibility of a race.","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"6a1b766f501c7806fc247e594223ee516d98c6e6","unresolved":false,"context_lines":[{"line_number":199,"context_line":"                    routinginstance_id\u003droutinginstance_db.id,"},{"line_number":200,"context_line":"                    router_id\u003drouter_id)"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"            binding \u003d query.first()"},{"line_number":203,"context_line":"            if not binding:"},{"line_number":204,"context_line":"                raise dr.RouterNotAssociated("},{"line_number":205,"context_line":"                     routinginstance_id\u003droutinginstance_id,"}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_de5e0276","line":202,"in_reply_to":"baa201ad_28844ad3","updated":"2014-10-01 16:38:03.000000000","message":"Gotcha","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3d3c5a1b138bd0284f7e6b57d16ce1474c73d2c3","unresolved":false,"context_lines":[{"line_number":232,"context_line":"    def _make_routingpeer_list(self, routingpeers):"},{"line_number":233,"context_line":"        routingpeer_list \u003d []"},{"line_number":234,"context_line":"        for routingpeer in routingpeers:"},{"line_number":235,"context_line":"            peer \u003d {\u0027peer\u0027: routingpeer[\u0027peer\u0027],"},{"line_number":236,"context_line":"                    \u0027remote_as\u0027: routingpeer[\u0027remote_as\u0027],"},{"line_number":237,"context_line":"                    \u0027password\u0027: routingpeer[\u0027password\u0027]}"},{"line_number":238,"context_line":"            routingpeer_list.append(peer)"}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_c8901eef","line":235,"updated":"2014-10-01 16:00:42.000000000","message":"nit:  This could be a list comprehension and follow the same pattern as the previous method.","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3d3c5a1b138bd0284f7e6b57d16ce1474c73d2c3","unresolved":false,"context_lines":[{"line_number":240,"context_line":""},{"line_number":241,"context_line":"    def _update_advertise_routes(self, context, routinginstance, routes):"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"        old_routes, routes_dict \u003d self._get_routes_dict_by_routinginstance_id("},{"line_number":244,"context_line":"            context, routinginstance[\u0027id\u0027])"},{"line_number":245,"context_line":"        added, removed \u003d utils.diff_list_of_dict(old_routes,"},{"line_number":246,"context_line":"                                                 routes)"}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_9bdbbe1a","line":243,"updated":"2014-10-01 16:00:42.000000000","message":"I\u0027d recommend just returning the dict and constructing the list to pass to diff_list_of_dict in this method.  That would simplify this call and avoid making _get_routes_dict_by_routing know too much.","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3d3c5a1b138bd0284f7e6b57d16ce1474c73d2c3","unresolved":false,"context_lines":[{"line_number":257,"context_line":"            context.session.delete("},{"line_number":258,"context_line":"                routes_dict[(route[\u0027destination\u0027], route[\u0027nexthop\u0027])])"},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"    def _update_routingpeers(self, context, routinginstance, peers):"},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"        old_peers, peers_dict \u003d self._get_peers_dict_by_routinginstance_id("},{"line_number":263,"context_line":"            context, routinginstance[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_fb684af7","line":260,"updated":"2014-10-01 16:00:42.000000000","message":"This method follows pretty much the same pattern as the previous.  So, ditto for all of my comments.","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3d3c5a1b138bd0284f7e6b57d16ce1474c73d2c3","unresolved":false,"context_lines":[{"line_number":287,"context_line":"            routes.append({\u0027destination\u0027: route[\u0027destination\u0027],"},{"line_number":288,"context_line":"                           \u0027nexthop\u0027: route[\u0027nexthop\u0027]})"},{"line_number":289,"context_line":"            routes_dict[(route[\u0027destination\u0027], route[\u0027nexthop\u0027])] \u003d route"},{"line_number":290,"context_line":"        return routes, routes_dict"},{"line_number":291,"context_line":""},{"line_number":292,"context_line":"    def _get_peers_dict_by_routinginstance_id(self, context,"},{"line_number":293,"context_line":"                                              routinginstance_id):"}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_5bf8767c","line":290,"updated":"2014-10-01 16:00:42.000000000","message":"It is a bit strange that this method returns the answer in two forms.","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"6a1b766f501c7806fc247e594223ee516d98c6e6","unresolved":false,"context_lines":[{"line_number":287,"context_line":"            routes.append({\u0027destination\u0027: route[\u0027destination\u0027],"},{"line_number":288,"context_line":"                           \u0027nexthop\u0027: route[\u0027nexthop\u0027]})"},{"line_number":289,"context_line":"            routes_dict[(route[\u0027destination\u0027], route[\u0027nexthop\u0027])] \u003d route"},{"line_number":290,"context_line":"        return routes, routes_dict"},{"line_number":291,"context_line":""},{"line_number":292,"context_line":"    def _get_peers_dict_by_routinginstance_id(self, context,"},{"line_number":293,"context_line":"                                              routinginstance_id):"}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_391e4864","line":290,"in_reply_to":"baa201ad_5bf8767c","updated":"2014-10-01 16:38:03.000000000","message":"For the previous three comments: I\u0027ve almost copied the full code from extra_routes functionality\n\nhttps://github.com/openstack/neutron/blob/master/neutron/db/extraroute_db.py#L149\n\nI will think about how to make the code more readable.","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"be74080a748c83ab734a26a6da8844cc9dfb829c","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            bgpspeaker_db \u003d self._get_bgpspeaker(context, bgpspeaker_id)"},{"line_number":94,"context_line":"            context.session.delete(bgpspeaker_db)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    # @log.log"},{"line_number":97,"context_line":"    # def list_routers_on_routinginstance(self, context, routinginstance_id):"},{"line_number":98,"context_line":"    #     query \u003d context.session.query(RoutingInstanceRouterBinding.router_id)"},{"line_number":99,"context_line":"    #     query \u003d query.filter_by(routinginstance_id\u003droutinginstance_id)"}],"source_content_type":"text/x-python","patch_set":10,"id":"9a0c5dc1_7be34234","line":96,"updated":"2015-05-13 13:25:26.000000000","message":"Remove?","commit_id":"4c624c771544c2d4bdd898c9d31d5be261cbc75d"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"be74080a748c83ab734a26a6da8844cc9dfb829c","unresolved":false,"context_lines":[{"line_number":163,"context_line":"        res \u003d dict((k, bgpspeaker[k]) for k in attr)"},{"line_number":164,"context_line":"        return self._fields(res, fields)"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    # def _make_advertise_route_list(self, advertise_routes):"},{"line_number":167,"context_line":"    #     return [{\u0027destination\u0027: route[\u0027destination\u0027],"},{"line_number":168,"context_line":"    #              \u0027nexthop\u0027: route[\u0027nexthop\u0027]}"},{"line_number":169,"context_line":"    #             for route in advertise_routes]"}],"source_content_type":"text/x-python","patch_set":10,"id":"9a0c5dc1_9bbf16fb","line":166,"updated":"2015-05-13 13:25:26.000000000","message":"ditto?","commit_id":"4c624c771544c2d4bdd898c9d31d5be261cbc75d"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7c66f3bb8537cd4f721f513716b431b8d248a8ae","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    peer \u003d sa.Column(sa.String(64), nullable\u003dFalse)"},{"line_number":47,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, autoincrement\u003dFalse)"},{"line_number":48,"context_line":"    password \u003d sa.Column(sa.String(255))"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"class DynamicRoutingDbMixin(dr.DynamicRoutingPluginBase,"}],"source_content_type":"text/x-python","patch_set":16,"id":"7a016987_0a2eb08b","line":48,"updated":"2015-06-01 05:29:45.000000000","message":"Migration and model are out of sync, need to define model for tables declared in the migration","commit_id":"0286c2ffa2ee6f07417710bfe8b0f9876247d1fd"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"3927634ba97fa0cd60baebde41248854b676cb20","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    local_as \u003d sa.Column(sa.Integer, nullable\u003dFalse)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"class RoutingPeer(model_base.BASEV2,"},{"line_number":41,"context_line":"                  models_v2.HasId,"},{"line_number":42,"context_line":"                  models_v2.HasTenant):"},{"line_number":43,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_6d4977d0","line":40,"updated":"2015-06-02 03:05:01.000000000","message":"It seems like you\u0027re missing the code that inserts into this?","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"4c71296821066c724844a51b01fdc09b1d671d8d","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    local_as \u003d sa.Column(sa.Integer, nullable\u003dFalse)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"class RoutingPeer(model_base.BASEV2,"},{"line_number":41,"context_line":"                  models_v2.HasId,"},{"line_number":42,"context_line":"                  models_v2.HasTenant):"},{"line_number":43,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_9cf2a699","line":40,"in_reply_to":"5afe65bd_6d4977d0","updated":"2015-06-02 04:46:18.000000000","message":"I think so, I\u0027ve just been working through very basic pep8, unit, and functional test issues. It would be nice if this code did something useful I suppose :)","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"5b249d22361e49f3c6094ffc868f8efd165daca1","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    peer \u003d sa.Column(sa.String(64), nullable\u003dFalse)"},{"line_number":47,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, autoincrement\u003dFalse)"},{"line_number":48,"context_line":"    password \u003d sa.Column(sa.String(255))"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"class BGPRouteAdvertisement(model_base.BASEV2):"}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_3cd5f242","line":48,"updated":"2015-06-02 04:16:09.000000000","message":"@Ryan: This we need to change as per the current spec. It should be a dictionary and may support auth credentials for various encryption techniques (For the time being only MD5 will be supported).","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"3927634ba97fa0cd60baebde41248854b676cb20","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    peer \u003d sa.Column(sa.String(64), nullable\u003dFalse)"},{"line_number":47,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, autoincrement\u003dFalse)"},{"line_number":48,"context_line":"    password \u003d sa.Column(sa.String(255))"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"class BGPRouteAdvertisement(model_base.BASEV2):"}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_4d691b8b","line":48,"updated":"2015-06-02 03:05:01.000000000","message":"Is the password limit for the bgp protocol 255 chars?","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"a9ebd7b14971423fdc63855075802d6d45f3c9ea","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    peer \u003d sa.Column(sa.String(64), nullable\u003dFalse)"},{"line_number":47,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, autoincrement\u003dFalse)"},{"line_number":48,"context_line":"    password \u003d sa.Column(sa.String(255))"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"class BGPRouteAdvertisement(model_base.BASEV2):"}],"source_content_type":"text/x-python","patch_set":18,"id":"3afb71cf_5192ff4c","line":48,"in_reply_to":"5afe65bd_3cd5f242","updated":"2015-06-11 05:24:08.000000000","message":"Done","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"4c71296821066c724844a51b01fdc09b1d671d8d","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    peer \u003d sa.Column(sa.String(64), nullable\u003dFalse)"},{"line_number":47,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, autoincrement\u003dFalse)"},{"line_number":48,"context_line":"    password \u003d sa.Column(sa.String(255))"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"class BGPRouteAdvertisement(model_base.BASEV2):"}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_7cd80a1e","line":48,"in_reply_to":"5afe65bd_4d691b8b","updated":"2015-06-02 04:46:18.000000000","message":"https://tools.ietf.org/html/rfc2385  It seems that according to this RFC any auth mechanism must support a of limit of 80 clear text characters.  I don\u0027t think we\u0027ll be storing clear-text passwords :), so I think as Vikram suggests 32 (16 hex digits) would be the expected string length.","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"5b249d22361e49f3c6094ffc868f8efd165daca1","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    peer \u003d sa.Column(sa.String(64), nullable\u003dFalse)"},{"line_number":47,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, autoincrement\u003dFalse)"},{"line_number":48,"context_line":"    password \u003d sa.Column(sa.String(255))"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"class BGPRouteAdvertisement(model_base.BASEV2):"},{"line_number":52,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_1c7c7671","line":49,"updated":"2015-06-02 04:16:09.000000000","message":"@Aaron: The current password length is user input password length. For BGP protocol the password will be converted to the appropriate (encrypted digest) size as per the defined encryption type. Ex: It will be 16 bytes in case of MD5. (http://en.wikipedia.org/wiki/MD5)","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"45253f1b5851e94c6c65a996d312afa887d942ed","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    peer \u003d sa.Column(sa.String(64), nullable\u003dFalse)"},{"line_number":47,"context_line":"    remote_as \u003d sa.Column(sa.Integer, nullable\u003dFalse, autoincrement\u003dFalse)"},{"line_number":48,"context_line":"    password \u003d sa.Column(sa.String(255))"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"class BGPRouteAdvertisement(model_base.BASEV2):"},{"line_number":52,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_e101c66b","line":49,"in_reply_to":"5afe65bd_1c7c7671","updated":"2015-06-03 00:32:01.000000000","message":"thanks","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"0a33cd3d642ab10183a7f96d87ad1ba2f5d6e345","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    password \u003d sa.Column(sa.String(255))"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"class BGPRouteAdvertisement(model_base.BASEV2):"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    __tablename__ \u003d \u0027bgp_route_advertisements\u0027"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"3afb71cf_c09d54bd","line":51,"updated":"2015-06-09 14:32:18.000000000","message":"I would prefer RouterRouteAdvertisement, which instead of inherit from BASEV2, it inherits from RouterRoute:\n\nhttps://github.com/openstack/neutron/blob/master/neutron/db/extraroute_db.py#L42\n\nYou\u0027ll have the db map relationship for free and I think it improves the coherency.","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"a9ebd7b14971423fdc63855075802d6d45f3c9ea","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    password \u003d sa.Column(sa.String(255))"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"class BGPRouteAdvertisement(model_base.BASEV2):"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    __tablename__ \u003d \u0027bgp_route_advertisements\u0027"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"3afb71cf_d17f0f13","line":51,"in_reply_to":"3afb71cf_c09d54bd","updated":"2015-06-11 05:24:08.000000000","message":"Done","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ef9a05c72a02b1a6b6d3e5917b772b32f6fbef58","unresolved":false,"context_lines":[{"line_number":65,"context_line":"                          primary_key\u003dTrue)"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"class DynamicRoutingBGPSpeakerBinding(model_base.BASEV2):"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    bgpspeaker_id \u003d sa.Column(sa.String(length\u003d36),"},{"line_number":71,"context_line":"                              sa.ForeignKey(\u0027bgp_speakers.id\u0027,"}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_bf8674b7","line":68,"updated":"2015-06-02 05:55:38.000000000","message":"I feel we got to rename these as well. How about naming it as \"BGPSpeakerBinding\" instead of \"DynamicRoutingBGPSpeakerBinding\". Please check for all the naming. We might need to remove the notion of dynamic routing.","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"0a33cd3d642ab10183a7f96d87ad1ba2f5d6e345","unresolved":false,"context_lines":[{"line_number":65,"context_line":"                          primary_key\u003dTrue)"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"class DynamicRoutingBGPSpeakerBinding(model_base.BASEV2):"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    bgpspeaker_id \u003d sa.Column(sa.String(length\u003d36),"},{"line_number":71,"context_line":"                              sa.ForeignKey(\u0027bgp_speakers.id\u0027,"}],"source_content_type":"text/x-python","patch_set":18,"id":"3afb71cf_c0eb1412","line":68,"in_reply_to":"5afe65bd_2e39d941","updated":"2015-06-09 14:32:18.000000000","message":"Agree with Ryan.","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"544f419ebed00b93c419cfa47b9df8a159380c1a","unresolved":false,"context_lines":[{"line_number":65,"context_line":"                          primary_key\u003dTrue)"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"class DynamicRoutingBGPSpeakerBinding(model_base.BASEV2):"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    bgpspeaker_id \u003d sa.Column(sa.String(length\u003d36),"},{"line_number":71,"context_line":"                              sa.ForeignKey(\u0027bgp_speakers.id\u0027,"}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_2e39d941","line":68,"in_reply_to":"5afe65bd_bf8674b7","updated":"2015-06-03 23:02:35.000000000","message":"I like being explicit about BGP, the \"DynamicRouting\" prefix is uncessary though. I also like the slightly shorter names as well. Done.","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"}],"neutron/db/migration/alembic_migrations/versions/15be73214821_add_bgp_speaker_model_data.py":[{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"c564ff8a5d8e9fc350167cadf4c9e669fd88f94d","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    op.create_table("},{"line_number":45,"context_line":"        \u0027bgppeers\u0027,"},{"line_number":46,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":47,"context_line":"        sa.Column(\u0027password\u0027, sa.String(length\u003d255), nullable\u003dTrue),"},{"line_number":48,"context_line":"        sa.Column(\u0027peer_ip\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":49,"context_line":"        sa.Column(\u0027remote_as\u0027, sa.Integer, nullable\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_9b107150","line":46,"updated":"2015-06-12 10:16:30.000000000","message":"Here you don\u0027t have the bgpspeaker_id in the columns. I assume it was a typo in the db file...","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"4cd4d3c749a890d68fca95a2842daa9d5cfccffc","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    op.create_table("},{"line_number":45,"context_line":"        \u0027bgppeers\u0027,"},{"line_number":46,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":47,"context_line":"        sa.Column(\u0027password\u0027, sa.String(length\u003d255), nullable\u003dTrue),"},{"line_number":48,"context_line":"        sa.Column(\u0027peer_ip\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":49,"context_line":"        sa.Column(\u0027remote_as\u0027, sa.Integer, nullable\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_aa9ceb69","line":46,"in_reply_to":"1af86dd1_9b107150","updated":"2015-06-12 16:04:32.000000000","message":"bgpspeaker_id is not in the model either. Currently bgpspeaker_id is mapped in peerbgpspeakerbindings, but the model does need to expose bgpspeaker_id somehow.","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"54dee5ec4b9a6f54a459d6d4134cdb2cda1d772c","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        sa.Column(\u0027local_as\u0027, sa.Integer, nullable\u003dFalse),"},{"line_number":37,"context_line":"        sa.Column(\u0027name\u0027,"},{"line_number":38,"context_line":"                  sa.String(length\u003d255),"},{"line_number":39,"context_line":"                  nullable\u003dTrue),"},{"line_number":40,"context_line":"        sa.Column(\u0027tenant_id\u0027,"},{"line_number":41,"context_line":"                  sa.String(length\u003d255),"},{"line_number":42,"context_line":"                  nullable\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_c8e7eae2","line":39,"updated":"2015-06-16 08:48:27.000000000","message":"Do we really need a name? I think the `local_as` defines the speaker good enough from protocol point of view and `id` from database point of view.","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"c33a680b160292a602d68ee022244870ceb159d8","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        sa.Column(\u0027local_as\u0027, sa.Integer, nullable\u003dFalse),"},{"line_number":37,"context_line":"        sa.Column(\u0027name\u0027,"},{"line_number":38,"context_line":"                  sa.String(length\u003d255),"},{"line_number":39,"context_line":"                  nullable\u003dTrue),"},{"line_number":40,"context_line":"        sa.Column(\u0027tenant_id\u0027,"},{"line_number":41,"context_line":"                  sa.String(length\u003d255),"},{"line_number":42,"context_line":"                  nullable\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_c44fc0bb","line":39,"in_reply_to":"fa32b979_c8e7eae2","updated":"2015-06-16 15:33:24.000000000","message":"I threw in a name here since the existing unit tests were expecting a name.  I don\u0027t think we need \u0027name\u0027 either.","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"54dee5ec4b9a6f54a459d6d4134cdb2cda1d772c","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    )"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    op.create_table("},{"line_number":48,"context_line":"        \u0027bgppeers\u0027,"},{"line_number":49,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":50,"context_line":"        sa.Column(\u0027password\u0027, sa.String(length\u003d255), nullable\u003dTrue),"},{"line_number":51,"context_line":"        sa.Column(\u0027peer_ip\u0027, sa.String(length\u003d64), nullable\u003dFalse),"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_68457eb1","line":48,"updated":"2015-06-16 08:48:27.000000000","message":"If you go the \u0027underscore way\u0027 to name tables (i like it, improves readability ), let\u0027s be coherent here: `bgp_peers`.","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"c33a680b160292a602d68ee022244870ceb159d8","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    )"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    op.create_table("},{"line_number":48,"context_line":"        \u0027bgppeers\u0027,"},{"line_number":49,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":50,"context_line":"        sa.Column(\u0027password\u0027, sa.String(length\u003d255), nullable\u003dTrue),"},{"line_number":51,"context_line":"        sa.Column(\u0027peer_ip\u0027, sa.String(length\u003d64), nullable\u003dFalse),"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_6487d4d7","line":48,"in_reply_to":"fa32b979_68457eb1","updated":"2015-06-16 15:33:24.000000000","message":"Done","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"ff0f94630fb08a286e7d2f7215ba405fa24633c7","unresolved":false,"context_lines":[{"line_number":84,"context_line":"    )"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    op.create_table("},{"line_number":87,"context_line":"        \u0027peerbgpspeakerbindings\u0027,"},{"line_number":88,"context_line":"        sa.Column(\u0027bgpspeaker_id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":89,"context_line":"        sa.Column(\u0027bgppeer_id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":90,"context_line":"        sa.ForeignKeyConstraint([\u0027bgpspeaker_id\u0027], [\u0027bgp_speakers.id\u0027],"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_1555c6f8","line":87,"updated":"2015-06-16 21:08:33.000000000","message":"This will be the only table not starting with bgp_. Does bgp_peer_speaker_bindings sound wrong?","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"7fcae16268b29f07b6add8b38c8631a7cf6c1658","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        \u0027bgp_peers\u0027,"},{"line_number":49,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":50,"context_line":"        sa.Column(\u0027auth_type\u0027, sa.String(length\u003d16), nullable\u003dFalse),"},{"line_number":51,"context_line":"        sa.Column(\u0027password\u0027, sa.String(length\u003d16), nullable\u003dFalse),"},{"line_number":52,"context_line":"        sa.Column(\u0027peer_ip\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":53,"context_line":"        sa.Column(\u0027remote_as\u0027, sa.Integer, nullable\u003dFalse,"},{"line_number":54,"context_line":"                  autoincrement\u003dFalse),"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_8f28a8e3","line":51,"updated":"2015-07-02 12:24:45.000000000","message":"Curious as to why password is limited to 16 chars?","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"61c5943b5546d7a045708617b94eb218041cbbdd","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        \u0027bgp_peers\u0027,"},{"line_number":49,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":50,"context_line":"        sa.Column(\u0027auth_type\u0027, sa.String(length\u003d16), nullable\u003dFalse),"},{"line_number":51,"context_line":"        sa.Column(\u0027password\u0027, sa.String(length\u003d16), nullable\u003dFalse),"},{"line_number":52,"context_line":"        sa.Column(\u0027peer_ip\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":53,"context_line":"        sa.Column(\u0027remote_as\u0027, sa.Integer, nullable\u003dFalse,"},{"line_number":54,"context_line":"                  autoincrement\u003dFalse),"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_f2802d8d","line":51,"in_reply_to":"ba3cc151_8f28a8e3","updated":"2015-07-02 16:08:27.000000000","message":"Initially I had been thinking about MD5 auth only.  With MD5 auth, the password will always be 16 characters.  Since there are other auth types to support, this should probably be a little more flexible.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"35e1d8d96be3056c619f2ca2a5f21c03ff83eb17","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        \u0027bgp_peers\u0027,"},{"line_number":49,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":50,"context_line":"        sa.Column(\u0027auth_type\u0027, sa.String(length\u003d16), nullable\u003dFalse),"},{"line_number":51,"context_line":"        sa.Column(\u0027password\u0027, sa.String(length\u003d16), nullable\u003dFalse),"},{"line_number":52,"context_line":"        sa.Column(\u0027peer_ip\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":53,"context_line":"        sa.Column(\u0027remote_as\u0027, sa.Integer, nullable\u003dFalse,"},{"line_number":54,"context_line":"                  autoincrement\u003dFalse),"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_005dfbeb","line":51,"in_reply_to":"ba3cc151_f2802d8d","updated":"2015-07-04 14:18:00.000000000","message":"+1 to being more flexible","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"17d7f39864c3a21eccf4ae0c8e57cb2d24c8a84b","unresolved":false,"context_lines":[{"line_number":89,"context_line":"    op.create_unique_constraint(name\u003dCONSTRAINT_NAME_NETWORK_ID,"},{"line_number":90,"context_line":"                                source\u003d\u0027bgp_speaker_network_bindings\u0027,"},{"line_number":91,"context_line":"                                local_cols\u003d[\u0027network_id\u0027])"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    op.create_table("},{"line_number":94,"context_line":"        \u0027peer_bgp_speaker_bindings\u0027,"},{"line_number":95,"context_line":"        sa.Column(\u0027bgp_speaker_id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_9bcadc4e","line":92,"updated":"2015-06-29 08:57:31.000000000","message":"bgp_speaker_router_bindings?","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7739745b0cd63cd53df60f4ef8236bd9b2d0cee1","unresolved":false,"context_lines":[{"line_number":89,"context_line":"    op.create_unique_constraint(name\u003dCONSTRAINT_NAME_NETWORK_ID,"},{"line_number":90,"context_line":"                                source\u003d\u0027bgp_speaker_network_bindings\u0027,"},{"line_number":91,"context_line":"                                local_cols\u003d[\u0027network_id\u0027])"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    op.create_table("},{"line_number":94,"context_line":"        \u0027peer_bgp_speaker_bindings\u0027,"},{"line_number":95,"context_line":"        sa.Column(\u0027bgp_speaker_id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_cddbbcec","line":92,"in_reply_to":"ba3cc151_9bcadc4e","updated":"2015-06-29 15:29:03.000000000","message":"See comments in bgp_speaker_db.py","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"edbd1786fea826146158ce81ae655ce25e555301","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        \u0027bgp_peers\u0027,"},{"line_number":49,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":50,"context_line":"        sa.Column(\u0027auth_type\u0027, sa.String(length\u003d16), nullable\u003dFalse),"},{"line_number":51,"context_line":"        sa.Column(\u0027password\u0027, sa.String(length\u003d16), nullable\u003dTrue),"},{"line_number":52,"context_line":"        sa.Column(\u0027peer_ip\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":53,"context_line":"        sa.Column(\u0027remote_as\u0027, sa.Integer, nullable\u003dFalse,"},{"line_number":54,"context_line":"                  autoincrement\u003dFalse),"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_0741ea62","line":51,"updated":"2015-07-08 20:09:48.000000000","message":"I would argue make this 64 and not have to come back and change it later","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"b918707254587bb0aebd3bca2c473738616bea92","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        \u0027bgp_peers\u0027,"},{"line_number":49,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":50,"context_line":"        sa.Column(\u0027auth_type\u0027, sa.String(length\u003d16), nullable\u003dFalse),"},{"line_number":51,"context_line":"        sa.Column(\u0027password\u0027, sa.String(length\u003d16), nullable\u003dTrue),"},{"line_number":52,"context_line":"        sa.Column(\u0027peer_ip\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":53,"context_line":"        sa.Column(\u0027remote_as\u0027, sa.Integer, nullable\u003dFalse,"},{"line_number":54,"context_line":"                  autoincrement\u003dFalse),"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_b2df050c","line":51,"in_reply_to":"ba3cc151_0741ea62","updated":"2015-07-09 05:18:57.000000000","message":"+1.","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"762eed2ab4b64880fca4b2e2241083aea2bc9a9d","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        \u0027bgp_peers\u0027,"},{"line_number":49,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":50,"context_line":"        sa.Column(\u0027auth_type\u0027, sa.String(length\u003d16), nullable\u003dFalse),"},{"line_number":51,"context_line":"        sa.Column(\u0027password\u0027, sa.String(length\u003d16), nullable\u003dTrue),"},{"line_number":52,"context_line":"        sa.Column(\u0027peer_ip\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":53,"context_line":"        sa.Column(\u0027remote_as\u0027, sa.Integer, nullable\u003dFalse,"},{"line_number":54,"context_line":"                  autoincrement\u003dFalse),"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_4805be0e","line":51,"in_reply_to":"ba3cc151_0741ea62","updated":"2015-07-09 18:20:00.000000000","message":"I think we need to support no-auth, so a password would be omitted in that case.  I\u0027ll just go with 255 chars.","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"902f28e0768848097a8b3b7ab14cc5896e0b8eb3","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        \u0027bgp_peers\u0027,"},{"line_number":49,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":50,"context_line":"        sa.Column(\u0027auth_type\u0027, sa.String(length\u003d16), nullable\u003dFalse),"},{"line_number":51,"context_line":"        sa.Column(\u0027password\u0027, sa.String(length\u003d16), nullable\u003dTrue),"},{"line_number":52,"context_line":"        sa.Column(\u0027peer_ip\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":53,"context_line":"        sa.Column(\u0027remote_as\u0027, sa.Integer, nullable\u003dFalse,"},{"line_number":54,"context_line":"                  autoincrement\u003dFalse),"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_10cc9787","line":51,"in_reply_to":"ba3cc151_b2df050c","updated":"2015-07-09 12:26:16.000000000","message":"In other places in Neutron, passwords are 255 chars.  Also, do you want to allow the password to be omitted?","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"}],"neutron/db/migration/alembic_migrations/versions/15be73214821_add_dynamic_routing_model_data.py":[{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"70d47b961e601f3fd778aef9c5fcb720fdc1b138","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        \u0027advertiseroutes\u0027,"},{"line_number":57,"context_line":"        sa.Column(\u0027destination\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":58,"context_line":"        sa.Column("},{"line_number":59,"context_line":"            \u0027nexthop\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":60,"context_line":"        sa.Column(\u0027routinginstance_id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":61,"context_line":"        sa.ForeignKeyConstraint([\u0027routinginstance_id\u0027],"},{"line_number":62,"context_line":"                                [\u0027routinginstances.id\u0027],"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_41b2d706","line":59,"updated":"2014-08-28 09:58:17.000000000","message":"nit: Why this is on the next line?","commit_id":"00d32d36bd5135c8cea702c655d00f6d96090a6c"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"e5bfe81f22728d3354050f1b12df0b9be3f758af","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        \u0027advertiseroutes\u0027,"},{"line_number":57,"context_line":"        sa.Column(\u0027destination\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":58,"context_line":"        sa.Column("},{"line_number":59,"context_line":"            \u0027nexthop\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":60,"context_line":"        sa.Column(\u0027routinginstance_id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":61,"context_line":"        sa.ForeignKeyConstraint([\u0027routinginstance_id\u0027],"},{"line_number":62,"context_line":"                                [\u0027routinginstances.id\u0027],"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_0dd569e4","line":59,"in_reply_to":"1abeadc6_41b2d706","updated":"2014-08-28 13:20:18.000000000","message":"You are right, it shouldn\u0027t be. I\u0027ll fix it in next patch. thanks!","commit_id":"00d32d36bd5135c8cea702c655d00f6d96090a6c"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"be74080a748c83ab734a26a6da8844cc9dfb829c","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"# revision identifiers, used by Alembic."},{"line_number":25,"context_line":"revision \u003d \u002715be73214821\u0027"},{"line_number":26,"context_line":"down_revision \u003d \u0027408cfbf6923c\u0027"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"from alembic import op"},{"line_number":29,"context_line":"import sqlalchemy as sa"}],"source_content_type":"text/x-python","patch_set":10,"id":"9a0c5dc1_bbe3fa04","line":26,"updated":"2015-05-13 13:25:26.000000000","message":"remove.","commit_id":"4c624c771544c2d4bdd898c9d31d5be261cbc75d"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"b0c4b224a3e289baaf17ee30ec131c16d3634803","unresolved":false,"context_lines":[{"line_number":29,"context_line":"import sqlalchemy as sa"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    op.create_table("},{"line_number":35,"context_line":"        \u0027bgp_speakers\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a890539_664d62c4","line":32,"updated":"2014-12-02 07:36:25.000000000","message":"active_plugins and options are not necessary now, should be removed.","commit_id":"4c624c771544c2d4bdd898c9d31d5be261cbc75d"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"b0c4b224a3e289baaf17ee30ec131c16d3634803","unresolved":false,"context_lines":[{"line_number":99,"context_line":""},{"line_number":100,"context_line":""},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"def downgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    op.drop_table(\u0027bgpspeakeragentbinding\u0027)"},{"line_number":105,"context_line":"    op.drop_table(\u0027peerbgpspeakerbindings\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a890539_a6c66a14","line":102,"updated":"2014-12-02 07:36:25.000000000","message":"the same","commit_id":"4c624c771544c2d4bdd898c9d31d5be261cbc75d"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"be74080a748c83ab734a26a6da8844cc9dfb829c","unresolved":false,"context_lines":[{"line_number":99,"context_line":""},{"line_number":100,"context_line":""},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"def downgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    op.drop_table(\u0027bgpspeakeragentbinding\u0027)"},{"line_number":105,"context_line":"    op.drop_table(\u0027peerbgpspeakerbindings\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"9a0c5dc1_1bde863f","line":102,"in_reply_to":"5a890539_a6c66a14","updated":"2015-05-13 13:25:26.000000000","message":"We no longer use downgrade() methods.","commit_id":"4c624c771544c2d4bdd898c9d31d5be261cbc75d"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7c66f3bb8537cd4f721f513716b431b8d248a8ae","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"def upgrade():"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    op.create_table("},{"line_number":34,"context_line":"        \u0027bgp_speakers\u0027,"},{"line_number":35,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"}],"source_content_type":"text/x-python","patch_set":16,"id":"7a016987_4a66e8ed","line":32,"updated":"2015-06-01 05:29:45.000000000","message":"Migration and model are out of sync","commit_id":"0286c2ffa2ee6f07417710bfe8b0f9876247d1fd"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7c66f3bb8537cd4f721f513716b431b8d248a8ae","unresolved":false,"context_lines":[{"line_number":34,"context_line":"        \u0027bgp_speakers\u0027,"},{"line_number":35,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":36,"context_line":"        sa.Column(\u0027local_as\u0027, sa.Integer, nullable\u003dFalse),"},{"line_number":37,"context_line":"        sa.Column(\u0027tenant_id\u0027, sa.String(length\u003d255), nullable\u003dTrue),"},{"line_number":38,"context_line":"        sa.PrimaryKeyConstraint(\u0027id\u0027)"},{"line_number":39,"context_line":"    )"},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"7a016987_6a440449","line":37,"updated":"2015-06-01 05:29:45.000000000","message":"add index\u003dTrue","commit_id":"0286c2ffa2ee6f07417710bfe8b0f9876247d1fd"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7c66f3bb8537cd4f721f513716b431b8d248a8ae","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        sa.Column(\u0027password\u0027, sa.String(length\u003d255), nullable\u003dTrue),"},{"line_number":45,"context_line":"        sa.Column(\u0027peer\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":46,"context_line":"        sa.Column(\u0027remote_as\u0027, sa.Integer, nullable\u003dFalse,"},{"line_number":47,"context_line":"                  autoincrement\u003dFalse),"},{"line_number":48,"context_line":"        sa.PrimaryKeyConstraint(\u0027id\u0027)"},{"line_number":49,"context_line":"    )"},{"line_number":50,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"7a016987_2a4a8c55","line":47,"updated":"2015-06-01 05:29:45.000000000","message":"add tenant_id column","commit_id":"0286c2ffa2ee6f07417710bfe8b0f9876247d1fd"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7c66f3bb8537cd4f721f513716b431b8d248a8ae","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    )"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    op.create_table("},{"line_number":52,"context_line":"        \u0027advertiseroutes\u0027,"},{"line_number":53,"context_line":"        sa.Column(\u0027destination\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":54,"context_line":"        sa.Column(\u0027nexthop\u0027, sa.String(length\u003d64), nullable\u003dFalse),"},{"line_number":55,"context_line":"        sa.Column(\u0027router_id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"}],"source_content_type":"text/x-python","patch_set":16,"id":"7a016987_0a459041","line":52,"updated":"2015-06-01 05:29:45.000000000","message":"add to model","commit_id":"0286c2ffa2ee6f07417710bfe8b0f9876247d1fd"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7c66f3bb8537cd4f721f513716b431b8d248a8ae","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    )"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    op.create_table("},{"line_number":63,"context_line":"        \u0027dynamicroutingbgpspeakerbindings\u0027,"},{"line_number":64,"context_line":"        sa.Column(\u0027bgpspeaker_id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":65,"context_line":"        sa.Column(\u0027router_id\u0027, sa.String(length\u003d36), nullable\u003dTrue),"},{"line_number":66,"context_line":"        sa.Column(\u0027network_id\u0027, sa.String(length\u003d36), nullable\u003dTrue),"}],"source_content_type":"text/x-python","patch_set":16,"id":"7a016987_aa6c3cd0","line":63,"updated":"2015-06-01 05:29:45.000000000","message":"add to model","commit_id":"0286c2ffa2ee6f07417710bfe8b0f9876247d1fd"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7c66f3bb8537cd4f721f513716b431b8d248a8ae","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    )"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    op.create_table("},{"line_number":78,"context_line":"        \u0027peerbgpspeakerbindings\u0027,"},{"line_number":79,"context_line":"        sa.Column(\u0027bgpspeaker_id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":80,"context_line":"        sa.Column(\u0027routingpeer_id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":81,"context_line":"        sa.ForeignKeyConstraint([\u0027bgpspeaker_id\u0027], [\u0027bgp_speakers.id\u0027],"}],"source_content_type":"text/x-python","patch_set":16,"id":"7a016987_8a6f40c3","line":78,"updated":"2015-06-01 05:29:45.000000000","message":"add to model","commit_id":"0286c2ffa2ee6f07417710bfe8b0f9876247d1fd"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7c66f3bb8537cd4f721f513716b431b8d248a8ae","unresolved":false,"context_lines":[{"line_number":86,"context_line":"    )"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    op.create_table("},{"line_number":89,"context_line":"        \u0027bgpspeakeragentbinding\u0027,"},{"line_number":90,"context_line":"        sa.Column(\u0027bgpspeaker_id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":91,"context_line":"        sa.Column(\u0027agent_id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":92,"context_line":"        sa.ForeignKeyConstraint([\u0027bgpspeaker_id\u0027], [\u0027bgp_speakers.id\u0027],"}],"source_content_type":"text/x-python","patch_set":16,"id":"7a016987_6a6be4b7","line":89,"updated":"2015-06-01 05:29:45.000000000","message":"add to model","commit_id":"0286c2ffa2ee6f07417710bfe8b0f9876247d1fd"}],"neutron/extensions/bgp_speaker.py":[{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"66dc6a2123bc27ec4f893530ce14f5b397695fbd","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        \u0027id\u0027: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: False,"},{"line_number":32,"context_line":"               \u0027validate\u0027: {\u0027type:uuid\u0027: None},"},{"line_number":33,"context_line":"               \u0027is_visible\u0027: True, \u0027primary_key\u0027: True},"},{"line_number":34,"context_line":"        \u0027local_as\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":35,"context_line":"                     \u0027validate\u0027: {\u0027type:range\u0027: (0, 65536)},"},{"line_number":36,"context_line":"                     \u0027is_visible\u0027: True, \u0027default\u0027: None,"},{"line_number":37,"context_line":"                     \u0027required_by_policy\u0027: False,"}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_f5b0778d","line":34,"updated":"2015-06-12 21:45:06.000000000","message":"Should we allow PUT here?  There should also be some enforcement of local ASN uniqueness within an address scope. Local ASN\u0027s don\u0027t need to be unique across scopes, but they probably do need to be unique within a specific address scope.","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"17d7f39864c3a21eccf4ae0c8e57cb2d24c8a84b","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                      \u0027required_by_policy\u0027: False,"},{"line_number":45,"context_line":"                      \u0027validate\u0027: {\u0027type:string\u0027: None},"},{"line_number":46,"context_line":"                      \u0027is_visible\u0027: True},"},{"line_number":47,"context_line":"        \u0027peers\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: False,"},{"line_number":48,"context_line":"                  \u0027validate\u0027: {\u0027type:uuid_list\u0027: None},"},{"line_number":49,"context_line":"                  \u0027is_visible\u0027: True, \u0027default\u0027: [],"},{"line_number":50,"context_line":"                  \u0027required_by_policy\u0027: False,"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_5bf2149c","line":47,"updated":"2015-06-29 08:57:31.000000000","message":"Since peers are created on \u0027bgp-peers\u0027, shouldn\u0027t this attribute be \u0027read-only\u0027? \u0027allow_post\u0027: False","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7739745b0cd63cd53df60f4ef8236bd9b2d0cee1","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                      \u0027required_by_policy\u0027: False,"},{"line_number":45,"context_line":"                      \u0027validate\u0027: {\u0027type:string\u0027: None},"},{"line_number":46,"context_line":"                      \u0027is_visible\u0027: True},"},{"line_number":47,"context_line":"        \u0027peers\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: False,"},{"line_number":48,"context_line":"                  \u0027validate\u0027: {\u0027type:uuid_list\u0027: None},"},{"line_number":49,"context_line":"                  \u0027is_visible\u0027: True, \u0027default\u0027: [],"},{"line_number":50,"context_line":"                  \u0027required_by_policy\u0027: False,"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_cdb09c8e","line":47,"in_reply_to":"ba3cc151_5bf2149c","updated":"2015-06-29 15:29:03.000000000","message":"Yes, peers are created on bgp-peers.  This takes a list of bgp_peer UUID\u0027s.  This enables binding of a speaker to an existing peer on creation of a speaker.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"17d7f39864c3a21eccf4ae0c8e57cb2d24c8a84b","unresolved":false,"context_lines":[{"line_number":45,"context_line":"                      \u0027validate\u0027: {\u0027type:string\u0027: None},"},{"line_number":46,"context_line":"                      \u0027is_visible\u0027: True},"},{"line_number":47,"context_line":"        \u0027peers\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: False,"},{"line_number":48,"context_line":"                  \u0027validate\u0027: {\u0027type:uuid_list\u0027: None},"},{"line_number":49,"context_line":"                  \u0027is_visible\u0027: True, \u0027default\u0027: [],"},{"line_number":50,"context_line":"                  \u0027required_by_policy\u0027: False,"},{"line_number":51,"context_line":"                  \u0027enforce_policy\u0027: True},"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_5b49b4cf","line":48,"updated":"2015-06-29 08:57:31.000000000","message":"No need to validate in this case.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7739745b0cd63cd53df60f4ef8236bd9b2d0cee1","unresolved":false,"context_lines":[{"line_number":45,"context_line":"                      \u0027validate\u0027: {\u0027type:string\u0027: None},"},{"line_number":46,"context_line":"                      \u0027is_visible\u0027: True},"},{"line_number":47,"context_line":"        \u0027peers\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: False,"},{"line_number":48,"context_line":"                  \u0027validate\u0027: {\u0027type:uuid_list\u0027: None},"},{"line_number":49,"context_line":"                  \u0027is_visible\u0027: True, \u0027default\u0027: [],"},{"line_number":50,"context_line":"                  \u0027required_by_policy\u0027: False,"},{"line_number":51,"context_line":"                  \u0027enforce_policy\u0027: True},"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_4d4a4c85","line":48,"in_reply_to":"ba3cc151_5b49b4cf","updated":"2015-06-29 15:29:03.000000000","message":"We do want this validation to ensure proper list of UUID\u0027s is being passed","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"17d7f39864c3a21eccf4ae0c8e57cb2d24c8a84b","unresolved":false,"context_lines":[{"line_number":49,"context_line":"                  \u0027is_visible\u0027: True, \u0027default\u0027: [],"},{"line_number":50,"context_line":"                  \u0027required_by_policy\u0027: False,"},{"line_number":51,"context_line":"                  \u0027enforce_policy\u0027: True},"},{"line_number":52,"context_line":"        \u0027networks\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: False,"},{"line_number":53,"context_line":"                     \u0027validate\u0027: {\u0027type:uuid_list\u0027: None},"},{"line_number":54,"context_line":"                     \u0027is_visible\u0027: True, \u0027default\u0027: [],"},{"line_number":55,"context_line":"                     \u0027required_by_policy\u0027: False,"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_9b3f3c25","line":52,"updated":"2015-06-29 08:57:31.000000000","message":"Same here, we associate the networks in another endpoint. \u0027allow_post\u0027: False","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7739745b0cd63cd53df60f4ef8236bd9b2d0cee1","unresolved":false,"context_lines":[{"line_number":49,"context_line":"                  \u0027is_visible\u0027: True, \u0027default\u0027: [],"},{"line_number":50,"context_line":"                  \u0027required_by_policy\u0027: False,"},{"line_number":51,"context_line":"                  \u0027enforce_policy\u0027: True},"},{"line_number":52,"context_line":"        \u0027networks\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: False,"},{"line_number":53,"context_line":"                     \u0027validate\u0027: {\u0027type:uuid_list\u0027: None},"},{"line_number":54,"context_line":"                     \u0027is_visible\u0027: True, \u0027default\u0027: [],"},{"line_number":55,"context_line":"                     \u0027required_by_policy\u0027: False,"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_2d402856","line":52,"in_reply_to":"ba3cc151_9b3f3c25","updated":"2015-06-29 15:29:03.000000000","message":"Same comment as above.  The binding can be made on create if the network already exists.  I see no reason to block the user from doing that.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"17d7f39864c3a21eccf4ae0c8e57cb2d24c8a84b","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                  \u0027required_by_policy\u0027: False,"},{"line_number":51,"context_line":"                  \u0027enforce_policy\u0027: True},"},{"line_number":52,"context_line":"        \u0027networks\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: False,"},{"line_number":53,"context_line":"                     \u0027validate\u0027: {\u0027type:uuid_list\u0027: None},"},{"line_number":54,"context_line":"                     \u0027is_visible\u0027: True, \u0027default\u0027: [],"},{"line_number":55,"context_line":"                     \u0027required_by_policy\u0027: False,"},{"line_number":56,"context_line":"                     \u0027enforce_policy\u0027: True},"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_1b124cb5","line":53,"updated":"2015-06-29 08:57:31.000000000","message":"No need to validate.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"17d7f39864c3a21eccf4ae0c8e57cb2d24c8a84b","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                     \u0027required_by_policy\u0027: False,"},{"line_number":70,"context_line":"                     \u0027enforce_policy\u0027: False},"},{"line_number":71,"context_line":"        # TODO(tidwellr) custom validators for auth_type and/or password?"},{"line_number":72,"context_line":"        \u0027auth_type\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":73,"context_line":"                      \u0027required_by_policy\u0027: True,"},{"line_number":74,"context_line":"                      \u0027validate\u0027: {\u0027type:string\u0027: None},"},{"line_number":75,"context_line":"                      \u0027is_visible\u0027: True},"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_3b7e30e5","line":72,"updated":"2015-06-29 08:57:31.000000000","message":"Allow put? Changing the autorization type from a BGP session is a real use case?","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7739745b0cd63cd53df60f4ef8236bd9b2d0cee1","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                     \u0027required_by_policy\u0027: False,"},{"line_number":70,"context_line":"                     \u0027enforce_policy\u0027: False},"},{"line_number":71,"context_line":"        # TODO(tidwellr) custom validators for auth_type and/or password?"},{"line_number":72,"context_line":"        \u0027auth_type\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":73,"context_line":"                      \u0027required_by_policy\u0027: True,"},{"line_number":74,"context_line":"                      \u0027validate\u0027: {\u0027type:string\u0027: None},"},{"line_number":75,"context_line":"                      \u0027is_visible\u0027: True},"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_ed09e032","line":72,"in_reply_to":"ba3cc151_3b7e30e5","updated":"2015-06-29 15:29:03.000000000","message":"Good catch.  Probably not a real use case.  Better to delete and re-create the peer if the auth changes.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"aa81dad675ce57c626b1ca9a520ddc0d02abe695","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        \u0027password\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":77,"context_line":"                     \u0027required_by_policy\u0027: True,"},{"line_number":78,"context_line":"                     \u0027validate\u0027: {\u0027type:string\u0027: None},"},{"line_number":79,"context_line":"                     \u0027is_visible\u0027: True},"},{"line_number":80,"context_line":"        \u0027tenant_id\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: False,"},{"line_number":81,"context_line":"                      \u0027required_by_policy\u0027: False,"},{"line_number":82,"context_line":"                      \u0027validate\u0027: {\u0027type:string\u0027: None},"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_b94eef38","line":79,"updated":"2015-07-03 07:00:44.000000000","message":"I am also in the favor of not displaying the password. It could be risky.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"17d7f39864c3a21eccf4ae0c8e57cb2d24c8a84b","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        \u0027password\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":77,"context_line":"                     \u0027required_by_policy\u0027: True,"},{"line_number":78,"context_line":"                     \u0027validate\u0027: {\u0027type:string\u0027: None},"},{"line_number":79,"context_line":"                     \u0027is_visible\u0027: True},"},{"line_number":80,"context_line":"        \u0027tenant_id\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: False,"},{"line_number":81,"context_line":"                      \u0027required_by_policy\u0027: False,"},{"line_number":82,"context_line":"                      \u0027validate\u0027: {\u0027type:string\u0027: None},"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_7b74b8fc","line":79,"updated":"2015-06-29 08:57:31.000000000","message":"Not sure is password should be visible... Even if the endpoint is admin-only.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7739745b0cd63cd53df60f4ef8236bd9b2d0cee1","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        \u0027password\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":77,"context_line":"                     \u0027required_by_policy\u0027: True,"},{"line_number":78,"context_line":"                     \u0027validate\u0027: {\u0027type:string\u0027: None},"},{"line_number":79,"context_line":"                     \u0027is_visible\u0027: True},"},{"line_number":80,"context_line":"        \u0027tenant_id\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: False,"},{"line_number":81,"context_line":"                      \u0027required_by_policy\u0027: False,"},{"line_number":82,"context_line":"                      \u0027validate\u0027: {\u0027type:string\u0027: None},"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_c813aa5b","line":79,"in_reply_to":"ba3cc151_7b74b8fc","updated":"2015-06-29 15:29:03.000000000","message":"Agreed.  I left a comment in bgp_speaker_db.py questioning this.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"17d7f39864c3a21eccf4ae0c8e57cb2d24c8a84b","unresolved":false,"context_lines":[{"line_number":84,"context_line":"    },"},{"line_number":85,"context_line":"    \u0027bgp-advertised-routes\u0027: {"},{"line_number":86,"context_line":"        \u0027next-hop\u0027: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: False,"},{"line_number":87,"context_line":"               \u0027validate\u0027: {\u0027type:ip_address\u0027: None},"},{"line_number":88,"context_line":"               \u0027is_visible\u0027: True},"},{"line_number":89,"context_line":"        \u0027destination\u0027: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: False,"},{"line_number":90,"context_line":"                        \u0027required_by_policy\u0027: True,"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_3bccf034","line":87,"updated":"2015-06-29 08:57:31.000000000","message":"No need to validate read-only attributes.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"17d7f39864c3a21eccf4ae0c8e57cb2d24c8a84b","unresolved":false,"context_lines":[{"line_number":88,"context_line":"               \u0027is_visible\u0027: True},"},{"line_number":89,"context_line":"        \u0027destination\u0027: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: False,"},{"line_number":90,"context_line":"                        \u0027required_by_policy\u0027: True,"},{"line_number":91,"context_line":"                        \u0027validate\u0027: {\u0027type:subnet\u0027: None},"},{"line_number":92,"context_line":"                        \u0027is_visible\u0027: True},"},{"line_number":93,"context_line":"        \u0027bgp_speaker_id\u0027: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: False,"},{"line_number":94,"context_line":"                           \u0027validate\u0027: {\u0027type:uuid\u0027: None}},"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_9bdbbced","line":91,"updated":"2015-06-29 08:57:31.000000000","message":"Same here and the rest.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"aa81dad675ce57c626b1ca9a520ddc0d02abe695","unresolved":false,"context_lines":[{"line_number":99,"context_line":""},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"# Dynamic Routing Exceptions"},{"line_number":102,"context_line":"class BgpSpeakerNotFound(exceptions.NotFound):"},{"line_number":103,"context_line":"    message \u003d _(\"bgp_speaker %(bgp_speaker_id)s could not be found.\")"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_39089fd9","line":102,"updated":"2015-07-03 07:00:44.000000000","message":"I suggest moving exceptions in a separate file.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"aa81dad675ce57c626b1ca9a520ddc0d02abe695","unresolved":false,"context_lines":[{"line_number":104,"context_line":""},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"class BgpPeerNotFound(exceptions.NotFound):"},{"line_number":107,"context_line":"    message \u003d _(\"bgp_peer %(bgp_peer_id)s could not be found.\")"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"class RouterNotAssociated(exceptions.NotFound):"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_f9b23705","line":107,"updated":"2015-07-03 07:00:44.000000000","message":"It\u0027s better to follow the same message style everywhere. Can you either change bgp_peer \u003d\u003d\u003d\u003e BGP peer or other way round:)","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"aa81dad675ce57c626b1ca9a520ddc0d02abe695","unresolved":false,"context_lines":[{"line_number":122,"context_line":"                \"BGP speaker %(bgp_speaker_id)s\")"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"class NetworkNotFound(exceptions.NotFound):"},{"line_number":126,"context_line":"    message \u003d _(\"Network %(network_id)s does not exist\")"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_d9f733d1","line":125,"updated":"2015-07-03 07:00:44.000000000","message":"This exception should be there in the network related file and not in bgp probably.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"aa81dad675ce57c626b1ca9a520ddc0d02abe695","unresolved":false,"context_lines":[{"line_number":126,"context_line":"    message \u003d _(\"Network %(network_id)s does not exist\")"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"class BgpSpeakerNetworkBindingError(exceptions.Conflict):"},{"line_number":130,"context_line":"    message \u003d _(\"Network %(network_id)s is advertised by another BgpSpeaker. \""},{"line_number":131,"context_line":"                \"Networks may only be advertised by one BgpSpeaker.\")"},{"line_number":132,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_79194721","line":129,"updated":"2015-07-03 07:00:44.000000000","message":"Do we really want to do this? \n\nIn HA cases where we may want to associate the same network with multiple speakers this exception will not make sense.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"7472e27d99592f6b3fe0b3fad61d572596d91376","unresolved":false,"context_lines":[{"line_number":126,"context_line":"    message \u003d _(\"Network %(network_id)s does not exist\")"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"class BgpSpeakerNetworkBindingError(exceptions.Conflict):"},{"line_number":130,"context_line":"    message \u003d _(\"Network %(network_id)s is advertised by another BgpSpeaker. \""},{"line_number":131,"context_line":"                \"Networks may only be advertised by one BgpSpeaker.\")"},{"line_number":132,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_24b8ac74","line":129,"in_reply_to":"ba3cc151_79194721","updated":"2015-07-08 19:40:17.000000000","message":"Right, good catch.  I don\u0027t think this exception will be necessary","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"aa81dad675ce57c626b1ca9a520ddc0d02abe695","unresolved":false,"context_lines":[{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    @classmethod"},{"line_number":145,"context_line":"    def get_description(cls):"},{"line_number":146,"context_line":"        return(\"Discover and advertise routes to Neutron networks dynamically \""},{"line_number":147,"context_line":"               \"via BGP\")"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_f9aeb77f","line":146,"updated":"2015-07-03 07:00:44.000000000","message":"Can you plz rephrase it as: \"Discover and advertise Neutron network routes dynamically via BGP.\". \n\nAFAIK, BGP speaker will not advertise routes to neutron networks rather neutron network routes outside.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"aa81dad675ce57c626b1ca9a520ddc0d02abe695","unresolved":false,"context_lines":[{"line_number":147,"context_line":"               \"via BGP\")"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    @classmethod"},{"line_number":150,"context_line":"    def get_namespace(cls):"},{"line_number":151,"context_line":"        return \"http://docs.openstack.org/ext/neutron/bgp-speaker/api/v1.0\""},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_f9a9d790","line":150,"updated":"2015-07-03 07:00:44.000000000","message":"Kill, as per https://review.openstack.org/#/c/190215/","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"7472e27d99592f6b3fe0b3fad61d572596d91376","unresolved":false,"context_lines":[{"line_number":147,"context_line":"               \"via BGP\")"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    @classmethod"},{"line_number":150,"context_line":"    def get_namespace(cls):"},{"line_number":151,"context_line":"        return \"http://docs.openstack.org/ext/neutron/bgp-speaker/api/v1.0\""},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_a4a4bc4a","line":150,"in_reply_to":"ba3cc151_f9a9d790","updated":"2015-07-08 19:40:17.000000000","message":"Done","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"aa81dad675ce57c626b1ca9a520ddc0d02abe695","unresolved":false,"context_lines":[{"line_number":222,"context_line":""},{"line_number":223,"context_line":"    @abc.abstractmethod"},{"line_number":224,"context_line":"    def create_bgp_peer(self, context, bgp_peer):"},{"line_number":225,"context_line":"        pass"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"    @abc.abstractmethod"},{"line_number":228,"context_line":"    def delete_bgp_peer(self, context, bgp_peer_id):"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_3963bf43","line":225,"updated":"2015-07-03 07:00:44.000000000","message":"IMHO, auth credentials can be modified on the fly. How about having an update option as well?","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"aa81dad675ce57c626b1ca9a520ddc0d02abe695","unresolved":false,"context_lines":[{"line_number":227,"context_line":"    @abc.abstractmethod"},{"line_number":228,"context_line":"    def delete_bgp_peer(self, context, bgp_peer_id):"},{"line_number":229,"context_line":"        pass"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"    @abc.abstractmethod"},{"line_number":232,"context_line":"    def advertise_network(self, context, bgp_speaker_id, network_info):"},{"line_number":233,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_397c1feb","line":230,"updated":"2015-07-03 07:00:44.000000000","message":"BGP Peers will not have any list of show functionalities? I could not find get functionalities?","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"7472e27d99592f6b3fe0b3fad61d572596d91376","unresolved":false,"context_lines":[{"line_number":227,"context_line":"    @abc.abstractmethod"},{"line_number":228,"context_line":"    def delete_bgp_peer(self, context, bgp_peer_id):"},{"line_number":229,"context_line":"        pass"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"    @abc.abstractmethod"},{"line_number":232,"context_line":"    def advertise_network(self, context, bgp_speaker_id, network_info):"},{"line_number":233,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_44193087","line":230,"in_reply_to":"ba3cc151_397c1feb","updated":"2015-07-08 19:40:17.000000000","message":"You mean we need a get_bgp_peer() and get_bgp_peers()?  Good catch.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"902f28e0768848097a8b3b7ab14cc5896e0b8eb3","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                     \u0027required_by_policy\u0027: False,"},{"line_number":70,"context_line":"                     \u0027enforce_policy\u0027: False},"},{"line_number":71,"context_line":"        # TODO(tidwellr) custom validators for auth_type and/or password?"},{"line_number":72,"context_line":"        \u0027auth_type\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":73,"context_line":"                      \u0027required_by_policy\u0027: True,"},{"line_number":74,"context_line":"                      \u0027validate\u0027: {\u0027type:string\u0027: None},"},{"line_number":75,"context_line":"                      \u0027is_visible\u0027: True},"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_b0ab6b74","line":72,"updated":"2015-07-09 12:26:16.000000000","message":"See Jaume\u0027s comment from PS26.","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"902f28e0768848097a8b3b7ab14cc5896e0b8eb3","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        \u0027password\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":77,"context_line":"                     \u0027required_by_policy\u0027: True,"},{"line_number":78,"context_line":"                     \u0027validate\u0027: {\u0027type:string\u0027: None},"},{"line_number":79,"context_line":"                     \u0027is_visible\u0027: True},"},{"line_number":80,"context_line":"        \u0027tenant_id\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: False,"},{"line_number":81,"context_line":"                      \u0027required_by_policy\u0027: False,"},{"line_number":82,"context_line":"                      \u0027validate\u0027: {\u0027type:string\u0027: None},"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_70b883c8","line":79,"updated":"2015-07-09 12:26:16.000000000","message":"Should be hidden","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"b918707254587bb0aebd3bca2c473738616bea92","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    message \u003d _(\"Network %(network_id)s does not exist\")"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"class BgpSpeakerNetworkBindingError(exceptions.Conflict):"},{"line_number":117,"context_line":"    message \u003d _(\"Network %(network_id)s is advertised by another BgpSpeaker. \""},{"line_number":118,"context_line":"                \"Networks may only be advertised by one BgpSpeaker.\")"},{"line_number":119,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_b27b85f4","line":116,"updated":"2015-07-09 05:18:57.000000000","message":"Please remove this as you also felt this might not be valid anymore. Request you to check patch-set 25 for detail.","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"762eed2ab4b64880fca4b2e2241083aea2bc9a9d","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    message \u003d _(\"Network %(network_id)s does not exist\")"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"class BgpSpeakerNetworkBindingError(exceptions.Conflict):"},{"line_number":117,"context_line":"    message \u003d _(\"Network %(network_id)s is advertised by another BgpSpeaker. \""},{"line_number":118,"context_line":"                \"Networks may only be advertised by one BgpSpeaker.\")"},{"line_number":119,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_36c2e234","line":116,"in_reply_to":"ba3cc151_b27b85f4","updated":"2015-07-09 18:20:00.000000000","message":"Actually, I don\u0027t know what I was thinking when I agreed to get rid of this. We still want this.  A speaker is an entity that can exist on multiple dr_agents. A speaker can be hosted on more than 1 dr_agent for HA purposes. In practice, only 1 dr_agent will actively speak for it.  BgpSpeaker !\u003d dr_agent.  BgpSpeaker-Network is a 1-many relationship. Only 1 speaker ever \"speaks\" for a network.","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"b918707254587bb0aebd3bca2c473738616bea92","unresolved":false,"context_lines":[{"line_number":213,"context_line":"        pass"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"    @abc.abstractmethod"},{"line_number":216,"context_line":"    def delete_bgp_peer(self, context, bgp_peer_id):"},{"line_number":217,"context_line":"        pass"},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"    @abc.abstractmethod"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_f2d90d23","line":216,"updated":"2015-07-09 05:18:57.000000000","message":"Better to add \"get_bgp_peer() and get_bgp_peers()\".","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"762eed2ab4b64880fca4b2e2241083aea2bc9a9d","unresolved":false,"context_lines":[{"line_number":213,"context_line":"        pass"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"    @abc.abstractmethod"},{"line_number":216,"context_line":"    def delete_bgp_peer(self, context, bgp_peer_id):"},{"line_number":217,"context_line":"        pass"},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"    @abc.abstractmethod"}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_f6bb1ae3","line":216,"in_reply_to":"ba3cc151_f2d90d23","updated":"2015-07-09 18:20:00.000000000","message":"Yes, I\u0027ve got this queued up.  I didn\u0027t work it into this patch set, but I have this coming.","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"a3bb2c892d010d98f45ffd194f3e46ffcdc4d226","unresolved":false,"context_lines":[{"line_number":109,"context_line":"                \"BGP speaker %(bgp_speaker_id)s\")"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"class BgpSpeakerNetworkBindingError(exceptions.Conflict):"},{"line_number":113,"context_line":"    message \u003d _(\"Network %(network_id)s is advertised by another BgpSpeaker. \""},{"line_number":114,"context_line":"                \"Networks may only be advertised by one BgpSpeaker.\")"},{"line_number":115,"context_line":""}],"source_content_type":"text/x-python","patch_set":28,"id":"ba3cc151_c0795384","line":112,"updated":"2015-07-10 06:31:58.000000000","message":"As you have mentioned in PS26, \"a BGP speaker can be hosted on multiple dr_agent\", This means separate instances of BGP speakers will be hosted on different dr_agent. In that case, we will have different instances of BGP speakers advertising the same network. Hence, this error looks invalid.\n\nAFIK, if you have 2 BGP speakers then both will have separate BGP peering session and can advertise same network. Please correct me if I am wrong.","commit_id":"d1285e59a59e92fa4e93f0e7e9ca42fb2a78f13a"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"d7a18580d15d33ef5b650474c43892dc1e03e200","unresolved":false,"context_lines":[{"line_number":109,"context_line":"                \"BGP speaker %(bgp_speaker_id)s\")"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"class BgpSpeakerNetworkBindingError(exceptions.Conflict):"},{"line_number":113,"context_line":"    message \u003d _(\"Network %(network_id)s is advertised by another BgpSpeaker. \""},{"line_number":114,"context_line":"                \"Networks may only be advertised by one BgpSpeaker.\")"},{"line_number":115,"context_line":""}],"source_content_type":"text/x-python","patch_set":28,"id":"ba3cc151_025dea47","line":112,"in_reply_to":"ba3cc151_c0795384","updated":"2015-07-10 16:20:58.000000000","message":"dr_agent !\u003d BgpSpeaker.  BgpSpeaker is a logical entity.  In the data model, BgpSpeaker-Network is a 1-many relationship.  When a user attempts to violate that relationship by binding the same Network to different BgpSpeakers, we need to block that.  I think you\u0027re confusing implementation and logical model.\n\nSee https://review.openstack.org/#/c/196452/","commit_id":"d1285e59a59e92fa4e93f0e7e9ca42fb2a78f13a"}],"neutron/extensions/dynamic_routing.py":[{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"c86d0177ef7fcb0cdec465244dbbff6a5bb9a5e3","unresolved":false,"context_lines":[{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author Jaume Devesa, Midokura SARL, devvesa@gmail.com"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"import abc"},{"line_number":19,"context_line":"import six"},{"line_number":20,"context_line":"import webob"},{"line_number":21,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_0a076b1e","line":18,"updated":"2014-08-26 14:19:17.000000000","message":"nit: insert a line between abc and six","commit_id":"44502e56a036738a66800882dcd931c21847fbf7"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3d3c5a1b138bd0284f7e6b57d16ce1474c73d2c3","unresolved":false,"context_lines":[{"line_number":81,"context_line":"                      \u0027required_by_policy\u0027: True,"},{"line_number":82,"context_line":"                      \u0027validate\u0027: {\u0027type:string\u0027: None},"},{"line_number":83,"context_line":"                      \u0027is_visible\u0027: True},"},{"line_number":84,"context_line":"        \u0027peers\u0027: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: True,"},{"line_number":85,"context_line":"                  \u0027validate\u0027: {\u0027type:routingpeers\u0027: None},"},{"line_number":86,"context_line":"                  \u0027convert_to\u0027: attr.convert_none_to_empty_list,"},{"line_number":87,"context_line":"                  \u0027is_visible\u0027: True},"}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_fee74610","line":84,"updated":"2014-10-01 16:00:42.000000000","message":"I\u0027m a little bit concerned about the usage model here that requires that I pass all of the peers to update them even to add/delete/update a single peer.","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3d3c5a1b138bd0284f7e6b57d16ce1474c73d2c3","unresolved":false,"context_lines":[{"line_number":85,"context_line":"                  \u0027validate\u0027: {\u0027type:routingpeers\u0027: None},"},{"line_number":86,"context_line":"                  \u0027convert_to\u0027: attr.convert_none_to_empty_list,"},{"line_number":87,"context_line":"                  \u0027is_visible\u0027: True},"},{"line_number":88,"context_line":"        \u0027advertiseroutes\u0027: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: True,"},{"line_number":89,"context_line":"                            \u0027validate\u0027: {\u0027type:hostroutes\u0027: None},"},{"line_number":90,"context_line":"                            \u0027convert_to\u0027: attr.convert_none_to_empty_list,"},{"line_number":91,"context_line":"                            \u0027is_visible\u0027: True},"}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_3ef2aed2","line":88,"updated":"2014-10-01 16:00:42.000000000","message":"ditto for routes","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"6a1b766f501c7806fc247e594223ee516d98c6e6","unresolved":false,"context_lines":[{"line_number":85,"context_line":"                  \u0027validate\u0027: {\u0027type:routingpeers\u0027: None},"},{"line_number":86,"context_line":"                  \u0027convert_to\u0027: attr.convert_none_to_empty_list,"},{"line_number":87,"context_line":"                  \u0027is_visible\u0027: True},"},{"line_number":88,"context_line":"        \u0027advertiseroutes\u0027: {\u0027allow_post\u0027: False, \u0027allow_put\u0027: True,"},{"line_number":89,"context_line":"                            \u0027validate\u0027: {\u0027type:hostroutes\u0027: None},"},{"line_number":90,"context_line":"                            \u0027convert_to\u0027: attr.convert_none_to_empty_list,"},{"line_number":91,"context_line":"                            \u0027is_visible\u0027: True},"}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_196424e4","line":88,"in_reply_to":"baa201ad_3ef2aed2","updated":"2014-10-01 16:38:03.000000000","message":"My rationale was that the number of API exposed endpoints would be reduced using this approach. And the information about all the dynamic routing configuration would be seen just in a single GET. \n\nI agree that the advertise routes may be annoying since you have to update them altogether every time. But I think we can keep this solution with the peers. I can not image a scenario where you have to change constantly the peers or you need to have a huge list of them.","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"be74080a748c83ab734a26a6da8844cc9dfb829c","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                \"%(bgpspeaker_id)s.\")"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"# class DynamicRoutingController(wsgi.Controller):"},{"line_number":73,"context_line":"#     def get_plugin(self):"},{"line_number":74,"context_line":"#         plugin \u003d manager.NeutronManager.get_service_plugins().get("},{"line_number":75,"context_line":"#             constants.DYNAMIC_ROUTING)"}],"source_content_type":"text/x-python","patch_set":10,"id":"9a0c5dc1_5ba2beaf","line":72,"updated":"2015-05-13 13:25:26.000000000","message":"remove?","commit_id":"4c624c771544c2d4bdd898c9d31d5be261cbc75d"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"be74080a748c83ab734a26a6da8844cc9dfb829c","unresolved":false,"context_lines":[{"line_number":130,"context_line":"                                      RESOURCE_ATTRIBUTE_MAP,"},{"line_number":131,"context_line":"                                      constants.DYNAMIC_ROUTING,"},{"line_number":132,"context_line":"                                      action_map\u003daction_map)"},{"line_number":133,"context_line":"        # parent \u003d dict(member_name\u003d\"routinginstance\","},{"line_number":134,"context_line":"        #               collection_name\u003d\"routinginstances\")"},{"line_number":135,"context_line":"        # controller \u003d resource.Resource(DynamicRoutingController(),"},{"line_number":136,"context_line":"        #                                base.FAULT_MAP)"}],"source_content_type":"text/x-python","patch_set":10,"id":"9a0c5dc1_7b9b4273","line":133,"updated":"2015-05-13 13:25:26.000000000","message":"Same for other commented out code...","commit_id":"4c624c771544c2d4bdd898c9d31d5be261cbc75d"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ef9a05c72a02b1a6b6d3e5917b772b32f6fbef58","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    @classmethod"},{"line_number":66,"context_line":"    def get_name(cls):"},{"line_number":67,"context_line":"        return \"Neutron Dynamic Routing\""},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    @classmethod"},{"line_number":70,"context_line":"    def get_alias(cls):"}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_9f817892","line":67,"updated":"2015-06-02 05:55:38.000000000","message":"Please check the naming convention. It\u0027s saying \"Neutron Dynamic routing\" but I feel it should be named as \"Neutron BGP Route Advertisement Support\"","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"544f419ebed00b93c419cfa47b9df8a159380c1a","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    @classmethod"},{"line_number":66,"context_line":"    def get_name(cls):"},{"line_number":67,"context_line":"        return \"Neutron Dynamic Routing\""},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    @classmethod"},{"line_number":70,"context_line":"    def get_alias(cls):"}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_4ee895b4","line":67,"in_reply_to":"5afe65bd_9f817892","updated":"2015-06-03 23:02:35.000000000","message":"Done","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"}],"neutron/plugins/common/constants.py":[{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"5b249d22361e49f3c6094ffc868f8efd165daca1","unresolved":false,"context_lines":[{"line_number":22,"context_line":"VPN \u003d \"VPN\""},{"line_number":23,"context_line":"METERING \u003d \"METERING\""},{"line_number":24,"context_line":"L3_ROUTER_NAT \u003d \"L3_ROUTER_NAT\""},{"line_number":25,"context_line":"DYNAMIC_ROUTING \u003d \"DYNAMIC_ROUTING\""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"# Maps extension alias to service type"}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_dcf93eca","line":25,"updated":"2015-06-02 04:16:09.000000000","message":"Do you want to rename it as \"BGP_ROUTING\" as it\u0027s no more a generic routing? Same comment for all the occurrence in the file below.","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"4c71296821066c724844a51b01fdc09b1d671d8d","unresolved":false,"context_lines":[{"line_number":22,"context_line":"VPN \u003d \"VPN\""},{"line_number":23,"context_line":"METERING \u003d \"METERING\""},{"line_number":24,"context_line":"L3_ROUTER_NAT \u003d \"L3_ROUTER_NAT\""},{"line_number":25,"context_line":"DYNAMIC_ROUTING \u003d \"DYNAMIC_ROUTING\""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"# Maps extension alias to service type"}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_fc399a42","line":25,"in_reply_to":"5afe65bd_dcf93eca","updated":"2015-06-02 04:46:18.000000000","message":"Yes, good suggestion.","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ef9a05c72a02b1a6b6d3e5917b772b32f6fbef58","unresolved":false,"context_lines":[{"line_number":23,"context_line":"METERING \u003d \"METERING\""},{"line_number":24,"context_line":"L3_ROUTER_NAT \u003d \"L3_ROUTER_NAT\""},{"line_number":25,"context_line":"DYNAMIC_ROUTING \u003d \"DYNAMIC_ROUTING\""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"# Maps extension alias to service type"},{"line_number":29,"context_line":"EXT_TO_SERVICE_MAPPING \u003d {"}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_9ffcd83f","line":26,"updated":"2015-06-02 05:55:38.000000000","message":"Better we can rename file as bgp_routing instead of dynamic_routing as well. Same applied for all the files.","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"544f419ebed00b93c419cfa47b9df8a159380c1a","unresolved":false,"context_lines":[{"line_number":23,"context_line":"METERING \u003d \"METERING\""},{"line_number":24,"context_line":"L3_ROUTER_NAT \u003d \"L3_ROUTER_NAT\""},{"line_number":25,"context_line":"DYNAMIC_ROUTING \u003d \"DYNAMIC_ROUTING\""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"# Maps extension alias to service type"},{"line_number":29,"context_line":"EXT_TO_SERVICE_MAPPING \u003d {"}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_6ee111d0","line":26,"in_reply_to":"5afe65bd_9ffcd83f","updated":"2015-06-03 23:02:35.000000000","message":"Done","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"}],"neutron/services/bgp_speaker/plugin.py":[{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"17d7f39864c3a21eccf4ae0c8e57cb2d24c8a84b","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    def get_plugin_description(self):"},{"line_number":26,"context_line":"        return (\"Bgp Speaker Service Plugin provides endpoints to \""},{"line_number":27,"context_line":"                \"manage BGP speakers and peers to dynamically advertise \""},{"line_number":28,"context_line":"                \"routes to Neutron networks to upstream routers\")"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_1bbc8c6b","line":28,"updated":"2015-06-29 08:57:31.000000000","message":"Maybe I did this string but.. shouldn\u0027t be \u0027from Neutron networks to upstream routers\u0027 ?","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"7739745b0cd63cd53df60f4ef8236bd9b2d0cee1","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    def get_plugin_description(self):"},{"line_number":26,"context_line":"        return (\"Bgp Speaker Service Plugin provides endpoints to \""},{"line_number":27,"context_line":"                \"manage BGP speakers and peers to dynamically advertise \""},{"line_number":28,"context_line":"                \"routes to Neutron networks to upstream routers\")"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_c8ddea71","line":28,"in_reply_to":"ba3cc151_1bbc8c6b","updated":"2015-06-29 15:29:03.000000000","message":"This is my tweak.  I believe this is accurate.  We\u0027re telling the upstream routers where the next-hop for Neutron networks is.  This means we are \"advertising\" Neutron networks to upstream routers.  It could probably use a little re-wording to make it more clear though.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"}],"neutron/services/dynamic_routing/plugin.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3d3c5a1b138bd0284f7e6b57d16ce1474c73d2c3","unresolved":false,"context_lines":[{"line_number":16,"context_line":"from neutron.db import dynamic_routing_db"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"class DynamicRoutingPlugin(dynamic_routing_db.DynamicRoutingDbMixin):"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"    supported_extension_aliases \u003d [\"dynamic_routing\"]"},{"line_number":22,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_68f9f2c7","line":19,"updated":"2014-10-01 16:00:42.000000000","message":"I know mixins are everywhere in the Neutron architecture especially in all the of the plugins.  So, I can see why you went this way.\n\nHowever, now that we\u0027re adding a new one, I have to ask does it really make sense?  Are we misusing inheritance and saying \"DynamicRoutingPlugin is a DynamicRoutingDbMixin\" when we should really be saying \"DynamicRoutingPlugin has a DynamicRoutingDb\".  The latter seems to make more sense to me and so I would say that we should be using composition here instead of inheritance.\n\nIf we used composition, we\u0027d need to implement the interface here and pass it through to the db class instance.  But, maybe that is good.  Maybe that would give us more freedom in how we design the two classes.  What are your thuoghts?","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"6a1b766f501c7806fc247e594223ee516d98c6e6","unresolved":false,"context_lines":[{"line_number":16,"context_line":"from neutron.db import dynamic_routing_db"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"class DynamicRoutingPlugin(dynamic_routing_db.DynamicRoutingDbMixin):"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"    supported_extension_aliases \u003d [\"dynamic_routing\"]"},{"line_number":22,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"baa201ad_59722c4a","line":19,"in_reply_to":"baa201ad_68f9f2c7","updated":"2014-10-01 16:38:03.000000000","message":"I\u0027m agree with you in the first part: first time I saw the plugins extend the DB it seemed strange to me. I think is much more intuitive to say the plugin \u0027has\u0027 the DB mixin object.\n\nHowever, I would not implement the interface here. Or at least *inside* the plugin class. In the next patch you will see that I add the agent scheduler functionality to the plugin class. Some vendor plugins (as Midokura does) may don\u0027t want to use the agent scheduler part but they do want to leverage the already implemented DB logic. Does it make sense?","commit_id":"02654586f7ac89299b2a1ac4bbcceda2037207b0"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"33d4637cd25199dcb4e02fcabcc7d58bcd084306","unresolved":false,"context_lines":[{"line_number":20,"context_line":"    supported_extension_aliases \u003d [\"dynamic_routing\"]"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    def __init__(self):"},{"line_number":23,"context_line":"        super(DynamicRoutingPlugin, self).__init__()"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    def get_plugin_description(self):"},{"line_number":26,"context_line":"        return (\"Dynamic Routing Service Plugin provides endpoints to \""}],"source_content_type":"text/x-python","patch_set":13,"id":"7a016987_fd5b3984","line":23,"updated":"2015-05-29 21:09:28.000000000","message":"__init__() is unnecessary here unless it\u0027s going to do some other setup, super().__init__() will be called without it.","commit_id":"03593f20edba5965b0418769cbb5ab2c97c1a0bf"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"5dbeda1f39f34c3897d309ce68bf3718f0b5bbfe","unresolved":false,"context_lines":[{"line_number":20,"context_line":"    supported_extension_aliases \u003d [\"dynamic_routing\"]"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    def __init__(self):"},{"line_number":23,"context_line":"        super(DynamicRoutingPlugin, self).__init__()"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    def get_plugin_description(self):"},{"line_number":26,"context_line":"        return (\"Dynamic Routing Service Plugin provides endpoints to \""}],"source_content_type":"text/x-python","patch_set":13,"id":"7a016987_8f31a8ef","line":23,"in_reply_to":"7a016987_fd5b3984","updated":"2015-05-29 21:24:50.000000000","message":"Done","commit_id":"03593f20edba5965b0418769cbb5ab2c97c1a0bf"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"3927634ba97fa0cd60baebde41248854b676cb20","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"    supported_extension_aliases \u003d [\"dynamic_routing\"]"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    def __init__(self):"},{"line_number":23,"context_line":"        super(DynamicRoutingPlugin, self).__init__()"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    def get_plugin_description(self):"}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_cde18b00","line":22,"updated":"2015-06-02 03:05:01.000000000","message":"nit: this can be deleted.","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"4c71296821066c724844a51b01fdc09b1d671d8d","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"    supported_extension_aliases \u003d [\"dynamic_routing\"]"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    def __init__(self):"},{"line_number":23,"context_line":"        super(DynamicRoutingPlugin, self).__init__()"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    def get_plugin_description(self):"}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_5c266ebb","line":22,"in_reply_to":"5afe65bd_cde18b00","updated":"2015-06-02 04:46:18.000000000","message":"Done","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ef9a05c72a02b1a6b6d3e5917b772b32f6fbef58","unresolved":false,"context_lines":[{"line_number":23,"context_line":"        super(DynamicRoutingPlugin, self).__init__()"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    def get_plugin_description(self):"},{"line_number":26,"context_line":"        return (\"Dynamic Routing Service Plugin provides endpoints to \""},{"line_number":27,"context_line":"                \"manage routing protocols and dynamically advertise and \""},{"line_number":28,"context_line":"                \"discover upstream routes\")"}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_3f1de473","line":26,"updated":"2015-06-02 05:55:38.000000000","message":"This one we need to get a confirmation. Whether we want to implement it as a separate advanced service? If so then we need to move the code out of neutron same as fwaas, lbaas and etc.","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"544f419ebed00b93c419cfa47b9df8a159380c1a","unresolved":false,"context_lines":[{"line_number":23,"context_line":"        super(DynamicRoutingPlugin, self).__init__()"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    def get_plugin_description(self):"},{"line_number":26,"context_line":"        return (\"Dynamic Routing Service Plugin provides endpoints to \""},{"line_number":27,"context_line":"                \"manage routing protocols and dynamically advertise and \""},{"line_number":28,"context_line":"                \"discover upstream routes\")"}],"source_content_type":"text/x-python","patch_set":18,"id":"5afe65bd_2eb439cf","line":26,"in_reply_to":"5afe65bd_3f1de473","updated":"2015-06-03 23:02:35.000000000","message":"It\u0027s my understanding that advanced services are for providing tenant-facing services.  BGP dynamic routing does not fall in that category.  It\u0027s an operator/admin concern.  BGP is more like plumbing.  I don\u0027t see this as a tenant-facing service, therefore I would suggest leaving it in tree AND not treating it as an advanced service.","commit_id":"85b6f663f103869802ca854ccd915457ed58edc3"}],"neutron/tests/api/test_bgp_speaker_extensions.py":[{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"02d9cb364c224aef0b397c6b030aeef632884c1d","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        super(BgpSpeakerTestJSON, cls).resource_setup()"},{"line_number":40,"context_line":"        if not test.is_extension_enabled(\u0027bgp_speaker\u0027, \u0027network\u0027):"},{"line_number":41,"context_line":"            msg \u003d \"BGP Speaker extension is not enabled.\""},{"line_number":42,"context_line":"            raise cls.skipException(msg)"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"        try:"},{"line_number":45,"context_line":"            creds \u003d cls.isolated_creds.get_admin_creds()"}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_70bc9d6c","line":42,"updated":"2015-06-12 18:37:25.000000000","message":"As shown by gate job failures this is not working how I expected... Need to come back to this. We just want to skip these tests if the extension is not enabled.","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"}],"neutron/tests/tempest/services/network/json/network_client.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"6cee39a98db83cfb8ee77d8853724a26c00088fb","unresolved":false,"context_lines":[{"line_number":287,"context_line":"    def wait_for_resource_status(self, fetch, status, interval\u003dNone,"},{"line_number":288,"context_line":"                                 timeout\u003dNone):"},{"line_number":289,"context_line":"        \"\"\""},{"line_number":290,"context_line":"        @summary: Waits for a network resource to reach a status"},{"line_number":291,"context_line":"        @param fetch: the callable to be used to query the resource status"},{"line_number":292,"context_line":"        @type fecth: callable that takes no parameters and returns the resource"},{"line_number":293,"context_line":"        @param status: the status that the resource has to reach"}],"source_content_type":"text/x-python","patch_set":19,"id":"1af86dd1_0dfe7e6b","line":290,"updated":"2015-06-12 14:25:34.000000000","message":"nit: Could put this on the first summary line for the docstring","commit_id":"e91c6fd61df90377a53d5f91424db61000df4e6b"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"54dee5ec4b9a6f54a459d6d4134cdb2cda1d772c","unresolved":false,"context_lines":[{"line_number":250,"context_line":"        resp, body \u003d self.post(uri, body)"},{"line_number":251,"context_line":"        body \u003d {\u0027bgppeer\u0027: self.deserialize_list(body)}"},{"line_number":252,"context_line":"        self.expected_success(201, resp.status)"},{"line_number":253,"context_line":"        return service_client.ResponseBody(resp, body)"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"    # Common methods that are hard to automate"},{"line_number":256,"context_line":"    def create_bulk_network(self, names, shared\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_48943ae1","line":253,"updated":"2015-06-16 08:48:27.000000000","message":"Missing update/get/delete peer extension tests. (I am annoying, I know)","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":14258,"name":"Ryan Tidwell","email":"rktidwell85@gmail.com","username":"tidwellr"},"change_message_id":"c33a680b160292a602d68ee022244870ceb159d8","unresolved":false,"context_lines":[{"line_number":250,"context_line":"        resp, body \u003d self.post(uri, body)"},{"line_number":251,"context_line":"        body \u003d {\u0027bgppeer\u0027: self.deserialize_list(body)}"},{"line_number":252,"context_line":"        self.expected_success(201, resp.status)"},{"line_number":253,"context_line":"        return service_client.ResponseBody(resp, body)"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"    # Common methods that are hard to automate"},{"line_number":256,"context_line":"    def create_bulk_network(self, names, shared\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_c4fd803b","line":253,"in_reply_to":"fa32b979_48943ae1","updated":"2015-06-16 15:33:24.000000000","message":"I\u0027m getting to it :)","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"}],"neutron/tests/unit/services/bgp_speaker/test_bgp_speaker.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"89025178cb517fbc35b08be21fb1d60bdd7b0d89","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014 OpenStack Foundation"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":21,"id":"fa32b979_4a28a7e2","line":1,"updated":"2015-06-16 11:45:56.000000000","message":"From PS19, mentioned in another file, here is a copyright date and holder that needs updating.","commit_id":"85a073d9799f5f57ddda86eb785e6a6d21c05dcc"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"7fcae16268b29f07b6add8b38c8631a7cf6c1658","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014 OpenStack Foundation"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_8f0e6839","line":1,"updated":"2015-07-02 12:24:45.000000000","message":"Copyright owner?","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"61c5943b5546d7a045708617b94eb218041cbbdd","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014 OpenStack Foundation"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_3210d556","line":1,"in_reply_to":"ba3cc151_8f0e6839","updated":"2015-07-02 16:08:27.000000000","message":"Done","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"7fcae16268b29f07b6add8b38c8631a7cf6c1658","unresolved":false,"context_lines":[{"line_number":250,"context_line":"                                              bgp_speaker[\u0027id\u0027],"},{"line_number":251,"context_line":"                                              subresource\u003d\u0027remove_bgp_peer\u0027)"},{"line_number":252,"context_line":"                res \u003d req.get_response(self.ext_api)"},{"line_number":253,"context_line":"                self.assertEqual(res.status_int, 404)"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"    def test_remove_non_existent_bgp_peer(self):"},{"line_number":256,"context_line":"        bgp_peer_id \u003d \"imaginary\""}],"source_content_type":"text/x-python","patch_set":26,"id":"ba3cc151_0ad2465c","line":253,"updated":"2015-07-02 12:24:45.000000000","message":"Nit: put expected value first. Use non-magic number (even though this one is obvious). Same on L264, L275, L334, L346, L362, L372.","commit_id":"6556811e7ab093bbec32867e8173cd52220797fc"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"902f28e0768848097a8b3b7ab14cc5896e0b8eb3","unresolved":false,"context_lines":[{"line_number":250,"context_line":"                                              bgp_speaker[\u0027id\u0027],"},{"line_number":251,"context_line":"                                              subresource\u003d\u0027remove_bgp_peer\u0027)"},{"line_number":252,"context_line":"                res \u003d req.get_response(self.ext_api)"},{"line_number":253,"context_line":"                self.assertEqual(res.status_int, 404)"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"    def test_remove_non_existent_bgp_peer(self):"},{"line_number":256,"context_line":"        bgp_peer_id \u003d \"imaginary\""}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_2b1e105f","line":253,"updated":"2015-07-09 12:26:16.000000000","message":"See PS26 comment.","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"902f28e0768848097a8b3b7ab14cc5896e0b8eb3","unresolved":false,"context_lines":[{"line_number":385,"context_line":"        self.plugin \u003d manager.NeutronManager.get_plugin()"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"class BgpRouteHelperTests(test_db_base_plugin.NeutronDbPluginV2TestCase,"},{"line_number":389,"context_line":"                          BgpSpeakerEntityCreationMixin,"},{"line_number":390,"context_line":"                          test_l3.L3NatTestCaseMixin):"},{"line_number":391,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_2b55b0f8","line":388,"updated":"2015-07-09 12:26:16.000000000","message":"Suggest adding some test cases with IPv6 addresses.","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"762eed2ab4b64880fca4b2e2241083aea2bc9a9d","unresolved":false,"context_lines":[{"line_number":385,"context_line":"        self.plugin \u003d manager.NeutronManager.get_plugin()"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"class BgpRouteHelperTests(test_db_base_plugin.NeutronDbPluginV2TestCase,"},{"line_number":389,"context_line":"                          BgpSpeakerEntityCreationMixin,"},{"line_number":390,"context_line":"                          test_l3.L3NatTestCaseMixin):"},{"line_number":391,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"ba3cc151_fcd1bb57","line":388,"in_reply_to":"ba3cc151_2b55b0f8","updated":"2015-07-09 18:20:00.000000000","message":"Not there yet, I\u0027m only at the point where we can look up and advertise floating IP host routes.  IPv6 tenant networks and DVR host routes are a different beast that I haven\u0027t taken on yet.  You can expect IPv6 test cases as they make sense to write.","commit_id":"740711486947a6b801c67e09d5344c979fb5283f"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"b5ad28c424bae20075ccbe6acb33852282d299b1","unresolved":false,"context_lines":[{"line_number":370,"context_line":"                                              subresource\u003d\u0027advertise_network\u0027)"},{"line_number":371,"context_line":"                    res \u003d req.get_response(self.ext_api)"},{"line_number":372,"context_line":"                    # check that the binding failed"},{"line_number":373,"context_line":"                    self.assertEqual(409, res.status_int)"},{"line_number":374,"context_line":""},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"class BgpSpeakerPluginTests(test_db_base_plugin.NeutronDbPluginV2TestCase,"}],"source_content_type":"text/x-python","patch_set":28,"id":"ba3cc151_01ebb679","line":373,"updated":"2015-07-10 11:13:16.000000000","message":"Nit: use webob name vs magic number, especially on the more unusual codes.","commit_id":"d1285e59a59e92fa4e93f0e7e9ca42fb2a78f13a"}],"neutron/tests/unit/test_dynamicrouting_plugin.py":[{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"c86d0177ef7fcb0cdec465244dbbff6a5bb9a5e3","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import contextlib"},{"line_number":16,"context_line":"import mock"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from neutron.api.v2 import attributes"},{"line_number":19,"context_line":"from neutron import context"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_8a4d3b9c","line":16,"updated":"2014-08-26 14:19:17.000000000","message":"nit: mock is not in stdlib\n http://docs.openstack.org/developer/hacking/#import-order-template","commit_id":"44502e56a036738a66800882dcd931c21847fbf7"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"500488f952f87a64fffb00aa09e764fd72552484","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def get_plugin_description(self):"},{"line_number":56,"context_line":"        return (\"Dynamic Routing Service Plugin test class that only \""},{"line_number":57,"context_line":"                \"exposes dynamic routing functionality, without agents,\""},{"line_number":58,"context_line":"                \"nor schedulers.\")"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_ceecd992","line":57,"updated":"2014-08-25 13:09:04.000000000","message":"nit: add space after comma.","commit_id":"44502e56a036738a66800882dcd931c21847fbf7"},{"author":{"_account_id":7505,"name":"Jaume Devesa","email":"devvesa@gmail.com","username":"devesa"},"change_message_id":"03a4b3e28475028572f22bd05ff29ddff4185988","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def get_plugin_description(self):"},{"line_number":56,"context_line":"        return (\"Dynamic Routing Service Plugin test class that only \""},{"line_number":57,"context_line":"                \"exposes dynamic routing functionality, without agents,\""},{"line_number":58,"context_line":"                \"nor schedulers.\")"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_99594991","line":57,"in_reply_to":"1abeadc6_ceecd992","updated":"2014-08-25 13:22:32.000000000","message":"ok, thanks Paul!","commit_id":"44502e56a036738a66800882dcd931c21847fbf7"}],"neutron/tests/unit/test_extension_dynamic_routing.py":[{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"c86d0177ef7fcb0cdec465244dbbff6a5bb9a5e3","unresolved":false,"context_lines":[{"line_number":12,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import copy"},{"line_number":16,"context_line":"import mock"},{"line_number":17,"context_line":"from webob import exc"},{"line_number":18,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_f5ae90e6","line":15,"updated":"2014-08-26 14:19:17.000000000","message":"nit: insert line between copy and mock","commit_id":"44502e56a036738a66800882dcd931c21847fbf7"},{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"c86d0177ef7fcb0cdec465244dbbff6a5bb9a5e3","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        res \u003d self.api.get(_get_path(\u0027routinginstances\u0027, fmt\u003dself.fmt))"},{"line_number":53,"context_line":"        self.assertEqual(exc.HTTPOk.code, res.status_int)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        instance.get_routinginstances.assert_called_with(mock.ANY,"},{"line_number":56,"context_line":"                                                     fields\u003dmock.ANY,"},{"line_number":57,"context_line":"                                                     filters\u003dmock.ANY)"},{"line_number":58,"context_line":"        res \u003d self.deserialize(res)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_d544341d","line":55,"updated":"2014-08-26 14:19:17.000000000","message":"nit: assert_called_once_with - and also in other tests in this file","commit_id":"44502e56a036738a66800882dcd931c21847fbf7"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"be74080a748c83ab734a26a6da8844cc9dfb829c","unresolved":false,"context_lines":[{"line_number":126,"context_line":"            mock.ANY, bgpspeaker_id)"},{"line_number":127,"context_line":"        self.assertEqual(exc.HTTPNoContent.code, res.status_int)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    # def test_add_router_to_routinginstance(self):"},{"line_number":130,"context_line":"    #     routinginstance_id \u003d _uuid()"},{"line_number":131,"context_line":"    #     router_id \u003d _uuid()"},{"line_number":132,"context_line":"    #     data \u003d {\u0027router_id\u0027: router_id}"}],"source_content_type":"text/x-python","patch_set":10,"id":"9a0c5dc1_9b2156fe","line":129,"updated":"2015-05-13 13:25:26.000000000","message":"remove?","commit_id":"4c624c771544c2d4bdd898c9d31d5be261cbc75d"}]}
