)]}'
{"neutron/services/l3_router/l3_apic.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"7a6bbe8b11f1c7ce36e2715ebb8a760b8c513442","unresolved":false,"context_lines":[{"line_number":30,"context_line":"                          l3_gwmode_db.L3_NAT_db_mixin):"},{"line_number":31,"context_line":"    supported_extension_aliases \u003d [\"router\", \"ext-gw-mode\", \"extraroute\"]"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def __init__(self):"},{"line_number":34,"context_line":"        qdbapi.register_models(base\u003dmodel_base.BASEV2)"},{"line_number":35,"context_line":"        self.manager \u003d apic_manager.APICManager()"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_5e1ccac1","line":33,"updated":"2014-05-28 18:04:27.000000000","message":"Does this need to call super __init__()?","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":10310,"name":"Mandeep Dhami","email":"dhami@noironetworks.com","username":"mandeepdhami"},"change_message_id":"847bc2ffe4756f77fd59ed070f2658ec38002996","unresolved":false,"context_lines":[{"line_number":30,"context_line":"                          l3_gwmode_db.L3_NAT_db_mixin):"},{"line_number":31,"context_line":"    supported_extension_aliases \u003d [\"router\", \"ext-gw-mode\", \"extraroute\"]"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def __init__(self):"},{"line_number":34,"context_line":"        qdbapi.register_models(base\u003dmodel_base.BASEV2)"},{"line_number":35,"context_line":"        self.manager \u003d apic_manager.APICManager()"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_e60348b6","line":33,"in_reply_to":"3ae8d1ca_5e1ccac1","updated":"2014-05-28 21:01:41.000000000","message":"Agreed. I think that super __init__ should be called.","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"80cc163393f6c2211a3e664a9b331cddd40027a4","unresolved":false,"context_lines":[{"line_number":30,"context_line":"                          l3_gwmode_db.L3_NAT_db_mixin):"},{"line_number":31,"context_line":"    supported_extension_aliases \u003d [\"router\", \"ext-gw-mode\", \"extraroute\"]"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def __init__(self):"},{"line_number":34,"context_line":"        qdbapi.register_models(base\u003dmodel_base.BASEV2)"},{"line_number":35,"context_line":"        self.manager \u003d apic_manager.APICManager()"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_4c517d0d","line":33,"in_reply_to":"3ae8d1ca_5e1ccac1","updated":"2014-05-28 21:39:19.000000000","message":"I\u0027ll add the init in.","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"6ba5e389eaa221207f00b0f2014ddd8a31129b7c","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        net_name \u003d network[\u0027name\u0027]"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        # Setup tenant filters and contracts"},{"line_number":58,"context_line":"        contract \u003d self.manager.create_tenant_contract(tenant_id)"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        # Check for a provider EPG"},{"line_number":61,"context_line":"        epg \u003d self.manager.ensure_epg_created_for_network(tenant_id,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_ccbf4dfb","line":58,"updated":"2014-05-28 21:52:35.000000000","message":"Need to deal with the above call throwing exception. Looking at the code for manager, that is a possibility,","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"212b811608d294a220854a9d63da494637a0351b","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        net_name \u003d network[\u0027name\u0027]"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        # Setup tenant filters and contracts"},{"line_number":58,"context_line":"        contract \u003d self.manager.create_tenant_contract(tenant_id)"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        # Check for a provider EPG"},{"line_number":61,"context_line":"        epg \u003d self.manager.ensure_epg_created_for_network(tenant_id,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_cf357fdc","line":58,"in_reply_to":"3ae8d1ca_ccbf4dfb","updated":"2014-05-28 22:06:58.000000000","message":"I would just be saving and reraising the exceptions here, there is nothing to rollback.","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"6ba5e389eaa221207f00b0f2014ddd8a31129b7c","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        # Check for a provider EPG"},{"line_number":61,"context_line":"        epg \u003d self.manager.ensure_epg_created_for_network(tenant_id,"},{"line_number":62,"context_line":"                                                          network_id,"},{"line_number":63,"context_line":"                                                          net_name)"},{"line_number":64,"context_line":"        if self.manager.db.get_provider_contract():"},{"line_number":65,"context_line":"            # Set this network\u0027s EPG as a consumer"},{"line_number":66,"context_line":"            self.manager.set_contract_for_epg(tenant_id, epg.epg_id,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_8c454519","line":63,"updated":"2014-05-28 21:52:35.000000000","message":"Same as comment for L58. Similarly consider this for other calls to manager throughout the code.","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"212b811608d294a220854a9d63da494637a0351b","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        # Check for a provider EPG"},{"line_number":61,"context_line":"        epg \u003d self.manager.ensure_epg_created_for_network(tenant_id,"},{"line_number":62,"context_line":"                                                          network_id,"},{"line_number":63,"context_line":"                                                          net_name)"},{"line_number":64,"context_line":"        if self.manager.db.get_provider_contract():"},{"line_number":65,"context_line":"            # Set this network\u0027s EPG as a consumer"},{"line_number":66,"context_line":"            self.manager.set_contract_for_epg(tenant_id, epg.epg_id,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_0f3047e7","line":63,"in_reply_to":"3ae8d1ca_8c454519","updated":"2014-05-28 22:06:58.000000000","message":"Same here, the tenant contract doesn\u0027t need to be rolled back. It stays constant till the tenant itself is deleted.","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"7a6bbe8b11f1c7ce36e2715ebb8a760b8c513442","unresolved":false,"context_lines":[{"line_number":69,"context_line":"            # Set this network\u0027s EPG as a provider"},{"line_number":70,"context_line":"            self.manager.set_contract_for_epg(tenant_id, epg.epg_id,"},{"line_number":71,"context_line":"                                              contract.contract_id,"},{"line_number":72,"context_line":"                                              True)"},{"line_number":73,"context_line":"        # Create DB port"},{"line_number":74,"context_line":"        port \u003d super(ApicL3ServicePlugin, self).add_router_interface("},{"line_number":75,"context_line":"            context, router_id, interface_info)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_7e618638","line":72,"updated":"2014-05-28 18:04:27.000000000","message":"Can a keyword arg be used here so that we know what \u0027True\u0027 is referring to?","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"80cc163393f6c2211a3e664a9b331cddd40027a4","unresolved":false,"context_lines":[{"line_number":69,"context_line":"            # Set this network\u0027s EPG as a provider"},{"line_number":70,"context_line":"            self.manager.set_contract_for_epg(tenant_id, epg.epg_id,"},{"line_number":71,"context_line":"                                              contract.contract_id,"},{"line_number":72,"context_line":"                                              True)"},{"line_number":73,"context_line":"        # Create DB port"},{"line_number":74,"context_line":"        port \u003d super(ApicL3ServicePlugin, self).add_router_interface("},{"line_number":75,"context_line":"            context, router_id, interface_info)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_cc3cadc2","line":72,"in_reply_to":"3ae8d1ca_7e618638","updated":"2014-05-28 21:39:19.000000000","message":"Done","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"55a9ba1c9d9e2a69c7f72123c6c4fa48fa7bfa8c","unresolved":false,"context_lines":[{"line_number":69,"context_line":"            # Set this network\u0027s EPG as a provider"},{"line_number":70,"context_line":"            self.manager.set_contract_for_epg(tenant_id, epg.epg_id,"},{"line_number":71,"context_line":"                                              contract.contract_id,"},{"line_number":72,"context_line":"                                              True)"},{"line_number":73,"context_line":"        # Create DB port"},{"line_number":74,"context_line":"        port \u003d super(ApicL3ServicePlugin, self).add_router_interface("},{"line_number":75,"context_line":"            context, router_id, interface_info)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_60b55f30","line":72,"in_reply_to":"3ae8d1ca_7e618638","updated":"2014-05-28 20:27:33.000000000","message":"I agree,\n  \n  provider\u003dTrue/False\n\nhere (and in L67) would be good","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"7a6bbe8b11f1c7ce36e2715ebb8a760b8c513442","unresolved":false,"context_lines":[{"line_number":71,"context_line":"                                              contract.contract_id,"},{"line_number":72,"context_line":"                                              True)"},{"line_number":73,"context_line":"        # Create DB port"},{"line_number":74,"context_line":"        port \u003d super(ApicL3ServicePlugin, self).add_router_interface("},{"line_number":75,"context_line":"            context, router_id, interface_info)"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        return port"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_5e4a0aad","line":74,"updated":"2014-05-28 18:04:27.000000000","message":"Could just return here w/o temp variable, unless you think is is adding to readability.","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"80cc163393f6c2211a3e664a9b331cddd40027a4","unresolved":false,"context_lines":[{"line_number":71,"context_line":"                                              contract.contract_id,"},{"line_number":72,"context_line":"                                              True)"},{"line_number":73,"context_line":"        # Create DB port"},{"line_number":74,"context_line":"        port \u003d super(ApicL3ServicePlugin, self).add_router_interface("},{"line_number":75,"context_line":"            context, router_id, interface_info)"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        return port"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_2c751198","line":74,"in_reply_to":"3ae8d1ca_5e4a0aad","updated":"2014-05-28 21:39:19.000000000","message":"Done","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"55a9ba1c9d9e2a69c7f72123c6c4fa48fa7bfa8c","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                                              True)"},{"line_number":73,"context_line":"        # Create DB port"},{"line_number":74,"context_line":"        port \u003d super(ApicL3ServicePlugin, self).add_router_interface("},{"line_number":75,"context_line":"            context, router_id, interface_info)"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        return port"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_e05c0ff0","line":75,"updated":"2014-05-28 20:27:33.000000000","message":"What happens if add_router_interface() fails? Does the contract creation have to be rolled back?","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"b23dc22dc9203339c43740189eb1bacf1a703e28","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                                              True)"},{"line_number":73,"context_line":"        # Create DB port"},{"line_number":74,"context_line":"        port \u003d super(ApicL3ServicePlugin, self).add_router_interface("},{"line_number":75,"context_line":"            context, router_id, interface_info)"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        return port"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_6c10f901","line":75,"in_reply_to":"3ae8d1ca_ccaaedd1","updated":"2014-05-28 21:41:31.000000000","message":"Scratch that, just realized this will also affect the remove_router_interface if there\u0027s no DB port for the router interface .. i\u0027ll add in a rollback.","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"6ba5e389eaa221207f00b0f2014ddd8a31129b7c","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                                              True)"},{"line_number":73,"context_line":"        # Create DB port"},{"line_number":74,"context_line":"        port \u003d super(ApicL3ServicePlugin, self).add_router_interface("},{"line_number":75,"context_line":"            context, router_id, interface_info)"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        return port"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_cc774d3a","line":75,"in_reply_to":"3ae8d1ca_e05c0ff0","updated":"2014-05-28 21:52:35.000000000","message":"I agree. Furthermore, depending on what is more difficult to rollback (neutron db or the state of the manager) you may want to reconsider the order of these operations (that is, calls to the manager and the call to  super().add_router_interface), if possible.","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"80cc163393f6c2211a3e664a9b331cddd40027a4","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                                              True)"},{"line_number":73,"context_line":"        # Create DB port"},{"line_number":74,"context_line":"        port \u003d super(ApicL3ServicePlugin, self).add_router_interface("},{"line_number":75,"context_line":"            context, router_id, interface_info)"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        return port"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_ccaaedd1","line":75,"in_reply_to":"3ae8d1ca_e05c0ff0","updated":"2014-05-28 21:39:19.000000000","message":"The API operations fails, the contract is not rolled back. This is just a DB operation for API/CLI compatibility when a user lists router interfaces. Do you think a rollback is needed here and below?","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"55a9ba1c9d9e2a69c7f72123c6c4fa48fa7bfa8c","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        # Delete contract for this epg"},{"line_number":95,"context_line":"        self.manager.delete_contract_for_epg(tenant_id, epg.epg_id,"},{"line_number":96,"context_line":"                                             contract.contract_id,"},{"line_number":97,"context_line":"                                             epg.provider)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        super(ApicL3ServicePlugin, self).remove_router_interface("},{"line_number":100,"context_line":"            context, router_id, interface_info)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_e0e16fff","line":97,"updated":"2014-05-28 20:27:33.000000000","message":"This contract is created in L89 and then immediately deleted here. Trying to understand this sequence of operations.","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"80cc163393f6c2211a3e664a9b331cddd40027a4","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        # Delete contract for this epg"},{"line_number":95,"context_line":"        self.manager.delete_contract_for_epg(tenant_id, epg.epg_id,"},{"line_number":96,"context_line":"                                             contract.contract_id,"},{"line_number":97,"context_line":"                                             epg.provider)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        super(ApicL3ServicePlugin, self).remove_router_interface("},{"line_number":100,"context_line":"            context, router_id, interface_info)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_89161754","line":97,"in_reply_to":"3ae8d1ca_e0e16fff","updated":"2014-05-28 21:39:19.000000000","message":"89 ensures a contract for a tenant has been created and to create one if it hasn\u0027t. The contract is deleted for an epg (i.e. network) whose interface has been removed from the router, this just removes the EPG as a provider/consumer of a tenant contract. The tenant contract itself remains in the DB/APIC.","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":10310,"name":"Mandeep Dhami","email":"dhami@noironetworks.com","username":"mandeepdhami"},"change_message_id":"847bc2ffe4756f77fd59ed070f2658ec38002996","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        # Delete contract for this epg"},{"line_number":95,"context_line":"        self.manager.delete_contract_for_epg(tenant_id, epg.epg_id,"},{"line_number":96,"context_line":"                                             contract.contract_id,"},{"line_number":97,"context_line":"                                             epg.provider)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        super(ApicL3ServicePlugin, self).remove_router_interface("},{"line_number":100,"context_line":"            context, router_id, interface_info)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_a626a014","line":97,"in_reply_to":"3ae8d1ca_e0e16fff","updated":"2014-05-28 21:01:41.000000000","message":"I believe that \"create\" does a find and, if the tenant contract is found, returns that contract; otherwise it creates a new contract and returns that (apic_manager.py). So in this instance, it is actually just doing a find.","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"55a9ba1c9d9e2a69c7f72123c6c4fa48fa7bfa8c","unresolved":false,"context_lines":[{"line_number":97,"context_line":"                                             epg.provider)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        super(ApicL3ServicePlugin, self).remove_router_interface("},{"line_number":100,"context_line":"            context, router_id, interface_info)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3ae8d1ca_e0132f0b","line":100,"updated":"2014-05-28 20:27:33.000000000","message":"Similar question on rollback as before.","commit_id":"f73c6b59d517324c9b9edc582bc84d52b6e69b13"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"1e0fafeb9e7603408c4e3a8ab7f69162be2cf3ea","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def __init__(self):"},{"line_number":35,"context_line":"        qdbapi.register_models(base\u003dmodel_base.BASEV2)"},{"line_number":36,"context_line":"        self.manager \u003d apic_manager.APICManager()"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    @staticmethod"},{"line_number":39,"context_line":"    def get_plugin_type():"}],"source_content_type":"text/x-python","patch_set":2,"id":"3ae8d1ca_adb838e6","line":36,"updated":"2014-05-29 02:37:14.000000000","message":"still missing the call to super?","commit_id":"656d46f2121ca60be965a3985e1c86ae51b10eb4"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"95919d778781650fed1b940e70b0ef686c5c28a6","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def __init__(self):"},{"line_number":35,"context_line":"        qdbapi.register_models(base\u003dmodel_base.BASEV2)"},{"line_number":36,"context_line":"        self.manager \u003d apic_manager.APICManager()"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    @staticmethod"},{"line_number":39,"context_line":"    def get_plugin_type():"}],"source_content_type":"text/x-python","patch_set":2,"id":"3ae8d1ca_330b9326","line":36,"in_reply_to":"3ae8d1ca_adb838e6","updated":"2014-05-29 14:52:49.000000000","message":"Done","commit_id":"656d46f2121ca60be965a3985e1c86ae51b10eb4"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"1e0fafeb9e7603408c4e3a8ab7f69162be2cf3ea","unresolved":false,"context_lines":[{"line_number":54,"context_line":"            # Set this network\u0027s EPG as a provider"},{"line_number":55,"context_line":"            self.manager.set_contract_for_epg(tenant_id, epg.epg_id,"},{"line_number":56,"context_line":"                                              contract.contract_id,"},{"line_number":57,"context_line":"                                              True)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def add_router_interface(self, context, router_id, interface_info):"},{"line_number":60,"context_line":"        \"\"\"Attach a subnet to a router.\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"3ae8d1ca_6d8c7036","line":57,"updated":"2014-05-29 02:37:14.000000000","message":"I believe the earlier suggestion was to say:\n\n  provider\u003dTrue\n\n(and provider\u003dFalse in L1) to make the code more readable.\n\nI am fine with the current code if its too much of a hassle to change.","commit_id":"656d46f2121ca60be965a3985e1c86ae51b10eb4"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"95919d778781650fed1b940e70b0ef686c5c28a6","unresolved":false,"context_lines":[{"line_number":54,"context_line":"            # Set this network\u0027s EPG as a provider"},{"line_number":55,"context_line":"            self.manager.set_contract_for_epg(tenant_id, epg.epg_id,"},{"line_number":56,"context_line":"                                              contract.contract_id,"},{"line_number":57,"context_line":"                                              True)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def add_router_interface(self, context, router_id, interface_info):"},{"line_number":60,"context_line":"        \"\"\"Attach a subnet to a router.\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"3ae8d1ca_530e5f35","line":57,"in_reply_to":"3ae8d1ca_6d8c7036","updated":"2014-05-29 14:52:49.000000000","message":"Done","commit_id":"656d46f2121ca60be965a3985e1c86ae51b10eb4"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"1e0fafeb9e7603408c4e3a8ab7f69162be2cf3ea","unresolved":false,"context_lines":[{"line_number":82,"context_line":"                context, router_id, interface_info)"},{"line_number":83,"context_line":"        except Exception:"},{"line_number":84,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":85,"context_line":"                self.manager.delete_contract_for_epg(tenant_id, epg.epg_id,"},{"line_number":86,"context_line":"                                                     contract.contract_id,"},{"line_number":87,"context_line":"                                                     epg.provider)"},{"line_number":88,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3ae8d1ca_6d93904f","line":85,"updated":"2014-05-29 02:37:14.000000000","message":"not relevant to this patch, but on hindsight perhaps names like:\n\n  disassociate_contract_from_epg()\n\nmight have been more readable?","commit_id":"656d46f2121ca60be965a3985e1c86ae51b10eb4"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"95919d778781650fed1b940e70b0ef686c5c28a6","unresolved":false,"context_lines":[{"line_number":82,"context_line":"                context, router_id, interface_info)"},{"line_number":83,"context_line":"        except Exception:"},{"line_number":84,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":85,"context_line":"                self.manager.delete_contract_for_epg(tenant_id, epg.epg_id,"},{"line_number":86,"context_line":"                                                     contract.contract_id,"},{"line_number":87,"context_line":"                                                     epg.provider)"},{"line_number":88,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3ae8d1ca_73143b44","line":85,"in_reply_to":"3ae8d1ca_6d93904f","updated":"2014-05-29 14:52:49.000000000","message":"noted.","commit_id":"656d46f2121ca60be965a3985e1c86ae51b10eb4"},{"author":{"_account_id":6694,"name":"rcurran","email":"rcurran@cisco.com","username":"rcurran"},"change_message_id":"4068e1c2ba3929519f6b01c6f7120bff7ddea8e9","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2014 Cisco Systems Inc."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_24c1f32e","line":1,"updated":"2014-05-30 01:46:29.000000000","message":"Consider logging for this module. (More of a question then a statement.)","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"203a6daac04e4b7a1725f821459199a4d304ac6b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2014 Cisco Systems Inc."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_edcf6c27","line":1,"in_reply_to":"1ae5cdf2_24c1f32e","updated":"2014-06-03 17:37:14.000000000","message":"Agree with Rich, may be nice to have some debug logging at a minimum in this file.","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"713a4acdfc8890ee3ff75cf3ad7fb3c097d8fc85","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2014 Cisco Systems Inc."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_de3ed48b","line":1,"in_reply_to":"1ae5cdf2_24c1f32e","updated":"2014-06-03 21:15:28.000000000","message":"Done","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"713a4acdfc8890ee3ff75cf3ad7fb3c097d8fc85","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2014 Cisco Systems Inc."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_be3908a6","line":1,"in_reply_to":"1ae5cdf2_edcf6c27","updated":"2014-06-03 21:15:28.000000000","message":"Done","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":6694,"name":"rcurran","email":"rcurran@cisco.com","username":"rcurran"},"change_message_id":"4068e1c2ba3929519f6b01c6f7120bff7ddea8e9","unresolved":false,"context_lines":[{"line_number":28,"context_line":"class ApicL3ServicePlugin(db_base_plugin_v2.NeutronDbPluginV2,"},{"line_number":29,"context_line":"                          db_base_plugin_v2.CommonDbMixin,"},{"line_number":30,"context_line":"                          extraroute_db.ExtraRoute_db_mixin,"},{"line_number":31,"context_line":"                          l3_gwmode_db.L3_NAT_db_mixin):"},{"line_number":32,"context_line":"    supported_extension_aliases \u003d [\"router\", \"ext-gw-mode\", \"extraroute\"]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def __init__(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_8482c7fe","line":31,"updated":"2014-05-30 01:46:29.000000000","message":"Consider a docstring for the class.","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"713a4acdfc8890ee3ff75cf3ad7fb3c097d8fc85","unresolved":false,"context_lines":[{"line_number":28,"context_line":"class ApicL3ServicePlugin(db_base_plugin_v2.NeutronDbPluginV2,"},{"line_number":29,"context_line":"                          db_base_plugin_v2.CommonDbMixin,"},{"line_number":30,"context_line":"                          extraroute_db.ExtraRoute_db_mixin,"},{"line_number":31,"context_line":"                          l3_gwmode_db.L3_NAT_db_mixin):"},{"line_number":32,"context_line":"    supported_extension_aliases \u003d [\"router\", \"ext-gw-mode\", \"extraroute\"]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def __init__(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_1e459c16","line":31,"in_reply_to":"1ae5cdf2_8482c7fe","updated":"2014-06-03 21:15:28.000000000","message":"Done","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":6694,"name":"rcurran","email":"rcurran@cisco.com","username":"rcurran"},"change_message_id":"4068e1c2ba3929519f6b01c6f7120bff7ddea8e9","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    @staticmethod"},{"line_number":44,"context_line":"    def get_plugin_description():"},{"line_number":45,"context_line":"        \"\"\"returns string description of the plugin.\"\"\""},{"line_number":46,"context_line":"        return _(\"L3 Router Service Plugin for basic L3 using the APIC\")"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def _add_epg_to_contract(self, tenant_id, epg, contract):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_a4cfc3af","line":45,"updated":"2014-05-30 01:46:29.000000000","message":"Capitalize \"R\" on returns.","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"713a4acdfc8890ee3ff75cf3ad7fb3c097d8fc85","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    @staticmethod"},{"line_number":44,"context_line":"    def get_plugin_description():"},{"line_number":45,"context_line":"        \"\"\"returns string description of the plugin.\"\"\""},{"line_number":46,"context_line":"        return _(\"L3 Router Service Plugin for basic L3 using the APIC\")"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def _add_epg_to_contract(self, tenant_id, epg, contract):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_3e4df83e","line":45,"in_reply_to":"1ae5cdf2_a4cfc3af","updated":"2014-06-03 21:15:28.000000000","message":"Done","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":6694,"name":"rcurran","email":"rcurran@cisco.com","username":"rcurran"},"change_message_id":"4068e1c2ba3929519f6b01c6f7120bff7ddea8e9","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        return _(\"L3 Router Service Plugin for basic L3 using the APIC\")"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def _add_epg_to_contract(self, tenant_id, epg, contract):"},{"line_number":49,"context_line":"        \"\"\"Add an EPG to a contract as provider or consumer.\"\"\""},{"line_number":50,"context_line":"        if self.manager.db.get_provider_contract():"},{"line_number":51,"context_line":"            # Set this network\u0027s EPG as a consumer"},{"line_number":52,"context_line":"            self.manager.set_contract_for_epg(tenant_id, epg.epg_id,"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_049f9760","line":49,"updated":"2014-05-30 01:46:29.000000000","message":"Consider spelling out the acronym EPG the first time.","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"713a4acdfc8890ee3ff75cf3ad7fb3c097d8fc85","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        return _(\"L3 Router Service Plugin for basic L3 using the APIC\")"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def _add_epg_to_contract(self, tenant_id, epg, contract):"},{"line_number":49,"context_line":"        \"\"\"Add an EPG to a contract as provider or consumer.\"\"\""},{"line_number":50,"context_line":"        if self.manager.db.get_provider_contract():"},{"line_number":51,"context_line":"            # Set this network\u0027s EPG as a consumer"},{"line_number":52,"context_line":"            self.manager.set_contract_for_epg(tenant_id, epg.epg_id,"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_5e4ac426","line":49,"in_reply_to":"1ae5cdf2_049f9760","updated":"2014-06-03 21:15:28.000000000","message":"Done","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"40255db2f9f887d04d951461449e09f78d178d47","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        # Get network for this subnet"},{"line_number":66,"context_line":"        subnet \u003d self.get_subnet(context, subnet_id)"},{"line_number":67,"context_line":"        network_id \u003d subnet[\u0027network_id\u0027]"},{"line_number":68,"context_line":"        network \u003d self.get_network(context, network_id)"},{"line_number":69,"context_line":"        net_name \u003d network[\u0027name\u0027]"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"        # Setup tenant filters and contracts"}],"source_content_type":"text/x-python","patch_set":3,"id":"3ae8d1ca_9e72a747","line":68,"updated":"2014-05-29 18:29:03.000000000","message":"Nit (so consider only if you need to make more changes): network is only used to get net_name, so can do:\n\nnet_name \u003d self.get_network(context, network_id)[\u0027name\u0027]","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"713a4acdfc8890ee3ff75cf3ad7fb3c097d8fc85","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        # Get network for this subnet"},{"line_number":66,"context_line":"        subnet \u003d self.get_subnet(context, subnet_id)"},{"line_number":67,"context_line":"        network_id \u003d subnet[\u0027network_id\u0027]"},{"line_number":68,"context_line":"        network \u003d self.get_network(context, network_id)"},{"line_number":69,"context_line":"        net_name \u003d network[\u0027name\u0027]"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"        # Setup tenant filters and contracts"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_5e1f2408","line":68,"in_reply_to":"3ae8d1ca_9e72a747","updated":"2014-06-03 21:15:28.000000000","message":"Done","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"ab2b74746294b4fb45d9003c597b85bc0c588db9","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        except Exception:"},{"line_number":85,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":86,"context_line":"                self.manager.delete_contract_for_epg(tenant_id, epg.epg_id,"},{"line_number":87,"context_line":"                                                     contract.contract_id,"},{"line_number":88,"context_line":"                                                     provider\u003depg.provider)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    def remove_router_interface(self, context, router_id, interface_info):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_e80cbaef","line":87,"updated":"2014-06-03 18:08:58.000000000","message":"I believe there is no UT for this exception condition (check that is no contract for epg after exception is raised). I am fine if its planned to be added as a follow up patch.","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"713a4acdfc8890ee3ff75cf3ad7fb3c097d8fc85","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        except Exception:"},{"line_number":85,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":86,"context_line":"                self.manager.delete_contract_for_epg(tenant_id, epg.epg_id,"},{"line_number":87,"context_line":"                                                     contract.contract_id,"},{"line_number":88,"context_line":"                                                     provider\u003depg.provider)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    def remove_router_interface(self, context, router_id, interface_info):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_1d568106","line":87,"in_reply_to":"1ae5cdf2_e80cbaef","updated":"2014-06-03 21:15:28.000000000","message":"Done","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"ab2b74746294b4fb45d9003c597b85bc0c588db9","unresolved":false,"context_lines":[{"line_number":112,"context_line":"                context, router_id, interface_info)"},{"line_number":113,"context_line":"        except Exception:"},{"line_number":114,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":115,"context_line":"                self._add_epg_to_contract(tenant_id, epg, contract)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_68f8aac3","line":115,"updated":"2014-06-03 18:08:58.000000000","message":"ditto","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"713a4acdfc8890ee3ff75cf3ad7fb3c097d8fc85","unresolved":false,"context_lines":[{"line_number":112,"context_line":"                context, router_id, interface_info)"},{"line_number":113,"context_line":"        except Exception:"},{"line_number":114,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":115,"context_line":"                self._add_epg_to_contract(tenant_id, epg, contract)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_3d5b3d2f","line":115,"in_reply_to":"1ae5cdf2_68f8aac3","updated":"2014-06-03 21:15:28.000000000","message":"Done","commit_id":"3397363f9266b72209845dd73bc913a83eadaf81"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"843ad0f3bdd883b89b4ca17d576f3e517e6b2052","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        \"\"\"Attach a subnet to a router.\"\"\""},{"line_number":71,"context_line":"        tenant_id \u003d context.tenant_id"},{"line_number":72,"context_line":"        subnet_id \u003d interface_info[\u0027subnet_id\u0027]"},{"line_number":73,"context_line":"        LOG.debug(_(\"Attaching subnet %(subnet_id)s to \""},{"line_number":74,"context_line":"                    \"router %(router_id)s\") % {\u0027subnet_id\u0027: subnet_id,"},{"line_number":75,"context_line":"                                               \u0027router_id\u0027: router_id})"},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_7b0cd63b","line":73,"updated":"2014-06-04 11:03:36.000000000","message":"No i18n translation for debug messages. Here and L108","commit_id":"9e8abc481051824fbff4d714415b406721f8030b"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"bef871c5f9245455456ec307afb97e9fe946a7b4","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        \"\"\"Attach a subnet to a router.\"\"\""},{"line_number":71,"context_line":"        tenant_id \u003d context.tenant_id"},{"line_number":72,"context_line":"        subnet_id \u003d interface_info[\u0027subnet_id\u0027]"},{"line_number":73,"context_line":"        LOG.debug(_(\"Attaching subnet %(subnet_id)s to \""},{"line_number":74,"context_line":"                    \"router %(router_id)s\") % {\u0027subnet_id\u0027: subnet_id,"},{"line_number":75,"context_line":"                                               \u0027router_id\u0027: router_id})"},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_558b5e67","line":73,"in_reply_to":"1ae5cdf2_7b0cd63b","updated":"2014-06-04 15:37:12.000000000","message":"Done","commit_id":"9e8abc481051824fbff4d714415b406721f8030b"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b4f6308a2a311fa10073873f04ba7c94bf3838b0","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        return _(\"L3 Router Service Plugin for basic L3 using the APIC\")"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def _add_epg_to_contract(self, tenant_id, epg, contract):"},{"line_number":58,"context_line":"        \"\"\"Add an End Point Group(EPG) to a contract as provider/consumer.\"\"\""},{"line_number":59,"context_line":"        if self.manager.db.get_provider_contract():"},{"line_number":60,"context_line":"            # Set this network\u0027s EPG as a consumer"},{"line_number":61,"context_line":"            self.manager.set_contract_for_epg(tenant_id, epg.epg_id,"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_2bc9a05a","line":58,"updated":"2014-06-09 09:03:07.000000000","message":"Since provider is the only thing that changes, you could replace 59:68 with:\n\nself.manager.set_contract_for_epg(\n    tenant_id, epg.epg_id, contract.contract_id, \n    provider\u003dnot self.manager.db.get_provider_contract()\n)","commit_id":"6f3dac32eb512a8e4a37a426359635eac15fda66"}],"neutron/tests/unit/services/l3_router/test_l3_apic_plugin.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"25990297e99032e2ff576c207a28620a5ccb05b7","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        mgr.db.get_provider_contract.assert_called_once()"},{"line_number":105,"context_line":"        mgr.db.get_provider_contract.assertEqual(None)"},{"line_number":106,"context_line":"        mgr.set_contract_for_epg.assert_called_once()"},{"line_number":107,"context_line":"        mgr.set_contract_for_epg.assertTrue()"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    def test_remove_router_interface(self):"},{"line_number":110,"context_line":"        mgr \u003d self.plugin.manager"}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_7e104959","line":107,"updated":"2014-06-04 09:25:19.000000000","message":"This line doesn\u0027t do anything. assertTrue() is not a mock function so it will just silently accept it.","commit_id":"9e8abc481051824fbff4d714415b406721f8030b"},{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"bef871c5f9245455456ec307afb97e9fe946a7b4","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        mgr.db.get_provider_contract.assert_called_once()"},{"line_number":105,"context_line":"        mgr.db.get_provider_contract.assertEqual(None)"},{"line_number":106,"context_line":"        mgr.set_contract_for_epg.assert_called_once()"},{"line_number":107,"context_line":"        mgr.set_contract_for_epg.assertTrue()"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    def test_remove_router_interface(self):"},{"line_number":110,"context_line":"        mgr \u003d self.plugin.manager"}],"source_content_type":"text/x-python","patch_set":4,"id":"1ae5cdf2_55b43e34","line":107,"in_reply_to":"1ae5cdf2_7e104959","updated":"2014-06-04 15:37:12.000000000","message":"Done","commit_id":"9e8abc481051824fbff4d714415b406721f8030b"}]}
