)]}'
{"neutron/plugins/ml2/drivers/mech_fslsdn.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from oslo.config import cfg"},{"line_number":22,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":23,"context_line":"from neutron.plugins.ml2 import driver_api as api"},{"line_number":24,"context_line":"from crdclient.v2_0 import client as crd_client"},{"line_number":25,"context_line":"from neutron.extensions import portbindings"},{"line_number":26,"context_line":"from neutron.common import constants"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BLJg%3D","line":24,"updated":"2014-01-29 13:30:55.000000000","message":"Alphabetical order and grouped by type per HACKING guidelines:\n\nhttp://docs.openstack.org/developer/hacking/","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"class FslsdnMechanismDriver(api.MechanismDriver):"},{"line_number":32,"context_line":"    \"\"\"Freescale Mechansim Driver for ML2 Plugin.\"\"\""},{"line_number":33,"context_line":"    "},{"line_number":34,"context_line":"    def __init__(self):"},{"line_number":35,"context_line":"        \"\"\"Initialize base class for specific L2 agent type."},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BLJ4%3D","line":33,"updated":"2014-01-29 13:30:55.000000000","message":"Looks like you need to run pep on the change set, as there are indications of tabs and whitespace at end of lines. Also, missing spacing in dicts.\n\ntox -e pep8","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    # Network Management\t"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def _prepare_crd_network(self,network,segments):"},{"line_number":55,"context_line":"\t"},{"line_number":56,"context_line":"\tcrd_network \u003d {\u0027name\u0027:network[\u0027name\u0027],"},{"line_number":57,"context_line":"                       \u0027network_type\u0027:segments[0][\u0027network_type\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BLIA%3D","line":54,"updated":"2014-01-29 13:30:55.000000000","message":"Another PEP issue with missing whitespace after commas. een in other functions in this module too.","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def _prepare_crd_network(self,network,segments):"},{"line_number":55,"context_line":"\t"},{"line_number":56,"context_line":"\tcrd_network \u003d {\u0027name\u0027:network[\u0027name\u0027],"},{"line_number":57,"context_line":"                       \u0027network_type\u0027:segments[0][\u0027network_type\u0027],"},{"line_number":58,"context_line":"                       \u0027physical_network\u0027:segments[0][\u0027physical_network\u0027],"},{"line_number":59,"context_line":"                       \u0027segmentation_id\u0027:segments[0][\u0027segmentation_id\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BLJQ%3D","line":56,"updated":"2014-01-29 13:30:55.000000000","message":"Don\u0027t need temp variable. Can just return dict.","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def create_network_postcommit(self, context):"},{"line_number":67,"context_line":"        \"\"\" Update CRD Server with the Network details  \"\"\""},{"line_number":68,"context_line":"\tmsg \u003d _(\"In create_network_postcommit...\") "},{"line_number":69,"context_line":"\tLOG.debug(msg)"},{"line_number":70,"context_line":"\t# Build the CRD Network Dictionary"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BLIY%3D","line":67,"updated":"2014-01-29 13:30:55.000000000","message":"See PEP257 on single line docstrings. Should be period terminated and eliminate whitespace. Here and other places in file.","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def create_network_postcommit(self, context):"},{"line_number":67,"context_line":"        \"\"\" Update CRD Server with the Network details  \"\"\""},{"line_number":68,"context_line":"\tmsg \u003d _(\"In create_network_postcommit...\") "},{"line_number":69,"context_line":"\tLOG.debug(msg)"},{"line_number":70,"context_line":"\t# Build the CRD Network Dictionary"},{"line_number":71,"context_line":"        network \u003d context.current"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BLHs%3D","line":68,"updated":"2014-01-29 13:30:55.000000000","message":"Temp variable not needed.","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":75,"context_line":"\tcrd_network[\u0027tenant_id\u0027] \u003d network[\u0027tenant_id\u0027]"},{"line_number":76,"context_line":"\tbody \u003d {\u0027network\u0027: crd_network}"},{"line_number":77,"context_line":"\tresponse \u003d self.crdclient.create_network(body\u003dbody).get(\u0027network\u0027)\t\t\t\t"},{"line_number":78,"context_line":"\tLOG.debug(_(\"CRD Client response \u003d\u003e %s\")% str(response))"},{"line_number":79,"context_line":"\tLOG.debug(_(\"\u003ccreate_network\u003e update sent to CRD Server.\"))"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BLI0%3D","line":78,"updated":"2014-01-29 13:30:55.000000000","message":"Can provide response as an additional arg vs using % operator. Does response need to be converted to string?\nOther places as well.","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":110,"context_line":"            crd_ipaddress \u003d fixed_ip[\u0027ip_address\u0027]"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"\t# Handling Security Groups"},{"line_number":113,"context_line":"\tcrd_sec_grps \u003d \u0027\u0027"},{"line_number":114,"context_line":"        crdgrps \u003d port[\u0027security_groups\u0027]"},{"line_number":115,"context_line":"        for crdgrp in crdgrps:"},{"line_number":116,"context_line":"            crd_sec_grps +\u003d crdgrp+ \u0027,\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BLG0%3D","line":113,"updated":"2014-01-29 13:30:55.000000000","message":"Instead of L113-116, can do:\n    crd_sec_grps \u003d \u0027,\u0027.join(port[\u0027security_groups\u0027])\n\nWill not have a trailing comma as well","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            crd_sec_grps +\u003d crdgrp+ \u0027,\u0027"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"\t# Preparing CRD Port data\t"},{"line_number":119,"context_line":"\tcrd_port \u003d {\u0027name\u0027:port[\u0027name\u0027],"},{"line_number":120,"context_line":"                      \u0027network_id\u0027:port[\u0027network_id\u0027],"},{"line_number":121,"context_line":"                      \u0027subnet_id\u0027:crd_subnet_id,"},{"line_number":122,"context_line":"                      \u0027mac_address\u0027:port[\u0027mac_address\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BLGo%3D","line":119,"updated":"2014-01-29 13:30:55.000000000","message":"temp variable not needed","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":162,"context_line":"    def _prepare_crd_subnet(self,subnet):"},{"line_number":163,"context_line":"\t"},{"line_number":164,"context_line":"\t# Handling Allocation IPs"},{"line_number":165,"context_line":"\tcrd_allocation_pools \u003d \u0027\u0027"},{"line_number":166,"context_line":"        crdpools \u003d subnet[\u0027allocation_pools\u0027]"},{"line_number":167,"context_line":"        for crdpool in crdpools:"},{"line_number":168,"context_line":"            crd_allocation_pools +\u003dcrdpool[\u0027start\u0027] + \u0027-\u0027 + crdpool[\u0027end\u0027] + \u0027,\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BLAs%3D","line":165,"updated":"2014-01-29 13:30:55.000000000","message":"crd_allocation_pools \u003d \u0027,\u0027.join([\"%s-%s\" %(p[\u0027start\u0027], p[\u0027end\u0027]) for p in subnet[\u0027allocation_pools\u0027]])\n\nfor L165-168.\n\nCan do similar for L171-174.\n\nBoth give lists w/o extra comma at end.","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":174,"context_line":"            crd_host_routes +\u003dcrdroute[\u0027destination\u0027] + \u0027-\u0027 + crdroute[\u0027nexthop\u0027] + \u0027,\u0027"},{"line_number":175,"context_line":"\t"},{"line_number":176,"context_line":"\t# Handling DNS Nameservers"},{"line_number":177,"context_line":"\tcrd_dns_nameservers \u003d \u0027\u0027"},{"line_number":178,"context_line":"        crdnameservers \u003d subnet[\u0027dns_nameservers\u0027]"},{"line_number":179,"context_line":"        for crdnameserver in crdnameservers:"},{"line_number":180,"context_line":"            crd_dns_nameservers +\u003d crdnameserver + \u0027,\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BLAg%3D","line":177,"updated":"2014-01-29 13:30:55.000000000","message":"Can use \u0027,\u0027.join(list) here too","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":180,"context_line":"            crd_dns_nameservers +\u003d crdnameserver + \u0027,\u0027"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"\t# Prepare CRD Subnet Data"},{"line_number":183,"context_line":"\tcrd_subnet \u003d {\u0027name\u0027:subnet[\u0027name\u0027],"},{"line_number":184,"context_line":"                      \u0027network_id\u0027:subnet[\u0027network_id\u0027],"},{"line_number":185,"context_line":"                      \u0027ip_version\u0027:subnet[\u0027ip_version\u0027],"},{"line_number":186,"context_line":"                      \u0027cidr\u0027:subnet[\u0027cidr\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BLAU%3D","line":183,"updated":"2014-01-29 13:30:55.000000000","message":"can remove temp var","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"}],"neutron/tests/unit/ml2/drivers/test_fslsdn_mech.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2013 OpenStack Foundation."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":"# you may not use this file except in compliance with the License."}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BK%2Fs%3D","line":1,"updated":"2014-01-29 13:30:55.000000000","message":"add 2014","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"a758a82aabf555b3668a01e9173b4ce3e20c04f2","unresolved":false,"context_lines":[{"line_number":16,"context_line":"import mock"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from neutron import context"},{"line_number":19,"context_line":"from neutron.plugins.ml2.drivers.mech_fslsdn import FslsdnMechanismDriver"},{"line_number":20,"context_line":"from neutron.tests import base"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BKPg%3D","line":19,"updated":"2014-01-29 15:47:51.000000000","message":"Since mech_fslsdn requires crcclient module, this unit test doesn\u0027t run without crcclient.\nSome sort of work around is necessary.","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    # Testing Create-Update-Delete Network Postcommit operations \t"},{"line_number":93,"context_line":"    "},{"line_number":94,"context_line":"    def _get_network_context(self):"},{"line_number":95,"context_line":"        network \u003d {\u0027id\u0027: \u0027network_1\u0027,"},{"line_number":96,"context_line":"\t\t   \u0027name\u0027 : \u0027FakeNetwork\u0027, "},{"line_number":97,"context_line":"                   \u0027tenant_id\u0027: \u0027tenant_1\u0027}"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BK90%3D","line":94,"updated":"2014-01-29 13:30:55.000000000","message":"Some suggestions...\n\nCould call this build_fake_network_context() vs _get...\n\nCould make this part of FakeNetworkContext class, maybe a factory method to build the context dict and/or the FakeNeworkContext object?\n\nDitto for other _get functions in this file.\n\nThey all seem similar, so can remove duplication by using a function to build a dict, and then individual test cases can override entries as needed.","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":115,"context_line":"\tmechanism_context \u003d self._get_network_context()"},{"line_number":116,"context_line":"\tself.dvr.create_network_postcommit \u003d mock.MagicMock(return_value \u003d True)"},{"line_number":117,"context_line":"        rtn \u003d self.dvr.create_network_postcommit(mechanism_context)"},{"line_number":118,"context_line":"        self.assertTrue(rtn,True)"},{"line_number":119,"context_line":"\t "},{"line_number":120,"context_line":"    def test_update_network_postcommit(self):"},{"line_number":121,"context_line":"        \"\"\" Test Update Network Postcommit \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BK%2Bw%3D","line":118,"updated":"2014-01-29 13:30:55.000000000","message":"Just do:\n\nself.assertTrue(self.dvr.create_network_postcommit(mechanism_context))\n\nNo \u0027True\u0027 as second arg to assert. No need for temp variable.\n\nSame on subsequent tests.","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"58ad0d9601bce67d6f41ccb2f087a50cf0c8c8f1","unresolved":false,"context_lines":[{"line_number":154,"context_line":"                             \"network_id\": \"net_1\", "},{"line_number":155,"context_line":"                             \"tenant_id\": \"tenant_1\", "},{"line_number":156,"context_line":"                             \"dns_nameservers\": [], "},{"line_number":157,"context_line":"                             \"allocation_pools\": [{\"start\": \"10.100.0.2\", \"end\": \"10.100.0.14\"}], "},{"line_number":158,"context_line":"                             \"host_routes\": [], "},{"line_number":159,"context_line":"                             \"ip_version\": 4, "},{"line_number":160,"context_line":"                             \"gateway_ip\": \"10.100.0.1\", "}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUH%2F%2BK%2Bg%3D","line":157,"updated":"2014-01-29 13:30:55.000000000","message":"PEP8 probably are exceeding 80 col line length...","commit_id":"d8ae13596d935d583c446528b658fdf6b6b25c12"}]}
