)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d2ffb7535ee155e974ee4c71a32c69b738691d37","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    interfaces as aliases of the ns-XXX interface where the DHCP"},{"line_number":34,"context_line":"    context and IP subnet are defined."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"  - The ns-XXX interface (for the DHCP port) is created as a dummy"},{"line_number":37,"context_line":"    interface."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"  - The ns-XXX interface is given the subnet\u0027s gateway IP address,"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3a50d1a3_4c150447","line":36,"updated":"2015-07-22 04:31:40.000000000","message":"Is there some mnemonic that could help me remember that ns- means the dhcp dummy port?  Or, is there a better letter combination?","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"04fce2af397406049fdd7efb27941c0d8dfd90e5","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    interfaces as aliases of the ns-XXX interface where the DHCP"},{"line_number":34,"context_line":"    context and IP subnet are defined."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"  - The ns-XXX interface (for the DHCP port) is created as a dummy"},{"line_number":37,"context_line":"    interface."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"  - The ns-XXX interface is given the subnet\u0027s gateway IP address,"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3a50d1a3_a800d434","line":36,"in_reply_to":"3a50d1a3_4c150447","updated":"2015-07-23 16:46:36.000000000","message":"Hmm, good question.  I guess I had \"name service\" in mind, but no idea whether that\u0027s really what was intended!\n\nI think it would work to change this prefix to anything else (in RoutedInterfaceDriver only), but probably 3 or fewer characters is best, so that we still have room for lots of the network ID.\n\nAny suggestions?  \u0027dhc\u0027, \u0027net\u0027, ...?","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"0f4912769eb19c7fb513f70f0c2ce166a54352cd","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    route is inadvertently exported via BGP to other compute"},{"line_number":45,"context_line":"    hosts (and if there are IP hops between compute hosts)."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Change-Id: I4dc5ae75f722d079a529ea1ae5f2011a3edbc84e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"3a50d1a3_fb4ae426","line":47,"updated":"2015-07-24 14:56:12.000000000","message":"Related-Bug: #1472704","commit_id":"460f2a74083787b6b92520d7a40c7490bf957e22"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"c1d51f0d26637e6f9bc487915d9958a13b4e0638","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    route is inadvertently exported via BGP to other compute"},{"line_number":45,"context_line":"    hosts (and if there are IP hops between compute hosts)."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"Change-Id: I4dc5ae75f722d079a529ea1ae5f2011a3edbc84e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"3a50d1a3_3bb5ac7d","line":47,"in_reply_to":"3a50d1a3_fb4ae426","updated":"2015-07-24 15:10:17.000000000","message":"Thanks, I\u0027ll add that.","commit_id":"460f2a74083787b6b92520d7a40c7490bf957e22"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"473d7c2b30c56d46512605230e91da909795f1e4","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  the subnet, via the dummy device; as that would obviously go"},{"line_number":40,"context_line":"  nowhere, and it causes a problem known as \u0027AS puddling\u0027 if that"},{"line_number":41,"context_line":"  route is inadvertently exported via BGP to other compute hosts (and"},{"line_number":42,"context_line":"  if there are IP hops between compute hosts)."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"Related-Bug: #1472704"},{"line_number":45,"context_line":"Change-Id: I4dc5ae75f722d079a529ea1ae5f2011a3edbc84e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"3a50d1a3_3364ace3","line":42,"updated":"2015-07-27 14:32:55.000000000","message":"Please add a reference for AS puddling for folks who don\u0027t know that term","commit_id":"6bb1389df0a446ffc09719d3cc14d2e01855aeac"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"0d27a2f1328fe39e101f9beebcbc6a1572f7ef4b","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  the subnet, via the dummy device; as that would obviously go"},{"line_number":40,"context_line":"  nowhere, and it causes a problem known as \u0027AS puddling\u0027 if that"},{"line_number":41,"context_line":"  route is inadvertently exported via BGP to other compute hosts (and"},{"line_number":42,"context_line":"  if there are IP hops between compute hosts)."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"Related-Bug: #1472704"},{"line_number":45,"context_line":"Change-Id: I4dc5ae75f722d079a529ea1ae5f2011a3edbc84e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"3a50d1a3_de722f11","line":42,"in_reply_to":"3a50d1a3_3364ace3","updated":"2015-07-27 15:02:14.000000000","message":"Thanks.  I realized I didn\u0027t actually understand this properly myself; and the only reference I could find for it was in my own team\u0027s documentation (http://docs.projectcalico.org/en/latest/l3-interconnectFabric.html) - and to be honest that is still not 100% clear to me.\n\nIn fact I think it isn\u0027t the key point anyway; so my next upload updates this bit of the commit message to say what I think is the most relevant point.","commit_id":"6bb1389df0a446ffc09719d3cc14d2e01855aeac"}],"neutron/agent/linux/dhcp.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"b272966a33c37a3a0ef7dbadb3245a386a29bf55","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        super(NetModel, self).__init__(d)"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        # If the network is routed and shared, we don\u0027t want to use"},{"line_number":109,"context_line":"        # namespaces, even if the use_namespaces setting says so."},{"line_number":110,"context_line":"        routed_shared \u003d (d.get(providernet.NETWORK_TYPE) \u003d\u003d p_const.TYPE_ROUTED"},{"line_number":111,"context_line":"                         and"},{"line_number":112,"context_line":"                         d.get(attr.SHARED))"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_e36d4405","line":109,"updated":"2015-07-21 00:57:48.000000000","message":"(facepalm)\n\nThis implicit assumption makes for a very poor design. We should figure out a way to provide a NetModel class rather doesn\u0027t mask the fact that namespaces are silently dropped in case of ROUTED networks.","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d2ffb7535ee155e974ee4c71a32c69b738691d37","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        super(NetModel, self).__init__(d)"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        # If the network is routed and shared, we don\u0027t want to use"},{"line_number":109,"context_line":"        # namespaces, even if the use_namespaces setting says so."},{"line_number":110,"context_line":"        routed_shared \u003d (d.get(providernet.NETWORK_TYPE) \u003d\u003d p_const.TYPE_ROUTED"},{"line_number":111,"context_line":"                         and"},{"line_number":112,"context_line":"                         d.get(attr.SHARED))"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_6771f9a7","line":109,"in_reply_to":"3a50d1a3_184196a9","updated":"2015-07-22 04:31:40.000000000","message":"Thinking high level and a bit off-topic from what you two are discussing...  (I don\u0027t fully understand Armando\u0027s suggestion anyway)\n\nCould a namespace still be used?  From my operator\u0027s perspective (from when I wore an operator\u0027s hat more than once a month) I would like something to isolate the management network from the tenant facing networks.  Could a namespace be used for that?  I know namespaces aren\u0027t normally used on compute hosts but with routing to a port instead of bridging it feels like it might expose the host a bit more to the network.","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"04fce2af397406049fdd7efb27941c0d8dfd90e5","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        super(NetModel, self).__init__(d)"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        # If the network is routed and shared, we don\u0027t want to use"},{"line_number":109,"context_line":"        # namespaces, even if the use_namespaces setting says so."},{"line_number":110,"context_line":"        routed_shared \u003d (d.get(providernet.NETWORK_TYPE) \u003d\u003d p_const.TYPE_ROUTED"},{"line_number":111,"context_line":"                         and"},{"line_number":112,"context_line":"                         d.get(attr.SHARED))"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_be524a65","line":109,"in_reply_to":"3a50d1a3_1f491cb7","updated":"2015-07-23 16:46:36.000000000","message":"OK, thanks, I\u0027ll do what you suggest, i.e. error if the configuration says\n\n    interface_driver \u003d RoutedInterfaceDriver\n    use_namespaces \u003d True","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"04fce2af397406049fdd7efb27941c0d8dfd90e5","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        super(NetModel, self).__init__(d)"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        # If the network is routed and shared, we don\u0027t want to use"},{"line_number":109,"context_line":"        # namespaces, even if the use_namespaces setting says so."},{"line_number":110,"context_line":"        routed_shared \u003d (d.get(providernet.NETWORK_TYPE) \u003d\u003d p_const.TYPE_ROUTED"},{"line_number":111,"context_line":"                         and"},{"line_number":112,"context_line":"                         d.get(attr.SHARED))"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_9ecd0e68","line":109,"in_reply_to":"3a50d1a3_6771f9a7","updated":"2015-07-23 16:46:36.000000000","message":"Carl - interesting point about separating the management network.  We haven\u0027t yet seen a need for that, but I can certainly imagine it in the future.\n\nI think I\u0027d like to leave the detail for this for future study, but keep it in mind to the extent of saying that it\u0027s (even more) up to the DHCP agent to know what combinations of config make sense for it, and to error when unsupported combinations are configured - per Armando\u0027s advice below.\n\nIn other words, I\u0027ll change the code for now so that it errors if interface_driver is RoutedInterfaceDriver but use_namespaces is True - but also keep in mind that there could be a useful alternative future implementation for use_namespaces \u003d True.","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"93257ba8cad7a7b84db1ba8d4aa063493db6e4b7","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        super(NetModel, self).__init__(d)"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        # If the network is routed and shared, we don\u0027t want to use"},{"line_number":109,"context_line":"        # namespaces, even if the use_namespaces setting says so."},{"line_number":110,"context_line":"        routed_shared \u003d (d.get(providernet.NETWORK_TYPE) \u003d\u003d p_const.TYPE_ROUTED"},{"line_number":111,"context_line":"                         and"},{"line_number":112,"context_line":"                         d.get(attr.SHARED))"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_1f491cb7","line":109,"in_reply_to":"3a50d1a3_6771f9a7","updated":"2015-07-23 04:02:49.000000000","message":"My apologies, after reading my comment, I see I didn\u0027t make much sense.\n\nMy point is that this class models a network, with a namespace as an key property. Now the property may or may not be set depending on the use case, defined by the users of this class. The user of this class is mainly the DHCP module classes.\n\nMaking this class aware of an ML2 TypeDriver\u0027s property kills the cohesiveness of the DHCP module [1] and it couples it greatly with ML2. That\u0027s bad, IMO.\n\nFurthermore, if the use of namespaces make no sense for routed networks, we should raise an error instead, as the class is being used against its intended behavior. This leads to ambiguous situations that can be difficult to debug.\n\nMy suggestion is to leave this class alone. Instead, the caller of this class should be aware of the constraint of not using namespaces when networks are routed, and alert the end user of misconfigurations in case of any.\n\n[1] https://en.wikipedia.org/wiki/Cohesion_(computer_science)","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"fed8438d613f989229f12139b5a7984fc922ec4b","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        super(NetModel, self).__init__(d)"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        # If the network is routed and shared, we don\u0027t want to use"},{"line_number":109,"context_line":"        # namespaces, even if the use_namespaces setting says so."},{"line_number":110,"context_line":"        routed_shared \u003d (d.get(providernet.NETWORK_TYPE) \u003d\u003d p_const.TYPE_ROUTED"},{"line_number":111,"context_line":"                         and"},{"line_number":112,"context_line":"                         d.get(attr.SHARED))"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_184196a9","line":109,"in_reply_to":"3a50d1a3_e36d4405","updated":"2015-07-21 15:01:05.000000000","message":"My understanding is that the use_namespaces setting is deprecated anyway, and that the plan is for most (or all?) reference control plane code to behave as it does now for use_namespaces \u003d True.\n\nMy - admittedly slightly generalized - interpretation of that is that use_namespaces is disappearing as a config setting because it isn\u0027t needed anymore because namespaces are reliably available, and the reference components can determine for themselves when to use them as part of what they do.  But equally, then, if there is a mode of behavior where a component chooses not to use namespaces, it can do that - and I believe that that is all that is happening here.\n\nIn terms of code then, I expect that this will quite shortly change to something like:\n\n    def __init__(self, d):\n        super(NetModel, self).__init__(d)\n\n        # If the network is routed and shared, we don\u0027t want to use\n        # namespaces.  For all other network types, we do.\n        routed_shared \u003d (d.get(providernet.NETWORK_TYPE) \u003d\u003d p_const.TYPE_ROUTED\n                         and\n                         d.get(attr.SHARED))\n\n        self._ns_name \u003d ((not routed_shared) and\n                         \"%s%s\" % (NS_PREFIX, self.id) or None)\n\nand then it will not look like we are overriding config.\n\nWhat do you think?  Is that a decent argument?  Or have I perhaps misunderstood some of your point?","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"6fc8606ed4538048921c9e7ce928ea31558fc0a1","unresolved":false,"context_lines":[{"line_number":345,"context_line":"                \u0027--bind-dynamic\u0027,"},{"line_number":346,"context_line":"                \u0027--interface\u003d%s\u0027 % self.interface_name,"},{"line_number":347,"context_line":"                \u0027--interface\u003dtap*\u0027,"},{"line_number":348,"context_line":"                \u0027--bridge-interface\u003d%s,tap*\u0027 % self.interface_name,"},{"line_number":349,"context_line":"                \u0027--except-interface\u003dlo\u0027,"},{"line_number":350,"context_line":"                \u0027--pid-file\u003d%s\u0027 % pid_file,"},{"line_number":351,"context_line":"                \u0027--dhcp-hostsfile\u003d%s\u0027 % self.get_conf_file_name(\u0027host\u0027),"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_567031dc","line":348,"updated":"2015-07-22 03:04:51.000000000","message":"A majority of the dnsmasq options are identical in both of these cases.  Keeping these two sets of options in sync if/when options are change might be problematic.    Also, the current duplication makes it less clear what the diff between the two sets actually is.  I recommend restructuring these dnsmasq parameters so that common options are not duplicated and the if/else logic only updates those options that need to be different.","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"04fce2af397406049fdd7efb27941c0d8dfd90e5","unresolved":false,"context_lines":[{"line_number":345,"context_line":"                \u0027--bind-dynamic\u0027,"},{"line_number":346,"context_line":"                \u0027--interface\u003d%s\u0027 % self.interface_name,"},{"line_number":347,"context_line":"                \u0027--interface\u003dtap*\u0027,"},{"line_number":348,"context_line":"                \u0027--bridge-interface\u003d%s,tap*\u0027 % self.interface_name,"},{"line_number":349,"context_line":"                \u0027--except-interface\u003dlo\u0027,"},{"line_number":350,"context_line":"                \u0027--pid-file\u003d%s\u0027 % pid_file,"},{"line_number":351,"context_line":"                \u0027--dhcp-hostsfile\u003d%s\u0027 % self.get_conf_file_name(\u0027host\u0027),"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_5efb0647","line":348,"in_reply_to":"3a50d1a3_567031dc","updated":"2015-07-23 16:46:36.000000000","message":"Good idea, I\u0027ll do that in my next version","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"b272966a33c37a3a0ef7dbadb3245a386a29bf55","unresolved":false,"context_lines":[{"line_number":973,"context_line":"        # setting being RoutedInterfaceDriver, so that is what we"},{"line_number":974,"context_line":"        # check for here."},{"line_number":975,"context_line":"        self.bridged_ifs \u003d (self.driver.__class__.__name__ !\u003d"},{"line_number":976,"context_line":"                           \u0027RoutedInterfaceDriver\u0027)"},{"line_number":977,"context_line":""},{"line_number":978,"context_line":"    def get_interface_name(self, network, port):"},{"line_number":979,"context_line":"        \"\"\"Return interface(device) name for use by the DHCP process.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_8302400a","line":976,"updated":"2015-07-21 00:57:48.000000000","message":"This class is pretty driver agostic, please let\u0027s keep it so.\n\nWe should strive to achieve polymorphism by avoiding sprinkling if/else all over the place.","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"93257ba8cad7a7b84db1ba8d4aa063493db6e4b7","unresolved":false,"context_lines":[{"line_number":973,"context_line":"        # setting being RoutedInterfaceDriver, so that is what we"},{"line_number":974,"context_line":"        # check for here."},{"line_number":975,"context_line":"        self.bridged_ifs \u003d (self.driver.__class__.__name__ !\u003d"},{"line_number":976,"context_line":"                           \u0027RoutedInterfaceDriver\u0027)"},{"line_number":977,"context_line":""},{"line_number":978,"context_line":"    def get_interface_name(self, network, port):"},{"line_number":979,"context_line":"        \"\"\"Return interface(device) name for use by the DHCP process.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_1ff7dc59","line":976,"in_reply_to":"3a50d1a3_47971d3a","updated":"2015-07-23 04:02:49.000000000","message":"I am thinking more along the lines of John and Carl feedbacks.","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d2ffb7535ee155e974ee4c71a32c69b738691d37","unresolved":false,"context_lines":[{"line_number":973,"context_line":"        # setting being RoutedInterfaceDriver, so that is what we"},{"line_number":974,"context_line":"        # check for here."},{"line_number":975,"context_line":"        self.bridged_ifs \u003d (self.driver.__class__.__name__ !\u003d"},{"line_number":976,"context_line":"                           \u0027RoutedInterfaceDriver\u0027)"},{"line_number":977,"context_line":""},{"line_number":978,"context_line":"    def get_interface_name(self, network, port):"},{"line_number":979,"context_line":"        \"\"\"Return interface(device) name for use by the DHCP process.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_47971d3a","line":976,"in_reply_to":"3a50d1a3_490c163b","updated":"2015-07-22 04:31:40.000000000","message":"+1  I think that is more or less what Armando is suggesting and I agree.  A little refactoring may be in order to allow clean polymorphism.","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"6fc8606ed4538048921c9e7ce928ea31558fc0a1","unresolved":false,"context_lines":[{"line_number":973,"context_line":"        # setting being RoutedInterfaceDriver, so that is what we"},{"line_number":974,"context_line":"        # check for here."},{"line_number":975,"context_line":"        self.bridged_ifs \u003d (self.driver.__class__.__name__ !\u003d"},{"line_number":976,"context_line":"                           \u0027RoutedInterfaceDriver\u0027)"},{"line_number":977,"context_line":""},{"line_number":978,"context_line":"    def get_interface_name(self, network, port):"},{"line_number":979,"context_line":"        \"\"\"Return interface(device) name for use by the DHCP process.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_490c163b","line":976,"in_reply_to":"3a50d1a3_58b71e86","updated":"2015-07-22 03:04:51.000000000","message":"My 2 cents.   I think having a bridged() method may be cleaner.   \n\nIf I am reading Armando\u0027s suggestion right...  I think his suggestion was to create a new  DeviceManagerRouted class that derives from DeviceManager and overrides those routines that it needs to instead of sprinkling if checks through out DeviceManager.","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"fed8438d613f989229f12139b5a7984fc922ec4b","unresolved":false,"context_lines":[{"line_number":973,"context_line":"        # setting being RoutedInterfaceDriver, so that is what we"},{"line_number":974,"context_line":"        # check for here."},{"line_number":975,"context_line":"        self.bridged_ifs \u003d (self.driver.__class__.__name__ !\u003d"},{"line_number":976,"context_line":"                           \u0027RoutedInterfaceDriver\u0027)"},{"line_number":977,"context_line":""},{"line_number":978,"context_line":"    def get_interface_name(self, network, port):"},{"line_number":979,"context_line":"        \"\"\"Return interface(device) name for use by the DHCP process.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_58b71e86","line":976,"in_reply_to":"3a50d1a3_8302400a","updated":"2015-07-21 15:01:05.000000000","message":"I absolutely agree that this looks like a hack.  I tried to explain this in the preceding comment, but perhaps I wasn\u0027t clear, or at least did not convince!\n\nWhat I actually did in an earlier implementation, was add this:\n\n    def bridged(self):\n        # Interfaces are normally plugged into some kind of bridge;\n        # the only exception is RoutedInterfaceDriver.  Hence return\n        # True by default here and override that in\n        # RoutedInterfaceDriver.\n        return True\n\nto LinuxInterfaceDriver, and this:\n\n    def bridged(self):\n        # Routed interfaces are not plugged into an L2 bridge.\n        return False\n\nto RoutedInterfaceDriver.\n\nWould you prefer if I put that back?","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"d2ffb7535ee155e974ee4c71a32c69b738691d37","unresolved":false,"context_lines":[{"line_number":1033,"context_line":"        for port in network.ports:"},{"line_number":1034,"context_line":"            port_device_id \u003d getattr(port, \u0027device_id\u0027, None)"},{"line_number":1035,"context_line":"            if port_device_id \u003d\u003d device_id:"},{"line_number":1036,"context_line":"                if self.bridged_ifs:"},{"line_number":1037,"context_line":"                    dhcp_enabled_subnet_ids \u003d set(subnets)"},{"line_number":1038,"context_line":"                    port_fixed_ips \u003d []"},{"line_number":1039,"context_line":"                    for fixed_ip in port.fixed_ips:"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_47db9d4f","line":1036,"updated":"2015-07-22 04:31:40.000000000","message":"nit:\n\n  Reverse the sense of if/else like this to avoid modifying some indentation:\n\n  if not self.bridge_ifs:\n      LOG....\n      dhcp_port \u003d port\n      break\n  dhcp_enabled_subnet_ids \u003d set(subnets)\n  ...\n\nMy comment might be obsolete if John\u0027s is true on L1057","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"04fce2af397406049fdd7efb27941c0d8dfd90e5","unresolved":false,"context_lines":[{"line_number":1033,"context_line":"        for port in network.ports:"},{"line_number":1034,"context_line":"            port_device_id \u003d getattr(port, \u0027device_id\u0027, None)"},{"line_number":1035,"context_line":"            if port_device_id \u003d\u003d device_id:"},{"line_number":1036,"context_line":"                if self.bridged_ifs:"},{"line_number":1037,"context_line":"                    dhcp_enabled_subnet_ids \u003d set(subnets)"},{"line_number":1038,"context_line":"                    port_fixed_ips \u003d []"},{"line_number":1039,"context_line":"                    for fixed_ip in port.fixed_ips:"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_6f8c07da","line":1036,"in_reply_to":"3a50d1a3_47db9d4f","updated":"2015-07-23 16:46:36.000000000","message":"Please see my reply below to John.","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"6fc8606ed4538048921c9e7ce928ea31558fc0a1","unresolved":false,"context_lines":[{"line_number":1054,"context_line":"                                               \u0027fixed_ips\u0027: port_fixed_ips}})"},{"line_number":1055,"context_line":"                        if not dhcp_port:"},{"line_number":1056,"context_line":"                            raise exceptions.Conflict()"},{"line_number":1057,"context_line":"                else:"},{"line_number":1058,"context_line":"                    # When the DHCP port and VM TAP interfaces are not"},{"line_number":1059,"context_line":"                    # bridged, we don\u0027t allocate a unique IP address"},{"line_number":1060,"context_line":"                    # for the DHCP port."}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_e96ac2b2","line":1057,"updated":"2015-07-22 03:04:51.000000000","message":"Indentation....  this else: leg used to go with \"if dhcp_enabled_subnet_ids ....\"  if, correct?   Isn\u0027t it still needed these too ?","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"04fce2af397406049fdd7efb27941c0d8dfd90e5","unresolved":false,"context_lines":[{"line_number":1054,"context_line":"                                               \u0027fixed_ips\u0027: port_fixed_ips}})"},{"line_number":1055,"context_line":"                        if not dhcp_port:"},{"line_number":1056,"context_line":"                            raise exceptions.Conflict()"},{"line_number":1057,"context_line":"                else:"},{"line_number":1058,"context_line":"                    # When the DHCP port and VM TAP interfaces are not"},{"line_number":1059,"context_line":"                    # bridged, we don\u0027t allocate a unique IP address"},{"line_number":1060,"context_line":"                    # for the DHCP port."}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_eff01769","line":1057,"in_reply_to":"3a50d1a3_e96ac2b2","updated":"2015-07-23 16:46:36.000000000","message":"Yes, correct, thanks.\n\nI think it will help here to separate out the finding of an existing DHCP port from the business of updating its fixed IPs.  I will create a separate prior patch to do that.","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"174bd6b4234bf15d48c9ccd1f39a620711100bdd","unresolved":false,"context_lines":[{"line_number":323,"context_line":"            bind_options \u003d ["},{"line_number":324,"context_line":"                \u0027--bind-dynamic\u0027,"},{"line_number":325,"context_line":"                \u0027--interface\u003d%s\u0027 % self.interface_name,"},{"line_number":326,"context_line":"                \u0027--interface\u003dtap*\u0027,"},{"line_number":327,"context_line":"                \u0027--bridge-interface\u003d%s,tap*\u0027 % self.interface_name,"},{"line_number":328,"context_line":"            ]"},{"line_number":329,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3a50d1a3_6f77cbd4","line":326,"updated":"2015-07-26 22:57:12.000000000","message":"Is line 325 supposed to be deleted.... since same --interface option is listed on 326.   If 325 is needed, can it be moved to common section since it is same in both if/else legs.","commit_id":"510484ba60c17655e79335010d13d953ad1d0b41"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"cede9d9fef45fa7f23f6ac04685e307e72c629e2","unresolved":false,"context_lines":[{"line_number":323,"context_line":"            bind_options \u003d ["},{"line_number":324,"context_line":"                \u0027--bind-dynamic\u0027,"},{"line_number":325,"context_line":"                \u0027--interface\u003d%s\u0027 % self.interface_name,"},{"line_number":326,"context_line":"                \u0027--interface\u003dtap*\u0027,"},{"line_number":327,"context_line":"                \u0027--bridge-interface\u003d%s,tap*\u0027 % self.interface_name,"},{"line_number":328,"context_line":"            ]"},{"line_number":329,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3a50d1a3_6244ab73","line":326,"in_reply_to":"3a50d1a3_6f77cbd4","updated":"2015-07-27 12:04:11.000000000","message":"I\u0027d prefer not to risk any possible effect of changing the order of options given to dnsmasq.  In that light, would you still favour trying to commonize that one last line?","commit_id":"510484ba60c17655e79335010d13d953ad1d0b41"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"174bd6b4234bf15d48c9ccd1f39a620711100bdd","unresolved":false,"context_lines":[{"line_number":969,"context_line":"        # setting being RoutedInterfaceDriver, so that is what we"},{"line_number":970,"context_line":"        # check for here."},{"line_number":971,"context_line":"        self.bridged_ifs \u003d (self.driver.__class__.__name__ !\u003d"},{"line_number":972,"context_line":"                           \u0027RoutedInterfaceDriver\u0027)"},{"line_number":973,"context_line":""},{"line_number":974,"context_line":"    def get_interface_name(self, network, port):"},{"line_number":975,"context_line":"        \"\"\"Return interface(device) name for use by the DHCP process.\"\"\""}],"source_content_type":"text/x-python","patch_set":8,"id":"3a50d1a3_cf461f7b","line":972,"updated":"2015-07-26 22:57:12.000000000","message":"This still feels like a hack to me.","commit_id":"510484ba60c17655e79335010d13d953ad1d0b41"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"cede9d9fef45fa7f23f6ac04685e307e72c629e2","unresolved":false,"context_lines":[{"line_number":969,"context_line":"        # setting being RoutedInterfaceDriver, so that is what we"},{"line_number":970,"context_line":"        # check for here."},{"line_number":971,"context_line":"        self.bridged_ifs \u003d (self.driver.__class__.__name__ !\u003d"},{"line_number":972,"context_line":"                           \u0027RoutedInterfaceDriver\u0027)"},{"line_number":973,"context_line":""},{"line_number":974,"context_line":"    def get_interface_name(self, network, port):"},{"line_number":975,"context_line":"        \"\"\"Return interface(device) name for use by the DHCP process.\"\"\""}],"source_content_type":"text/x-python","patch_set":8,"id":"3a50d1a3_62126b64","line":972,"in_reply_to":"3a50d1a3_cf461f7b","updated":"2015-07-27 12:04:11.000000000","message":"Absolutely, yes - I thought my recent covering comments made clear that I haven\u0027t addressed this yet.  Will be done in next upload.","commit_id":"510484ba60c17655e79335010d13d953ad1d0b41"}],"neutron/agent/linux/interface.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"b272966a33c37a3a0ef7dbadb3245a386a29bf55","unresolved":false,"context_lines":[{"line_number":422,"context_line":"                      device_name)"},{"line_number":423,"context_line":""},{"line_number":424,"context_line":""},{"line_number":425,"context_line":"class RoutedInterfaceDriver(LinuxInterfaceDriver):"},{"line_number":426,"context_line":"    \"\"\"Driver for DHCP service for routed virtual interfaces.\"\"\""},{"line_number":427,"context_line":""},{"line_number":428,"context_line":"    DEV_NAME_PREFIX \u003d \u0027ns-\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_ee20cb9d","line":425,"updated":"2015-07-21 00:57:48.000000000","message":"This can as well live outside the tree, as it can be loaded dynamically.","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"6fc8606ed4538048921c9e7ce928ea31558fc0a1","unresolved":false,"context_lines":[{"line_number":422,"context_line":"                      device_name)"},{"line_number":423,"context_line":""},{"line_number":424,"context_line":""},{"line_number":425,"context_line":"class RoutedInterfaceDriver(LinuxInterfaceDriver):"},{"line_number":426,"context_line":"    \"\"\"Driver for DHCP service for routed virtual interfaces.\"\"\""},{"line_number":427,"context_line":""},{"line_number":428,"context_line":"    DEV_NAME_PREFIX \u003d \u0027ns-\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_89d77e4a","line":425,"in_reply_to":"3a50d1a3_53acdfec","updated":"2015-07-22 03:04:51.000000000","message":"What part of the DHCP agent support has to live in-tree ?","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"04fce2af397406049fdd7efb27941c0d8dfd90e5","unresolved":false,"context_lines":[{"line_number":422,"context_line":"                      device_name)"},{"line_number":423,"context_line":""},{"line_number":424,"context_line":""},{"line_number":425,"context_line":"class RoutedInterfaceDriver(LinuxInterfaceDriver):"},{"line_number":426,"context_line":"    \"\"\"Driver for DHCP service for routed virtual interfaces.\"\"\""},{"line_number":427,"context_line":""},{"line_number":428,"context_line":"    DEV_NAME_PREFIX \u003d \u0027ns-\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_ef4c979f","line":425,"in_reply_to":"3a50d1a3_89d77e4a","updated":"2015-07-23 16:46:36.000000000","message":"Well - at least as things currently stand - all of the modifications in the DeviceManager class in dhcp.py.  But let\u0027s see.","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"fed8438d613f989229f12139b5a7984fc922ec4b","unresolved":false,"context_lines":[{"line_number":422,"context_line":"                      device_name)"},{"line_number":423,"context_line":""},{"line_number":424,"context_line":""},{"line_number":425,"context_line":"class RoutedInterfaceDriver(LinuxInterfaceDriver):"},{"line_number":426,"context_line":"    \"\"\"Driver for DHCP service for routed virtual interfaces.\"\"\""},{"line_number":427,"context_line":""},{"line_number":428,"context_line":"    DEV_NAME_PREFIX \u003d \u0027ns-\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_f87dcab1","line":425,"in_reply_to":"3a50d1a3_ee20cb9d","updated":"2015-07-21 15:01:05.000000000","message":"True - but should it?","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"b353479e1d6774e8c9707ad8c5d21711482bbedc","unresolved":false,"context_lines":[{"line_number":422,"context_line":"                      device_name)"},{"line_number":423,"context_line":""},{"line_number":424,"context_line":""},{"line_number":425,"context_line":"class RoutedInterfaceDriver(LinuxInterfaceDriver):"},{"line_number":426,"context_line":"    \"\"\"Driver for DHCP service for routed virtual interfaces.\"\"\""},{"line_number":427,"context_line":""},{"line_number":428,"context_line":"    DEV_NAME_PREFIX \u003d \u0027ns-\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_53acdfec","line":425,"in_reply_to":"3a50d1a3_f87dcab1","updated":"2015-07-21 15:05:28.000000000","message":"To add a little more...\n\nIf this was outside the tree, we\u0027d have a weird situation where half of the DHCP agent support for \u0027routed\u0027 networking was in-tree, and half was out of tree.  Surely that would be confusing and error-prone?","commit_id":"223e90167b5cbb17971a813631a62961651f554b"},{"author":{"_account_id":14615,"name":"Sergey Belous","email":"belous.py@gmail.com","username":"sbelous"},"change_message_id":"ee4d91cce0ca6dc0a3242bdd843a4f7702075dd1","unresolved":false,"context_lines":[{"line_number":416,"context_line":"    def plug_new(self, network_id, port_id, device_name, mac_address,"},{"line_number":417,"context_line":"                 bridge\u003dNone, namespace\u003dNone, prefix\u003dNone):"},{"line_number":418,"context_line":"        \"\"\"Plugin the interface.\"\"\""},{"line_number":419,"context_line":"        if not ip_lib.device_exists(device_name,"},{"line_number":420,"context_line":"                                    namespace\u003dnamespace):"},{"line_number":421,"context_line":"            ip \u003d ip_lib.IPWrapper()"},{"line_number":422,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a50d1a3_802a4f7d","line":419,"updated":"2015-07-24 14:37:05.000000000","message":"Checking that device not exist is redundant here. Method plug already include it in parent (LinuxInterfaceDriver) class.","commit_id":"460f2a74083787b6b92520d7a40c7490bf957e22"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"c1d51f0d26637e6f9bc487915d9958a13b4e0638","unresolved":false,"context_lines":[{"line_number":416,"context_line":"    def plug_new(self, network_id, port_id, device_name, mac_address,"},{"line_number":417,"context_line":"                 bridge\u003dNone, namespace\u003dNone, prefix\u003dNone):"},{"line_number":418,"context_line":"        \"\"\"Plugin the interface.\"\"\""},{"line_number":419,"context_line":"        if not ip_lib.device_exists(device_name,"},{"line_number":420,"context_line":"                                    namespace\u003dnamespace):"},{"line_number":421,"context_line":"            ip \u003d ip_lib.IPWrapper()"},{"line_number":422,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a50d1a3_dbf8484c","line":419,"in_reply_to":"3a50d1a3_802a4f7d","updated":"2015-07-24 15:10:17.000000000","message":"Thanks Sergey.  Next upload will fix this, and also other inelegancies such as using \"veth\" for a dummy interface, and appearing to possibly use a namespace.","commit_id":"460f2a74083787b6b92520d7a40c7490bf957e22"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"b7634a112d5918093e46f3ef1e50b3920b843a08","unresolved":false,"context_lines":[{"line_number":488,"context_line":"        device \u003d ip_lib.IPDevice(device_name, namespace)"},{"line_number":489,"context_line":"        try:"},{"line_number":490,"context_line":"            device.link.delete()"},{"line_number":491,"context_line":"            LOG.debug(_(\"Unplugged interface \u0027%s\u0027\"), device_name)"},{"line_number":492,"context_line":"        except RuntimeError:"},{"line_number":493,"context_line":"            LOG.error(_(\"Failed unplugging interface \u0027%s\u0027\"),"},{"line_number":494,"context_line":"                      device_name)"}],"source_content_type":"text/x-python","patch_set":13,"id":"3a50d1a3_abfc63b5","line":491,"updated":"2015-07-29 09:15:46.000000000","message":"no need to translate debug message","commit_id":"6829ef2d40266f076e2ee69ee7062e63a5b3133e"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"b7634a112d5918093e46f3ef1e50b3920b843a08","unresolved":false,"context_lines":[{"line_number":490,"context_line":"            device.link.delete()"},{"line_number":491,"context_line":"            LOG.debug(_(\"Unplugged interface \u0027%s\u0027\"), device_name)"},{"line_number":492,"context_line":"        except RuntimeError:"},{"line_number":493,"context_line":"            LOG.error(_(\"Failed unplugging interface \u0027%s\u0027\"),"},{"line_number":494,"context_line":"                      device_name)"},{"line_number":495,"context_line":""},{"line_number":496,"context_line":"    def dnsmasq_bind_options(self, device_name):"}],"source_content_type":"text/x-python","patch_set":13,"id":"3a50d1a3_6bd89b53","line":493,"updated":"2015-07-29 09:15:46.000000000","message":"use _LE() not _()","commit_id":"6829ef2d40266f076e2ee69ee7062e63a5b3133e"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"b7634a112d5918093e46f3ef1e50b3920b843a08","unresolved":false,"context_lines":[{"line_number":494,"context_line":"                      device_name)"},{"line_number":495,"context_line":""},{"line_number":496,"context_line":"    def dnsmasq_bind_options(self, device_name):"},{"line_number":497,"context_line":"        # The DHCP port and VM TAP interfaces are not bridged, so"},{"line_number":498,"context_line":"        # change the dnsmasq invocation as follows."},{"line_number":499,"context_line":"        #   --interface\u003dtap* # to listen on all TAP interfaces"},{"line_number":500,"context_line":"        #   --bind-dynamic instead of --bind-interfaces, to"}],"source_content_type":"text/x-python","patch_set":13,"id":"3a50d1a3_8bc64766","line":497,"updated":"2015-07-29 09:15:46.000000000","message":"It looks like more to a docstring than a comment","commit_id":"6829ef2d40266f076e2ee69ee7062e63a5b3133e"}],"neutron/agent/linux/ip_lib.py":[{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"352523b322c477f3f51b3b99e14dee637d11b9db","unresolved":false,"context_lines":[{"line_number":152,"context_line":"        \"\"\"Delete a virtual interface between two namespaces.\"\"\""},{"line_number":153,"context_line":"        self._as_root([], \u0027link\u0027, (\u0027del\u0027, name))"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    def add_dummy(self, name1, namespace2\u003dNone):"},{"line_number":156,"context_line":"        args \u003d [\u0027add\u0027, name1, \u0027type\u0027, \u0027dummy\u0027]"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"        if namespace2 is None:"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_f6dc3976","line":155,"updated":"2015-07-24 15:16:42.000000000","message":"Maybe some comments about what this is doing would be helpful.","commit_id":"53371f6a5a5c67683d68d0038bbca92cff141817"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"4632eb5fa0403a53001b300511cd7e95a7e808f1","unresolved":false,"context_lines":[{"line_number":152,"context_line":"        \"\"\"Delete a virtual interface between two namespaces.\"\"\""},{"line_number":153,"context_line":"        self._as_root([], \u0027link\u0027, (\u0027del\u0027, name))"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    def add_dummy(self, name1, namespace2\u003dNone):"},{"line_number":156,"context_line":"        args \u003d [\u0027add\u0027, name1, \u0027type\u0027, \u0027dummy\u0027]"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"        if namespace2 is None:"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_16ff6535","line":155,"in_reply_to":"3a50d1a3_f6dc3976","updated":"2015-07-24 15:25:50.000000000","message":"Done, + removed some unnecessary complexity here.  Thanks for the comment.","commit_id":"53371f6a5a5c67683d68d0038bbca92cff141817"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"174bd6b4234bf15d48c9ccd1f39a620711100bdd","unresolved":false,"context_lines":[{"line_number":157,"context_line":"        args \u003d [\u0027add\u0027, name, \u0027type\u0027, \u0027dummy\u0027]"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"        self._as_root(\u0027\u0027, \u0027link\u0027, tuple(args))"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"        return IPDevice(name, self.namespace)"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"    def ensure_namespace(self, name):"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a50d1a3_cf3dbfde","line":160,"updated":"2015-07-26 22:57:12.000000000","message":"Blank lines 158 and 160 not needed","commit_id":"510484ba60c17655e79335010d13d953ad1d0b41"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"cede9d9fef45fa7f23f6ac04685e307e72c629e2","unresolved":false,"context_lines":[{"line_number":157,"context_line":"        args \u003d [\u0027add\u0027, name, \u0027type\u0027, \u0027dummy\u0027]"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"        self._as_root(\u0027\u0027, \u0027link\u0027, tuple(args))"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"        return IPDevice(name, self.namespace)"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"    def ensure_namespace(self, name):"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a50d1a3_b550ab0b","line":160,"in_reply_to":"3a50d1a3_cf3dbfde","updated":"2015-07-27 12:04:11.000000000","message":"OK, will delete in next upload.","commit_id":"510484ba60c17655e79335010d13d953ad1d0b41"}]}
