)]}'
{"neutron/db/migration/alembic_migrations/versions/14f24494ca31_arista_ml2.py":[{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"85207430d461722278110982e4686a8e7d453283","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        \u0027arista_provisioned_vms\u0027,"},{"line_number":57,"context_line":"        sa.Column(\u0027tenant_id\u0027, sa.String(length\u003d255), nullable\u003dTrue),"},{"line_number":58,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":59,"context_line":"        sa.Column(\u0027vm_id\u0027, sa.String(length\u003d255), nullable\u003dTrue),"},{"line_number":60,"context_line":"        sa.Column(\u0027host_id\u0027, sa.String(length\u003d255), nullable\u003dTrue),"},{"line_number":61,"context_line":"        sa.Column(\u0027port_id\u0027, sa.String(length\u003d36), nullable\u003dTrue),"},{"line_number":62,"context_line":"        sa.Column(\u0027network_id\u0027, sa.String(length\u003d36), nullable\u003dTrue),"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FK2M%3D","line":59,"updated":"2013-10-03 00:25:53.000000000","message":"As enikanorov pointed out to me on IRC last week, it is desirable to have DB migrations that maintain consistency for each code commit. That is being broken here, but in a very minor way, and considering this is the first release of your driver, I think this easy fix is acceptable. Just make sure it gets in RC1. :)","commit_id":"91fa02e4682470c13226583a51ae639279d048b9"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"83d7d5dae710b257bee774f88533a0bf5d918f1c","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        \u0027arista_provisioned_vms\u0027,"},{"line_number":57,"context_line":"        sa.Column(\u0027tenant_id\u0027, sa.String(length\u003d255), nullable\u003dTrue),"},{"line_number":58,"context_line":"        sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":59,"context_line":"        sa.Column(\u0027vm_id\u0027, sa.String(length\u003d255), nullable\u003dTrue),"},{"line_number":60,"context_line":"        sa.Column(\u0027host_id\u0027, sa.String(length\u003d255), nullable\u003dTrue),"},{"line_number":61,"context_line":"        sa.Column(\u0027port_id\u0027, sa.String(length\u003d36), nullable\u003dTrue),"},{"line_number":62,"context_line":"        sa.Column(\u0027network_id\u0027, sa.String(length\u003d36), nullable\u003dTrue),"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FGRw%3D","line":59,"in_reply_to":"AAAAS3%2F%2FK2M%3D","updated":"2013-10-04 13:04:43.000000000","message":"agree","commit_id":"91fa02e4682470c13226583a51ae639279d048b9"}],"neutron/plugins/ml2/drivers/mech_arista/db.py":[{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"2e56ab907018bc2fa04b746ea3728e00fbf9faed","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    \"\"\""},{"line_number":56,"context_line":"    __tablename__ \u003d \u0027arista_provisioned_vms\u0027"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    vm_id \u003d sa.Column(sa.String(STR_LEN))"},{"line_number":59,"context_line":"    host_id \u003d sa.Column(sa.String(STR_LEN))"},{"line_number":60,"context_line":"    port_id \u003d sa.Column(sa.String(UUID_LEN))"},{"line_number":61,"context_line":"    network_id \u003d sa.Column(sa.String(UUID_LEN))"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FR2c%3D","line":58,"updated":"2013-10-01 00:37:51.000000000","message":"Not sure, but a DB migration might be needed when the column definition changes.","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"7a470e635e9b82905f8da7ffda530ba25ba47ebe","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    \"\"\""},{"line_number":56,"context_line":"    __tablename__ \u003d \u0027arista_provisioned_vms\u0027"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    vm_id \u003d sa.Column(sa.String(STR_LEN))"},{"line_number":59,"context_line":"    host_id \u003d sa.Column(sa.String(STR_LEN))"},{"line_number":60,"context_line":"    port_id \u003d sa.Column(sa.String(UUID_LEN))"},{"line_number":61,"context_line":"    network_id \u003d sa.Column(sa.String(UUID_LEN))"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FRoA%3D","line":58,"in_reply_to":"AAAAS3%2F%2FR2c%3D","updated":"2013-10-01 03:22:32.000000000","message":"Not sure what is required here. The instructions in the DB migration documentation do not seem to cover this case. \nDo I need to just change the  column width in file 14f24494ca31_arista_ml2.py or is there anything else is needed?","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"d58c530c5a8eaf41c06a46d0845101e7dad12171","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    \"\"\""},{"line_number":56,"context_line":"    __tablename__ \u003d \u0027arista_provisioned_vms\u0027"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    vm_id \u003d sa.Column(sa.String(STR_LEN))"},{"line_number":59,"context_line":"    host_id \u003d sa.Column(sa.String(STR_LEN))"},{"line_number":60,"context_line":"    port_id \u003d sa.Column(sa.String(UUID_LEN))"},{"line_number":61,"context_line":"    network_id \u003d sa.Column(sa.String(UUID_LEN))"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FQxc%3D","line":58,"in_reply_to":"AAAAS3%2F%2FRoA%3D","updated":"2013-10-01 11:47:48.000000000","message":"You can use migration instructions https://wiki.openstack.org/wiki/Neutron/DatabaseMigration to create a migration file upgrade to STR_LEN and downgrade to UUID_LEN for the vm_id field using alter_column()","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"563d6b7d86fe460d57afa689192368721a6b1132","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    \"\"\""},{"line_number":56,"context_line":"    __tablename__ \u003d \u0027arista_provisioned_vms\u0027"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    vm_id \u003d sa.Column(sa.String(STR_LEN))"},{"line_number":59,"context_line":"    host_id \u003d sa.Column(sa.String(STR_LEN))"},{"line_number":60,"context_line":"    port_id \u003d sa.Column(sa.String(UUID_LEN))"},{"line_number":61,"context_line":"    network_id \u003d sa.Column(sa.String(UUID_LEN))"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FRHA%3D","line":58,"in_reply_to":"AAAAS3%2F%2FRoA%3D","updated":"2013-10-01 09:51:34.000000000","message":"You need to add migration that is changing column definition from String(36) to String(255)","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"}],"neutron/plugins/ml2/drivers/mech_arista/mechanism_arista.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"d58c530c5a8eaf41c06a46d0845101e7dad12171","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"EOS_UNREACHABLE_MSG \u003d \u0027Unable to reach EOS\u0027"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class AristaRPCWrapper(object):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FQpI%3D","line":30,"updated":"2013-10-01 11:47:48.000000000","message":"Any reason why i18n was removed from this string?","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"1921e87394319b86df4029ea28972d74eaff90ab","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"EOS_UNREACHABLE_MSG \u003d \u0027Unable to reach EOS\u0027"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class AristaRPCWrapper(object):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FOu0%3D","line":30,"in_reply_to":"AAAAS3%2F%2FQpI%3D","updated":"2013-10-02 23:15:38.000000000","message":"Done","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"2e56ab907018bc2fa04b746ea3728e00fbf9faed","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        cmds \u003d [\u0027tenant %s\u0027 % tenant_id,"},{"line_number":76,"context_line":"                \u0027vm id %s hostid %s\u0027 % (vm_id, host)]"},{"line_number":77,"context_line":"        if port_name:"},{"line_number":78,"context_line":"            port_name \u003d \"\u0027\" + port_name + \"\u0027\""},{"line_number":79,"context_line":"            cmds.append(\u0027port id %s name %s network-id %s\u0027 %"},{"line_number":80,"context_line":"                        (port_id, port_name, network_id))"},{"line_number":81,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FR20%3D","line":78,"updated":"2013-10-01 00:37:51.000000000","message":"It would be slightly more efficient (and readable) to include the single quotes in the string on the following line (using double quotes around the string).","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"1921e87394319b86df4029ea28972d74eaff90ab","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        cmds \u003d [\u0027tenant %s\u0027 % tenant_id,"},{"line_number":76,"context_line":"                \u0027vm id %s hostid %s\u0027 % (vm_id, host)]"},{"line_number":77,"context_line":"        if port_name:"},{"line_number":78,"context_line":"            port_name \u003d \"\u0027\" + port_name + \"\u0027\""},{"line_number":79,"context_line":"            cmds.append(\u0027port id %s name %s network-id %s\u0027 %"},{"line_number":80,"context_line":"                        (port_id, port_name, network_id))"},{"line_number":81,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FOuw%3D","line":78,"in_reply_to":"AAAAS3%2F%2FR20%3D","updated":"2013-10-02 23:15:38.000000000","message":"Done","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"2e56ab907018bc2fa04b746ea3728e00fbf9faed","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def plug_dhcp_port_into_network(self, vm_id, host, port_id,"},{"line_number":89,"context_line":"                                    network_id, tenant_id, port_name):"},{"line_number":90,"context_line":"        \"\"\"Creates VLAN between TOR and compute host."},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"        :param vm_id: globally unique identifier for VM instance"},{"line_number":93,"context_line":"        :param host: ID of the host where the VM is placed"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FR28%3D","line":90,"updated":"2013-10-01 00:37:51.000000000","message":"Look like this was cloned from plug_host_into_network(). Should update doc string to replace \"compute host\" with \"dhcp host\" and the parameter names and descriptions to not refer to VMs.\n\nSame goes for the unplug function.","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"1921e87394319b86df4029ea28972d74eaff90ab","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def plug_dhcp_port_into_network(self, vm_id, host, port_id,"},{"line_number":89,"context_line":"                                    network_id, tenant_id, port_name):"},{"line_number":90,"context_line":"        \"\"\"Creates VLAN between TOR and compute host."},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"        :param vm_id: globally unique identifier for VM instance"},{"line_number":93,"context_line":"        :param host: ID of the host where the VM is placed"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FPHs%3D","line":90,"in_reply_to":"AAAAS3%2F%2FR28%3D","updated":"2013-10-02 23:15:38.000000000","message":"Done","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"d58c530c5a8eaf41c06a46d0845101e7dad12171","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                \u0027network id %s\u0027 % network_id]"},{"line_number":101,"context_line":"        if port_name:"},{"line_number":102,"context_line":"            port_name \u003d \"\u0027\" + port_name + \"\u0027\""},{"line_number":103,"context_line":"            cmds.append(\u0027dhcp id %s hostid %s port-id %s name %s\u0027 %"},{"line_number":104,"context_line":"                        (vm_id, host, port_id, port_name))"},{"line_number":105,"context_line":"        else:"},{"line_number":106,"context_line":"            cmds.append(\u0027dhcp id %s hostid %s port-id %s\u0027 %"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FQvc%3D","line":103,"updated":"2013-10-01 11:47:48.000000000","message":"Same thing as Robert mention, should be done here - putting quotes around the name %s in this string.","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"1921e87394319b86df4029ea28972d74eaff90ab","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                \u0027network id %s\u0027 % network_id]"},{"line_number":101,"context_line":"        if port_name:"},{"line_number":102,"context_line":"            port_name \u003d \"\u0027\" + port_name + \"\u0027\""},{"line_number":103,"context_line":"            cmds.append(\u0027dhcp id %s hostid %s port-id %s name %s\u0027 %"},{"line_number":104,"context_line":"                        (vm_id, host, port_id, port_name))"},{"line_number":105,"context_line":"        else:"},{"line_number":106,"context_line":"            cmds.append(\u0027dhcp id %s hostid %s port-id %s\u0027 %"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FOuQ%3D","line":103,"in_reply_to":"AAAAS3%2F%2FQvc%3D","updated":"2013-10-02 23:15:38.000000000","message":"Done","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"d58c530c5a8eaf41c06a46d0845101e7dad12171","unresolved":false,"context_lines":[{"line_number":151,"context_line":"        \"\"\""},{"line_number":152,"context_line":"        cmds \u003d [\u0027tenant %s\u0027 % tenant_id]"},{"line_number":153,"context_line":"        if network_name:"},{"line_number":154,"context_line":"            network_name \u003d \"\u0027\" + network_name + \"\u0027\""},{"line_number":155,"context_line":"            cmds.append(\u0027network id %s name %s\u0027 % (network_id, network_name))"},{"line_number":156,"context_line":"        else:"},{"line_number":157,"context_line":"            cmds.append(\u0027network id %s\u0027 % network_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FQvA%3D","line":154,"updated":"2013-10-01 11:47:48.000000000","message":"Same thing on the next line.","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"1921e87394319b86df4029ea28972d74eaff90ab","unresolved":false,"context_lines":[{"line_number":151,"context_line":"        \"\"\""},{"line_number":152,"context_line":"        cmds \u003d [\u0027tenant %s\u0027 % tenant_id]"},{"line_number":153,"context_line":"        if network_name:"},{"line_number":154,"context_line":"            network_name \u003d \"\u0027\" + network_name + \"\u0027\""},{"line_number":155,"context_line":"            cmds.append(\u0027network id %s name %s\u0027 % (network_id, network_name))"},{"line_number":156,"context_line":"        else:"},{"line_number":157,"context_line":"            cmds.append(\u0027network id %s\u0027 % network_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FOuM%3D","line":154,"in_reply_to":"AAAAS3%2F%2FQvA%3D","updated":"2013-10-02 23:15:38.000000000","message":"Done","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"563d6b7d86fe460d57afa689192368721a6b1132","unresolved":false,"context_lines":[{"line_number":272,"context_line":"            ret \u003d ret[len(command_start):-len(command_end)]"},{"line_number":273,"context_line":"        except Exception as error:"},{"line_number":274,"context_line":"            host \u003d cfg.CONF.ml2_arista.eapi_host"},{"line_number":275,"context_line":"            msg \u003d (\u0027Error %s while trying to execute commands %s on EOS %s\u0027 %"},{"line_number":276,"context_line":"                   (error, full_command, host))"},{"line_number":277,"context_line":"            LOG.exception(_(\"%s\"), msg)"},{"line_number":278,"context_line":"            raise arista_exc.AristaRpcError(msg\u003dmsg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FRGY%3D","line":275,"updated":"2013-10-01 09:51:34.000000000","message":"please avoid positional string formatting:\n msg \u003d _(\u0027Error %(error)s while trying to execute commands %(cmd)s on EOS %(eos)s\u0027) % {\u0027error\u0027: error, ... ... }\n\nand just:\n LOG.exception(msg)","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"1921e87394319b86df4029ea28972d74eaff90ab","unresolved":false,"context_lines":[{"line_number":272,"context_line":"            ret \u003d ret[len(command_start):-len(command_end)]"},{"line_number":273,"context_line":"        except Exception as error:"},{"line_number":274,"context_line":"            host \u003d cfg.CONF.ml2_arista.eapi_host"},{"line_number":275,"context_line":"            msg \u003d (\u0027Error %s while trying to execute commands %s on EOS %s\u0027 %"},{"line_number":276,"context_line":"                   (error, full_command, host))"},{"line_number":277,"context_line":"            LOG.exception(_(\"%s\"), msg)"},{"line_number":278,"context_line":"            raise arista_exc.AristaRpcError(msg\u003dmsg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FOtU%3D","line":275,"in_reply_to":"AAAAS3%2F%2FRGY%3D","updated":"2013-10-02 23:15:38.000000000","message":"Done","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"d58c530c5a8eaf41c06a46d0845101e7dad12171","unresolved":false,"context_lines":[{"line_number":274,"context_line":"            host \u003d cfg.CONF.ml2_arista.eapi_host"},{"line_number":275,"context_line":"            msg \u003d (\u0027Error %s while trying to execute commands %s on EOS %s\u0027 %"},{"line_number":276,"context_line":"                   (error, full_command, host))"},{"line_number":277,"context_line":"            LOG.exception(_(\"%s\"), msg)"},{"line_number":278,"context_line":"            raise arista_exc.AristaRpcError(msg\u003dmsg)"},{"line_number":279,"context_line":""},{"line_number":280,"context_line":"        return ret"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FQuE%3D","line":277,"updated":"2013-10-01 11:47:48.000000000","message":"Nit: You could just put the msg string info into the log call, instead of building a message string, and converting to i18n.","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"d58c530c5a8eaf41c06a46d0845101e7dad12171","unresolved":false,"context_lines":[{"line_number":291,"context_line":"        return eapi_server_url"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"    def _validate_config(self):"},{"line_number":294,"context_line":"        if cfg.CONF.ml2_arista.get(\u0027eapi_host\u0027) is \u0027\u0027:"},{"line_number":295,"context_line":"            msg \u003d _(\u0027Required option eapi_host is not set\u0027)"},{"line_number":296,"context_line":"            LOG.error(msg)"},{"line_number":297,"context_line":"            raise arista_exc.AristaConfigError(msg\u003dmsg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FQpE%3D","line":294,"updated":"2013-10-01 11:47:48.000000000","message":"Is there a default value for this config item? If not, then it would be None, if not set. May want to change this to:\n\nif not cfg.CONF/ml2_arista.get(\u0027eapi_host\u0027, None):","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"338cf246c6e9d5a902cb685ed950db9eb1b2e5b4","unresolved":false,"context_lines":[{"line_number":291,"context_line":"        return eapi_server_url"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"    def _validate_config(self):"},{"line_number":294,"context_line":"        if cfg.CONF.ml2_arista.get(\u0027eapi_host\u0027) is \u0027\u0027:"},{"line_number":295,"context_line":"            msg \u003d _(\u0027Required option eapi_host is not set\u0027)"},{"line_number":296,"context_line":"            LOG.error(msg)"},{"line_number":297,"context_line":"            raise arista_exc.AristaConfigError(msg\u003dmsg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FPRg%3D","line":294,"updated":"2013-10-01 18:27:20.000000000","message":"Not sure you should compare with empty string using \u0027is\u0027, just use \u0027\u003d\u003d\u0027. Same on line 298","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"1921e87394319b86df4029ea28972d74eaff90ab","unresolved":false,"context_lines":[{"line_number":291,"context_line":"        return eapi_server_url"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"    def _validate_config(self):"},{"line_number":294,"context_line":"        if cfg.CONF.ml2_arista.get(\u0027eapi_host\u0027) is \u0027\u0027:"},{"line_number":295,"context_line":"            msg \u003d _(\u0027Required option eapi_host is not set\u0027)"},{"line_number":296,"context_line":"            LOG.error(msg)"},{"line_number":297,"context_line":"            raise arista_exc.AristaConfigError(msg\u003dmsg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FOSs%3D","line":294,"in_reply_to":"AAAAS3%2F%2FPRg%3D","updated":"2013-10-02 23:15:38.000000000","message":"Done","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"1921e87394319b86df4029ea28972d74eaff90ab","unresolved":false,"context_lines":[{"line_number":291,"context_line":"        return eapi_server_url"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"    def _validate_config(self):"},{"line_number":294,"context_line":"        if cfg.CONF.ml2_arista.get(\u0027eapi_host\u0027) is \u0027\u0027:"},{"line_number":295,"context_line":"            msg \u003d _(\u0027Required option eapi_host is not set\u0027)"},{"line_number":296,"context_line":"            LOG.error(msg)"},{"line_number":297,"context_line":"            raise arista_exc.AristaConfigError(msg\u003dmsg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FOqk%3D","line":294,"in_reply_to":"AAAAS3%2F%2FQpE%3D","updated":"2013-10-02 23:15:38.000000000","message":"There is not default value for it and its type is a string, therefore, None is not used, but an empty sting is used.","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"d58c530c5a8eaf41c06a46d0845101e7dad12171","unresolved":false,"context_lines":[{"line_number":293,"context_line":"    def _validate_config(self):"},{"line_number":294,"context_line":"        if cfg.CONF.ml2_arista.get(\u0027eapi_host\u0027) is \u0027\u0027:"},{"line_number":295,"context_line":"            msg \u003d _(\u0027Required option eapi_host is not set\u0027)"},{"line_number":296,"context_line":"            LOG.error(msg)"},{"line_number":297,"context_line":"            raise arista_exc.AristaConfigError(msg\u003dmsg)"},{"line_number":298,"context_line":"        if cfg.CONF.ml2_arista.get(\u0027eapi_username\u0027) is \u0027\u0027:"},{"line_number":299,"context_line":"            msg \u003d _(\u0027Required option eapi_username is not set\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FQuA%3D","line":296,"updated":"2013-10-01 11:47:48.000000000","message":"Don\u0027t really need temp variable (doesn\u0027t add to understanding).","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"1921e87394319b86df4029ea28972d74eaff90ab","unresolved":false,"context_lines":[{"line_number":293,"context_line":"    def _validate_config(self):"},{"line_number":294,"context_line":"        if cfg.CONF.ml2_arista.get(\u0027eapi_host\u0027) is \u0027\u0027:"},{"line_number":295,"context_line":"            msg \u003d _(\u0027Required option eapi_host is not set\u0027)"},{"line_number":296,"context_line":"            LOG.error(msg)"},{"line_number":297,"context_line":"            raise arista_exc.AristaConfigError(msg\u003dmsg)"},{"line_number":298,"context_line":"        if cfg.CONF.ml2_arista.get(\u0027eapi_username\u0027) is \u0027\u0027:"},{"line_number":299,"context_line":"            msg \u003d _(\u0027Required option eapi_username is not set\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FOPM%3D","line":296,"in_reply_to":"AAAAS3%2F%2FPRs%3D","updated":"2013-10-02 23:15:38.000000000","message":"yes, that is the reason to use it this way","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"338cf246c6e9d5a902cb685ed950db9eb1b2e5b4","unresolved":false,"context_lines":[{"line_number":293,"context_line":"    def _validate_config(self):"},{"line_number":294,"context_line":"        if cfg.CONF.ml2_arista.get(\u0027eapi_host\u0027) is \u0027\u0027:"},{"line_number":295,"context_line":"            msg \u003d _(\u0027Required option eapi_host is not set\u0027)"},{"line_number":296,"context_line":"            LOG.error(msg)"},{"line_number":297,"context_line":"            raise arista_exc.AristaConfigError(msg\u003dmsg)"},{"line_number":298,"context_line":"        if cfg.CONF.ml2_arista.get(\u0027eapi_username\u0027) is \u0027\u0027:"},{"line_number":299,"context_line":"            msg \u003d _(\u0027Required option eapi_username is not set\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FPRs%3D","line":296,"in_reply_to":"AAAAS3%2F%2FQuA%3D","updated":"2013-10-01 18:27:20.000000000","message":"msg is used twice here, so it\u0027s ok IMO","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"d58c530c5a8eaf41c06a46d0845101e7dad12171","unresolved":false,"context_lines":[{"line_number":315,"context_line":"    def synchronize(self):"},{"line_number":316,"context_line":"        \"\"\"Sends data to EOS which differs from neutron DB.\"\"\""},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"        LOG.info(\u0027Syncing Neutron  \u003c-\u003e EOS\u0027)"},{"line_number":319,"context_line":"        try:"},{"line_number":320,"context_line":"            #Always register with EOS to ensure that it has correct credentials"},{"line_number":321,"context_line":"            self._rpc._register_with_eos()"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FQp8%3D","line":318,"updated":"2013-10-01 11:47:48.000000000","message":"Any reason why i18n removed from log message?","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"1921e87394319b86df4029ea28972d74eaff90ab","unresolved":false,"context_lines":[{"line_number":315,"context_line":"    def synchronize(self):"},{"line_number":316,"context_line":"        \"\"\"Sends data to EOS which differs from neutron DB.\"\"\""},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"        LOG.info(\u0027Syncing Neutron  \u003c-\u003e EOS\u0027)"},{"line_number":319,"context_line":"        try:"},{"line_number":320,"context_line":"            #Always register with EOS to ensure that it has correct credentials"},{"line_number":321,"context_line":"            self._rpc._register_with_eos()"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FOs8%3D","line":318,"in_reply_to":"AAAAS3%2F%2FQp8%3D","updated":"2013-10-02 23:15:38.000000000","message":"Done","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"d58c530c5a8eaf41c06a46d0845101e7dad12171","unresolved":false,"context_lines":[{"line_number":349,"context_line":"                    self._rpc.delete_tenant(tenant)"},{"line_number":350,"context_line":"                    del eos_tenants[tenant]"},{"line_number":351,"context_line":"                except arista_exc.AristaRpcError:"},{"line_number":352,"context_line":"                    msg \u003d _(\u0027EOS is not available,\u0027"},{"line_number":353,"context_line":"                            \u0027failed to delete tenant %s\u0027) % tenant"},{"line_number":354,"context_line":"                    LOG.warning(msg)"},{"line_number":355,"context_line":"                    return"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FQp4%3D","line":352,"updated":"2013-10-01 11:47:48.000000000","message":"nit: add space after comma.","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"1921e87394319b86df4029ea28972d74eaff90ab","unresolved":false,"context_lines":[{"line_number":349,"context_line":"                    self._rpc.delete_tenant(tenant)"},{"line_number":350,"context_line":"                    del eos_tenants[tenant]"},{"line_number":351,"context_line":"                except arista_exc.AristaRpcError:"},{"line_number":352,"context_line":"                    msg \u003d _(\u0027EOS is not available,\u0027"},{"line_number":353,"context_line":"                            \u0027failed to delete tenant %s\u0027) % tenant"},{"line_number":354,"context_line":"                    LOG.warning(msg)"},{"line_number":355,"context_line":"                    return"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FOsQ%3D","line":352,"in_reply_to":"AAAAS3%2F%2FQp4%3D","updated":"2013-10-02 23:15:38.000000000","message":"Done","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"d58c530c5a8eaf41c06a46d0845101e7dad12171","unresolved":false,"context_lines":[{"line_number":350,"context_line":"                    del eos_tenants[tenant]"},{"line_number":351,"context_line":"                except arista_exc.AristaRpcError:"},{"line_number":352,"context_line":"                    msg \u003d _(\u0027EOS is not available,\u0027"},{"line_number":353,"context_line":"                            \u0027failed to delete tenant %s\u0027) % tenant"},{"line_number":354,"context_line":"                    LOG.warning(msg)"},{"line_number":355,"context_line":"                    return"},{"line_number":356,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FQpw%3D","line":353,"updated":"2013-10-01 11:47:48.000000000","message":"nit: Should you quote %s for readability?","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"563d6b7d86fe460d57afa689192368721a6b1132","unresolved":false,"context_lines":[{"line_number":415,"context_line":"                    for port in ports:"},{"line_number":416,"context_line":"                        port_id \u003d port[\u0027id\u0027]"},{"line_number":417,"context_line":"                        net_id \u003d port[\u0027network_id\u0027]"},{"line_number":418,"context_line":"                        portName \u003d port[\u0027name\u0027]"},{"line_number":419,"context_line":"                        vm_id \u003d vm[\u0027vmId\u0027]"},{"line_number":420,"context_line":"                        host_id \u003d vm[\u0027host\u0027]"},{"line_number":421,"context_line":"                        try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FQ7Y%3D","line":418,"updated":"2013-10-01 09:51:34.000000000","message":"why camel case?","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"1921e87394319b86df4029ea28972d74eaff90ab","unresolved":false,"context_lines":[{"line_number":415,"context_line":"                    for port in ports:"},{"line_number":416,"context_line":"                        port_id \u003d port[\u0027id\u0027]"},{"line_number":417,"context_line":"                        net_id \u003d port[\u0027network_id\u0027]"},{"line_number":418,"context_line":"                        portName \u003d port[\u0027name\u0027]"},{"line_number":419,"context_line":"                        vm_id \u003d vm[\u0027vmId\u0027]"},{"line_number":420,"context_line":"                        host_id \u003d vm[\u0027host\u0027]"},{"line_number":421,"context_line":"                        try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FOPU%3D","line":418,"in_reply_to":"AAAAS3%2F%2FQ7Y%3D","updated":"2013-10-02 23:15:38.000000000","message":"Done","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"d58c530c5a8eaf41c06a46d0845101e7dad12171","unresolved":false,"context_lines":[{"line_number":618,"context_line":""},{"line_number":619,"context_line":"        # device_id and device_owner are set on VM boot"},{"line_number":620,"context_line":"        is_vm_boot \u003d device_id and device_owner"},{"line_number":621,"context_line":"        if host and is_vm_boot:"},{"line_number":622,"context_line":"            port_id \u003d port[\u0027id\u0027]"},{"line_number":623,"context_line":"            port_name \u003d port[\u0027name\u0027]"},{"line_number":624,"context_line":"            network_id \u003d port[\u0027network_id\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FQpM%3D","line":621,"updated":"2013-10-01 11:47:48.000000000","message":"This code block looks awfully close to that in 688-723. Consider refactoring out to a helper function.","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"1921e87394319b86df4029ea28972d74eaff90ab","unresolved":false,"context_lines":[{"line_number":618,"context_line":""},{"line_number":619,"context_line":"        # device_id and device_owner are set on VM boot"},{"line_number":620,"context_line":"        is_vm_boot \u003d device_id and device_owner"},{"line_number":621,"context_line":"        if host and is_vm_boot:"},{"line_number":622,"context_line":"            port_id \u003d port[\u0027id\u0027]"},{"line_number":623,"context_line":"            port_name \u003d port[\u0027name\u0027]"},{"line_number":624,"context_line":"            network_id \u003d port[\u0027network_id\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FOPY%3D","line":621,"in_reply_to":"AAAAS3%2F%2FQpM%3D","updated":"2013-10-02 23:15:38.000000000","message":"Done","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"d58c530c5a8eaf41c06a46d0845101e7dad12171","unresolved":false,"context_lines":[{"line_number":652,"context_line":"                        LOG.info(EOS_UNREACHABLE_MSG)"},{"line_number":653,"context_line":"                        raise ml2_exc.MechanismDriverError()"},{"line_number":654,"context_line":"                else:"},{"line_number":655,"context_line":"                    msg \u003d _(\u0027VM %s is not created as it is not found in\u0027"},{"line_number":656,"context_line":"                            \u0027Arista DB\u0027) % device_id"},{"line_number":657,"context_line":"                    LOG.info(msg)"},{"line_number":658,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FQpg%3D","line":655,"updated":"2013-10-01 11:47:48.000000000","message":"nit: add space after \u0027in\u0027","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"1921e87394319b86df4029ea28972d74eaff90ab","unresolved":false,"context_lines":[{"line_number":652,"context_line":"                        LOG.info(EOS_UNREACHABLE_MSG)"},{"line_number":653,"context_line":"                        raise ml2_exc.MechanismDriverError()"},{"line_number":654,"context_line":"                else:"},{"line_number":655,"context_line":"                    msg \u003d _(\u0027VM %s is not created as it is not found in\u0027"},{"line_number":656,"context_line":"                            \u0027Arista DB\u0027) % device_id"},{"line_number":657,"context_line":"                    LOG.info(msg)"},{"line_number":658,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FOr8%3D","line":655,"in_reply_to":"AAAAS3%2F%2FQpg%3D","updated":"2013-10-02 23:15:38.000000000","message":"Done","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"d58c530c5a8eaf41c06a46d0845101e7dad12171","unresolved":false,"context_lines":[{"line_number":657,"context_line":"                    LOG.info(msg)"},{"line_number":658,"context_line":""},{"line_number":659,"context_line":"    def update_port_precommit(self, context):"},{"line_number":660,"context_line":"        \"\"\"At the moment we only support port name change"},{"line_number":661,"context_line":""},{"line_number":662,"context_line":"        Any other change to port is not supported at this time."},{"line_number":663,"context_line":"        We do not store the port names, therefore, no DB store"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FQpQ%3D","line":660,"updated":"2013-10-01 11:47:48.000000000","message":"PEP257 nits.  put period at end of summary line on L660, L673.","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"1921e87394319b86df4029ea28972d74eaff90ab","unresolved":false,"context_lines":[{"line_number":657,"context_line":"                    LOG.info(msg)"},{"line_number":658,"context_line":""},{"line_number":659,"context_line":"    def update_port_precommit(self, context):"},{"line_number":660,"context_line":"        \"\"\"At the moment we only support port name change"},{"line_number":661,"context_line":""},{"line_number":662,"context_line":"        Any other change to port is not supported at this time."},{"line_number":663,"context_line":"        We do not store the port names, therefore, no DB store"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAS3%2F%2FOrw%3D","line":660,"in_reply_to":"AAAAS3%2F%2FQpQ%3D","updated":"2013-10-02 23:15:38.000000000","message":"Done","commit_id":"104f49e5bd77045f5abde44ff01b56618a6ba2f3"},{"author":{"_account_id":6694,"name":"rcurran","email":"rcurran@cisco.com","username":"rcurran"},"change_message_id":"27723507fc4a9f4dcb11e68c88f8b4427c943f67","unresolved":false,"context_lines":[{"line_number":73,"context_line":"        :param port_name: Name of the port - for display purposes"},{"line_number":74,"context_line":"        :param device_owner: Device owner - e.g. compute or network:dhcp"},{"line_number":75,"context_line":"        \"\"\""},{"line_number":76,"context_line":"        if device_owner \u003d\u003d \u0027network:dhcp\u0027:"},{"line_number":77,"context_line":"            self.plug_dhcp_port_into_network(vm_id,"},{"line_number":78,"context_line":"                                             host_id,"},{"line_number":79,"context_line":"                                             port_id,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FKwc%3D","line":76,"updated":"2013-10-03 01:29:18.000000000","message":"consider using DEVICE_OWNER_DHCP from\ncommon/constants.py","commit_id":"91fa02e4682470c13226583a51ae639279d048b9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"009e84895f59153b6dc967672381702f9514b9ba","unresolved":false,"context_lines":[{"line_number":634,"context_line":""},{"line_number":635,"context_line":"        # device_id and device_owner are set on VM boot"},{"line_number":636,"context_line":"        is_vm_boot \u003d device_id and device_owner"},{"line_number":637,"context_line":"        if host and is_vm_boot:"},{"line_number":638,"context_line":"            port_id \u003d port[\u0027id\u0027]"},{"line_number":639,"context_line":"            port_name \u003d port[\u0027name\u0027]"},{"line_number":640,"context_line":"            network_id \u003d port[\u0027network_id\u0027]"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FJ3I%3D","line":637,"updated":"2013-10-03 12:01:42.000000000","message":"Consider that L637-666 are almost identical to L697-729. You may want to now, or as a future clean up refactor this into a separate function.","commit_id":"91fa02e4682470c13226583a51ae639279d048b9"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"009e84895f59153b6dc967672381702f9514b9ba","unresolved":false,"context_lines":[{"line_number":666,"context_line":"                    LOG.info(msg)"},{"line_number":667,"context_line":""},{"line_number":668,"context_line":"    def update_port_precommit(self, context):"},{"line_number":669,"context_line":"        \"\"\"At the moment we only support port name change."},{"line_number":670,"context_line":""},{"line_number":671,"context_line":"        Any other change to port is not supported at this time."},{"line_number":672,"context_line":"        We do not store the port names, therefore, no DB store"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FJ3c%3D","line":669,"updated":"2013-10-03 12:01:42.000000000","message":"Nit: The first line of the docstring for a function, should be a summary of the function (period terminated). Both this and line 682 don\u0027t provide a summary.","commit_id":"91fa02e4682470c13226583a51ae639279d048b9"},{"author":{"_account_id":6694,"name":"rcurran","email":"rcurran@cisco.com","username":"rcurran"},"change_message_id":"27723507fc4a9f4dcb11e68c88f8b4427c943f67","unresolved":false,"context_lines":[{"line_number":691,"context_line":""},{"line_number":692,"context_line":"        device_id \u003d port[\u0027device_id\u0027]"},{"line_number":693,"context_line":"        device_owner \u003d port[\u0027device_owner\u0027]"},{"line_number":694,"context_line":"        host \u003d port[\u0027binding:host_id\u0027]"},{"line_number":695,"context_line":"        is_vm_boot \u003d device_id and device_owner"},{"line_number":696,"context_line":""},{"line_number":697,"context_line":"        if host and is_vm_boot:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FKvY%3D","line":694,"updated":"2013-10-03 01:29:18.000000000","message":"consider portbindings.HOST_ID from \nextensions/portbindings.py","commit_id":"91fa02e4682470c13226583a51ae639279d048b9"},{"author":{"_account_id":6694,"name":"rcurran","email":"rcurran@cisco.com","username":"rcurran"},"change_message_id":"27723507fc4a9f4dcb11e68c88f8b4427c943f67","unresolved":false,"context_lines":[{"line_number":753,"context_line":"        \"\"\""},{"line_number":754,"context_line":"        port \u003d context.current"},{"line_number":755,"context_line":"        device_id \u003d port[\u0027device_id\u0027]"},{"line_number":756,"context_line":"        host \u003d port[\u0027binding:host_id\u0027]"},{"line_number":757,"context_line":"        port_id \u003d port[\u0027id\u0027]"},{"line_number":758,"context_line":"        network_id \u003d port[\u0027network_id\u0027]"},{"line_number":759,"context_line":"        tenant_id \u003d port[\u0027tenant_id\u0027]"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FKvQ%3D","line":756,"updated":"2013-10-03 01:29:18.000000000","message":"if you make the change above then you can do it here also.","commit_id":"91fa02e4682470c13226583a51ae639279d048b9"},{"author":{"_account_id":6694,"name":"rcurran","email":"rcurran@cisco.com","username":"rcurran"},"change_message_id":"27723507fc4a9f4dcb11e68c88f8b4427c943f67","unresolved":false,"context_lines":[{"line_number":762,"context_line":"        try:"},{"line_number":763,"context_line":"            with self.eos_sync_lock:"},{"line_number":764,"context_line":"                hostname \u003d self._host_name(host)"},{"line_number":765,"context_line":"                if device_owner \u003d\u003d \u0027network:dhcp\u0027:"},{"line_number":766,"context_line":"                    self.rpc.unplug_dhcp_port_from_network(device_id,"},{"line_number":767,"context_line":"                                                           hostname,"},{"line_number":768,"context_line":"                                                           port_id,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAS3%2F%2FKvM%3D","line":765,"updated":"2013-10-03 01:29:18.000000000","message":"same here","commit_id":"91fa02e4682470c13226583a51ae639279d048b9"}]}
