)]}'
{"neutron/tests/common/conn_testers.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"c00d8ef8a71d7e9d25e549289660bbb8d87ec6fa","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"def _validate_direction(f):"},{"line_number":31,"context_line":"    @functools.wraps(f)"},{"line_number":32,"context_line":"    def wrap(*args, **kwargs):"},{"line_number":33,"context_line":"        if \u0027direction\u0027 in kwargs:"},{"line_number":34,"context_line":"            direction \u003d kwargs[\u0027direction\u0027]"},{"line_number":35,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_837d431e","line":32,"updated":"2015-06-16 08:59:30.000000000","message":"can\u0027t you just make the signature of wrap \"wrap(self, direction, *args, **kwargs)\"?\nThen 33-36 go away","commit_id":"a5d902e685a9851b172190c744427a9dd7a10570"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"11e7626dceee3a26647560cfcaf3228684cac3a8","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"def _validate_direction(f):"},{"line_number":31,"context_line":"    @functools.wraps(f)"},{"line_number":32,"context_line":"    def wrap(*args, **kwargs):"},{"line_number":33,"context_line":"        if \u0027direction\u0027 in kwargs:"},{"line_number":34,"context_line":"            direction \u003d kwargs[\u0027direction\u0027]"},{"line_number":35,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_e3a20f4b","line":32,"in_reply_to":"fa32b979_837d431e","updated":"2015-06-16 09:05:52.000000000","message":"Yep, that\u0027s better. Thanks!","commit_id":"a5d902e685a9851b172190c744427a9dd7a10570"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"9b537521245b43f42bdf112049182e4e84e5d670","unresolved":false,"context_lines":[{"line_number":41,"context_line":"    return wrap"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"class ConnectionTester(fixtures.Fixture):"},{"line_number":45,"context_line":"    \"\"\"Base class for testers"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    This class implements API for various methods for testing connectivity. The"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_eb517d0f","line":44,"updated":"2015-06-16 12:24:14.000000000","message":"I would like to get Maru feedback on this fixture strongly coupled with PeerMachines","commit_id":"a5d902e685a9851b172190c744427a9dd7a10570"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"1d336f7d62f6d8ca06e0019b075b13de97cff04c","unresolved":false,"context_lines":[{"line_number":20,"context_line":"from neutron.openstack.common import uuidutils"},{"line_number":21,"context_line":"from neutron.tests.common import machine_fixtures"},{"line_number":22,"context_line":"from neutron.tests.common import net_helpers"},{"line_number":23,"context_line":"from neutron.tests.functional.agent.linux import helpers"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"class ConnectionTesterException(Exception):"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa32b979_31fc81b7","line":23,"updated":"2015-06-17 12:51:29.000000000","message":"I realized this dependency is weird. I think module from common package shouldn\u0027t rely on functional package.","commit_id":"da8a139473a130ce33333e8bd0be9c5966a7ed0b"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"4a28d18bce672c020abc677cad1ebb5b7bb0591d","unresolved":false,"context_lines":[{"line_number":234,"context_line":"                                             dst_port\u003dserver_port)"},{"line_number":235,"context_line":"        self._nc_testers[nc_key] \u003d nc_tester"},{"line_number":236,"context_line":"        return nc_tester"},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"    def _create_pinger(self, direction):"},{"line_number":239,"context_line":"        try:"},{"line_number":240,"context_line":"            pinger \u003d self._pingers[direction]"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_aaef28e8","line":237,"updated":"2015-06-26 16:35:40.000000000","message":"What does this have to do with the rest of the class?","commit_id":"c636f248c6a742b4f14366e2d2028df3a728ca53"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"0bde342f45a382bcab3c5a8550dec597a5c88cf0","unresolved":false,"context_lines":[{"line_number":234,"context_line":"                                             dst_port\u003dserver_port)"},{"line_number":235,"context_line":"        self._nc_testers[nc_key] \u003d nc_tester"},{"line_number":236,"context_line":"        return nc_tester"},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"    def _create_pinger(self, direction):"},{"line_number":239,"context_line":"        try:"},{"line_number":240,"context_line":"            pinger \u003d self._pingers[direction]"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_cc2409b4","line":237,"in_reply_to":"fa32b979_2ae6b8b0","updated":"2015-06-26 16:47:47.000000000","message":"Yeah but it doesn\u0027t use state from the class or share anything with the rest of the class. It can (And thus should) be split to a separate class. You could then remove that class from this patch, and move this modification + the Pinger class + the test from the next patch that actually uses the Pinger capabilities to a new, final patch. This way we could first focus on the meat of this series which is other 99% of the tests without the Pinger.","commit_id":"c636f248c6a742b4f14366e2d2028df3a728ca53"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"8ebd4f25f12cb23cbbe0f25680f4814143419e08","unresolved":false,"context_lines":[{"line_number":234,"context_line":"                                             dst_port\u003dserver_port)"},{"line_number":235,"context_line":"        self._nc_testers[nc_key] \u003d nc_tester"},{"line_number":236,"context_line":"        return nc_tester"},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"    def _create_pinger(self, direction):"},{"line_number":239,"context_line":"        try:"},{"line_number":240,"context_line":"            pinger \u003d self._pingers[direction]"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_2ae6b8b0","line":237,"in_reply_to":"fa32b979_aaef28e8","updated":"2015-06-26 16:42:21.000000000","message":"It instantiates Pinger instance or takes one that was already instantiated with the same parameters. It\u0027s analogical to _create_nc_tester.","commit_id":"c636f248c6a742b4f14366e2d2028df3a728ca53"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"90821e65f9519408090c4232681cf48cf615974d","unresolved":false,"context_lines":[{"line_number":234,"context_line":"                                             dst_port\u003dserver_port)"},{"line_number":235,"context_line":"        self._nc_testers[nc_key] \u003d nc_tester"},{"line_number":236,"context_line":"        return nc_tester"},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"    def _create_pinger(self, direction):"},{"line_number":239,"context_line":"        try:"},{"line_number":240,"context_line":"            pinger \u003d self._pingers[direction]"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_e406ab20","line":237,"in_reply_to":"fa32b979_cc2409b4","updated":"2015-06-27 16:42:06.000000000","message":"I don\u0027t get the part of not using state of class. This is just an object composition [1]. I do get the part of introducing Pinger capabilities together :) I\u0027ll do it after first patches of this topic get merged.\n\n[1] https://en.wikipedia.org/wiki/Object_composition","commit_id":"c636f248c6a742b4f14366e2d2028df3a728ca53"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5ac19c8ebbbeb94d889cd757b86a23c319632c1f","unresolved":false,"context_lines":[{"line_number":261,"context_line":"        pinger \u003d self._create_pinger(direction)"},{"line_number":262,"context_line":"        return pinger.received"},{"line_number":263,"context_line":""},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"class OVSConnectionTester(ConnectionTester):"},{"line_number":266,"context_line":"    \"\"\"Tester with OVS bridge in the middle"},{"line_number":267,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_949e0db7","line":264,"updated":"2015-06-26 15:48:59.000000000","message":"This class is unused currently. If you don\u0027t plan on using it in future revisions of the following patch, please delete it and re-introduce it when you need it.","commit_id":"c636f248c6a742b4f14366e2d2028df3a728ca53"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"b2450b7bfd03bfc659656316d7277a802963bac0","unresolved":false,"context_lines":[{"line_number":261,"context_line":"        pinger \u003d self._create_pinger(direction)"},{"line_number":262,"context_line":"        return pinger.received"},{"line_number":263,"context_line":""},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"class OVSConnectionTester(ConnectionTester):"},{"line_number":266,"context_line":"    \"\"\"Tester with OVS bridge in the middle"},{"line_number":267,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_548645dc","line":264,"in_reply_to":"fa32b979_949e0db7","updated":"2015-06-26 15:57:45.000000000","message":"Done","commit_id":"c636f248c6a742b4f14366e2d2028df3a728ca53"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5ac19c8ebbbeb94d889cd757b86a23c319632c1f","unresolved":false,"context_lines":[{"line_number":276,"context_line":"    def setUp(self):"},{"line_number":277,"context_line":"        super(OVSConnectionTester, self).setUp()"},{"line_number":278,"context_line":"        self._bridge \u003d self.useFixture(net_helpers.OVSBridgeFixture()).bridge"},{"line_number":279,"context_line":"        self._vm, self._vm \u003d self.useFixture("},{"line_number":280,"context_line":"            machine_fixtures.PeerMachines(self._bridge)).machines"},{"line_number":281,"context_line":"        self._set_vm_port_attrs()"},{"line_number":282,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_7480294a","line":279,"updated":"2015-06-26 15:48:59.000000000","message":"I have a feeling self._vm, self._vm is wrong \u003dD","commit_id":"c636f248c6a742b4f14366e2d2028df3a728ca53"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"b2450b7bfd03bfc659656316d7277a802963bac0","unresolved":false,"context_lines":[{"line_number":276,"context_line":"    def setUp(self):"},{"line_number":277,"context_line":"        super(OVSConnectionTester, self).setUp()"},{"line_number":278,"context_line":"        self._bridge \u003d self.useFixture(net_helpers.OVSBridgeFixture()).bridge"},{"line_number":279,"context_line":"        self._vm, self._vm \u003d self.useFixture("},{"line_number":280,"context_line":"            machine_fixtures.PeerMachines(self._bridge)).machines"},{"line_number":281,"context_line":"        self._set_vm_port_attrs()"},{"line_number":282,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_745ee97a","line":279,"in_reply_to":"fa32b979_7480294a","updated":"2015-06-26 15:57:45.000000000","message":"Hehe :)","commit_id":"c636f248c6a742b4f14366e2d2028df3a728ca53"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":38,"context_line":"class ConnectionTester(fixtures.Fixture):"},{"line_number":39,"context_line":"    \"\"\"Base class for testers"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    This class implements API for various methods for testing connectivity. The"},{"line_number":42,"context_line":"    concrete implementation relies on how encapsulated resources are"},{"line_number":43,"context_line":"    configured."},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_52a7aebc","line":41,"updated":"2015-07-08 21:25:48.000000000","message":"I don\u0027t understand what this doctext means. Can you be more explicit?","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"eb6394b1911670878791a21c5d044d53e075ace3","unresolved":false,"context_lines":[{"line_number":38,"context_line":"class ConnectionTester(fixtures.Fixture):"},{"line_number":39,"context_line":"    \"\"\"Base class for testers"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    This class implements API for various methods for testing connectivity. The"},{"line_number":42,"context_line":"    concrete implementation relies on how encapsulated resources are"},{"line_number":43,"context_line":"    configured."},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_c3067d85","line":41,"in_reply_to":"ba3cc151_52a7aebc","updated":"2015-07-09 07:38:34.000000000","message":"Done","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            self.ICMP: self._test_icmp_connectivity,"},{"line_number":60,"context_line":"            self.ARP: self._test_arp_connectivity}"},{"line_number":61,"context_line":"        self._nc_testers \u003d dict()"},{"line_number":62,"context_line":"        self._pingers \u003d dict()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def cleanUp(self):"},{"line_number":65,"context_line":"        super(ConnectionTester, self).cleanUp()"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_070faa39","line":62,"updated":"2015-07-08 21:25:48.000000000","message":"Unused, you can remove this and lines 68-69.","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"eb6394b1911670878791a21c5d044d53e075ace3","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            self.ICMP: self._test_icmp_connectivity,"},{"line_number":60,"context_line":"            self.ARP: self._test_arp_connectivity}"},{"line_number":61,"context_line":"        self._nc_testers \u003d dict()"},{"line_number":62,"context_line":"        self._pingers \u003d dict()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def cleanUp(self):"},{"line_number":65,"context_line":"        super(ConnectionTester, self).cleanUp()"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_23d5e9e3","line":62,"in_reply_to":"ba3cc151_070faa39","updated":"2015-07-09 07:38:34.000000000","message":"Done","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        self._nc_testers \u003d dict()"},{"line_number":62,"context_line":"        self._pingers \u003d dict()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def cleanUp(self):"},{"line_number":65,"context_line":"        super(ConnectionTester, self).cleanUp()"},{"line_number":66,"context_line":"        for nc in self._nc_testers.values():"},{"line_number":67,"context_line":"            nc.stop_processes()"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_c778e2c6","line":64,"updated":"2015-07-08 21:25:48.000000000","message":"If you rebase on latest master you\u0027ll get this patch: https://review.openstack.org/#/c/196879/6\n\nBy Robert Collins, the author of fixtures. You\u0027ll notice he changed the only occurrence of us implementing cleanUp, by calling addCleanup in setUp instead (https://review.openstack.org/#/c/196879/6/neutron/tests/fullstack/fullstack_fixtures.py).\n\nHere you can call addCleanup(nc_tester.stop_processes) in line 235.\nEven better, NetcatTester would inherit from fixtures.Fixture and _spawn_nc_in_namespace would call addCleanup with stop_processes. Then line 235 simply changes to self.useFixture(NetcatTester(...))","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"eb6394b1911670878791a21c5d044d53e075ace3","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        self._nc_testers \u003d dict()"},{"line_number":62,"context_line":"        self._pingers \u003d dict()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def cleanUp(self):"},{"line_number":65,"context_line":"        super(ConnectionTester, self).cleanUp()"},{"line_number":66,"context_line":"        for nc in self._nc_testers.values():"},{"line_number":67,"context_line":"            nc.stop_processes()"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_63f69190","line":64,"in_reply_to":"ba3cc151_c778e2c6","updated":"2015-07-09 07:38:34.000000000","message":"Done","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":68,"context_line":"        for pinger in self._pingers.values():"},{"line_number":69,"context_line":"            pinger.stop()"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    @property"},{"line_number":72,"context_line":"    def vm_namespace(self):"},{"line_number":73,"context_line":"        return self._vm.namespace"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_2d7acff1","line":71,"updated":"2015-07-08 21:25:48.000000000","message":"I don\u0027t see what these accessors are buying you. I\u0027d recommend removing the underscore from _vm and _peer, and keeping only the MAC address getter/setter. The rest are just direct attribute accessors?","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"eb6394b1911670878791a21c5d044d53e075ace3","unresolved":false,"context_lines":[{"line_number":68,"context_line":"        for pinger in self._pingers.values():"},{"line_number":69,"context_line":"            pinger.stop()"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    @property"},{"line_number":72,"context_line":"    def vm_namespace(self):"},{"line_number":73,"context_line":"        return self._vm.namespace"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_03e465a9","line":71,"in_reply_to":"ba3cc151_2d7acff1","updated":"2015-07-09 07:38:34.000000000","message":"Encapsulation. Instance of this class should only provide methods to test connectivity . Due to information needed in tests it also must provide some pieces of information held in private attributes. These attributes are unknown to the person who writes test and it doesn\u0027t matter what type these attributes are.\n\nIf you expose _vm outside of tester, the namespace will most likely be obtained by calling tester.vm.namespace. Meaning that type(vm) MUST implement namespace attribute or property. In case code changes and we start using different objects for vm simulations you will need to rewrite all tests that use ConnectionTester. If you encapsulate it to the class, you only change the implementation in the class and the way namespace is exposed outside is still the same - tester.vm_namespace","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        return self._vm.port.link.address"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    @vm_mac_address.setter"},{"line_number":92,"context_line":"    def vm_mac_addres(self, mac_address):"},{"line_number":93,"context_line":"        self._vm.mac_address \u003d mac_address"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_8d43dbae","line":92,"updated":"2015-07-08 21:25:48.000000000","message":"addres -\u003e address.","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"eb6394b1911670878791a21c5d044d53e075ace3","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        return self._vm.port.link.address"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    @vm_mac_address.setter"},{"line_number":92,"context_line":"    def vm_mac_addres(self, mac_address):"},{"line_number":93,"context_line":"        self._vm.mac_address \u003d mac_address"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_23ec09ba","line":92,"in_reply_to":"ba3cc151_8d43dbae","updated":"2015-07-09 07:38:34.000000000","message":"Done","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":112,"context_line":"        try:"},{"line_number":113,"context_line":"            nc_tester.test_connectivity()"},{"line_number":114,"context_line":"        except RuntimeError:"},{"line_number":115,"context_line":"            raise ConnectionTesterException("},{"line_number":116,"context_line":"                \"%s connection over %s protocol with %s source port and \""},{"line_number":117,"context_line":"                \"%s destination port can\u0027t be established.\" % ("},{"line_number":118,"context_line":"                    direction, protocol, src_port, dst_port))"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_8da43b4b","line":115,"updated":"2015-07-08 21:25:48.000000000","message":"Would it be helpful to add the RuntimeError exception message?","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"eb6394b1911670878791a21c5d044d53e075ace3","unresolved":false,"context_lines":[{"line_number":112,"context_line":"        try:"},{"line_number":113,"context_line":"            nc_tester.test_connectivity()"},{"line_number":114,"context_line":"        except RuntimeError:"},{"line_number":115,"context_line":"            raise ConnectionTesterException("},{"line_number":116,"context_line":"                \"%s connection over %s protocol with %s source port and \""},{"line_number":117,"context_line":"                \"%s destination port can\u0027t be established.\" % ("},{"line_number":118,"context_line":"                    direction, protocol, src_port, dst_port))"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_633d312a","line":115,"in_reply_to":"ba3cc151_8da43b4b","updated":"2015-07-09 07:38:34.000000000","message":"I don\u0027t see any benefit in that, it\u0027s most likely something like \"No output in 5 seconds\". But whatever.","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":129,"context_line":"            net_helpers.assert_ping(src_namespace, ip_address)"},{"line_number":130,"context_line":"        except RuntimeError:"},{"line_number":131,"context_line":"            raise ConnectionTesterException("},{"line_number":132,"context_line":"                \"ICMP packets can\u0027t get from %s namespace to %s address\" % ("},{"line_number":133,"context_line":"                    src_namespace, ip_address))"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def _test_arp_connectivity(self, direction, protocol, src_port, dst_port):"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_4d507332","line":132,"updated":"2015-07-08 21:25:48.000000000","message":"Can you add the source IP address?","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"eb6394b1911670878791a21c5d044d53e075ace3","unresolved":false,"context_lines":[{"line_number":129,"context_line":"            net_helpers.assert_ping(src_namespace, ip_address)"},{"line_number":130,"context_line":"        except RuntimeError:"},{"line_number":131,"context_line":"            raise ConnectionTesterException("},{"line_number":132,"context_line":"                \"ICMP packets can\u0027t get from %s namespace to %s address\" % ("},{"line_number":133,"context_line":"                    src_namespace, ip_address))"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"    def _test_arp_connectivity(self, direction, protocol, src_port, dst_port):"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_1e17da45","line":132,"in_reply_to":"ba3cc151_4d507332","updated":"2015-07-09 07:38:34.000000000","message":"You mean by parsing \u0027ip r get ip_address\u0027? Note that theoretically in namespace can be more addresses or interfaces that will make vm_ip_address or peer_ip_address not valid source of information.","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":138,"context_line":"            net_helpers.assert_arping(src_namespace, ip_address)"},{"line_number":139,"context_line":"        except RuntimeError:"},{"line_number":140,"context_line":"            raise ConnectionTesterException("},{"line_number":141,"context_line":"                \"ARP queries to %s address have no response from %s namespace\""},{"line_number":142,"context_line":"                % (src_namespace, ip_address))"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    @_validate_direction"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_6d55371c","line":141,"updated":"2015-07-08 21:25:48.000000000","message":"The variables are switched here (It should be first address, then namespace).","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"eb6394b1911670878791a21c5d044d53e075ace3","unresolved":false,"context_lines":[{"line_number":138,"context_line":"            net_helpers.assert_arping(src_namespace, ip_address)"},{"line_number":139,"context_line":"        except RuntimeError:"},{"line_number":140,"context_line":"            raise ConnectionTesterException("},{"line_number":141,"context_line":"                \"ARP queries to %s address have no response from %s namespace\""},{"line_number":142,"context_line":"                % (src_namespace, ip_address))"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    @_validate_direction"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_3e3dfec3","line":141,"in_reply_to":"ba3cc151_6d55371c","updated":"2015-07-09 07:38:34.000000000","message":"Done","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        testing_method \u003d self._protocol_to_method[protocol]"},{"line_number":148,"context_line":"        testing_method(direction, protocol, src_port, dst_port)"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    def assert_no_connection(self, direction, protocol, src_port\u003dNone,"},{"line_number":151,"context_line":"                             dst_port\u003dNone):"},{"line_number":152,"context_line":"        try:"},{"line_number":153,"context_line":"            self.assert_connection(direction, protocol, src_port, dst_port)"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_52d9ee55","line":150,"updated":"2015-07-08 21:25:48.000000000","message":"@_validate_direction?","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"eb6394b1911670878791a21c5d044d53e075ace3","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        testing_method \u003d self._protocol_to_method[protocol]"},{"line_number":148,"context_line":"        testing_method(direction, protocol, src_port, dst_port)"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    def assert_no_connection(self, direction, protocol, src_port\u003dNone,"},{"line_number":151,"context_line":"                             dst_port\u003dNone):"},{"line_number":152,"context_line":"        try:"},{"line_number":153,"context_line":"            self.assert_connection(direction, protocol, src_port, dst_port)"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_c3df5d0b","line":150,"in_reply_to":"ba3cc151_52d9ee55","updated":"2015-07-09 07:38:34.000000000","message":"Not needed as it\u0027s validated on L153","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        if nc_tester and nc_tester.is_established:"},{"line_number":175,"context_line":"            nc_tester.test_connectivity()"},{"line_number":176,"context_line":"        else:"},{"line_number":177,"context_line":"            raise ConnectionTesterException("},{"line_number":178,"context_line":"                \u0027%s connection with protocol %s, source port %s and \u0027"},{"line_number":179,"context_line":"                \u0027destination port %s is not established\u0027 % ("},{"line_number":180,"context_line":"                    direction, protocol, src_port, dst_port))"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_787413fd","line":177,"updated":"2015-07-08 21:25:48.000000000","message":"What if you called assert_established_connection but never created a netcat tester? This would be an error on part of the test writer but this exception would mask it. Can you raise an exception if nc_tester is None after line 173?","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"eb6394b1911670878791a21c5d044d53e075ace3","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        if nc_tester and nc_tester.is_established:"},{"line_number":175,"context_line":"            nc_tester.test_connectivity()"},{"line_number":176,"context_line":"        else:"},{"line_number":177,"context_line":"            raise ConnectionTesterException("},{"line_number":178,"context_line":"                \u0027%s connection with protocol %s, source port %s and \u0027"},{"line_number":179,"context_line":"                \u0027destination port %s is not established\u0027 % ("},{"line_number":180,"context_line":"                    direction, protocol, src_port, dst_port))"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_de797294","line":177,"in_reply_to":"ba3cc151_787413fd","updated":"2015-07-09 07:38:34.000000000","message":"Done","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":179,"context_line":"                \u0027destination port %s is not established\u0027 % ("},{"line_number":180,"context_line":"                    direction, protocol, src_port, dst_port))"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"    def assert_no_established_connection(self, direction, protocol,"},{"line_number":183,"context_line":"                                         src_port\u003dNone, dst_port\u003dNone):"},{"line_number":184,"context_line":"        try:"},{"line_number":185,"context_line":"            self.assert_established_connection(direction, protocol, src_port,"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_12436614","line":182,"updated":"2015-07-08 21:25:48.000000000","message":"@_validate_direction?","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"eb6394b1911670878791a21c5d044d53e075ace3","unresolved":false,"context_lines":[{"line_number":179,"context_line":"                \u0027destination port %s is not established\u0027 % ("},{"line_number":180,"context_line":"                    direction, protocol, src_port, dst_port))"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"    def assert_no_established_connection(self, direction, protocol,"},{"line_number":183,"context_line":"                                         src_port\u003dNone, dst_port\u003dNone):"},{"line_number":184,"context_line":"        try:"},{"line_number":185,"context_line":"            self.assert_established_connection(direction, protocol, src_port,"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_e3e2a1d4","line":182,"in_reply_to":"ba3cc151_12436614","updated":"2015-07-09 07:38:34.000000000","message":"Not needed as it\u0027s validated on L185","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":203,"context_line":"    def _create_nc_tester(self, direction, protocol, src_port, dst_port):"},{"line_number":204,"context_line":"        \"\"\"Create netcat tester"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"        If there already exists a netcat tester that has established"},{"line_number":207,"context_line":"        connection, return this one. This is handy for testing established"},{"line_number":208,"context_line":"        connections"},{"line_number":209,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_8d719b0e","line":206,"updated":"2015-07-08 21:25:48.000000000","message":"The doctext doesn\u0027t match the code (You actually raise an exception instead of return the pre-existing connection tester).","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"eb6394b1911670878791a21c5d044d53e075ace3","unresolved":false,"context_lines":[{"line_number":203,"context_line":"    def _create_nc_tester(self, direction, protocol, src_port, dst_port):"},{"line_number":204,"context_line":"        \"\"\"Create netcat tester"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"        If there already exists a netcat tester that has established"},{"line_number":207,"context_line":"        connection, return this one. This is handy for testing established"},{"line_number":208,"context_line":"        connections"},{"line_number":209,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_9e6f6ac3","line":206,"in_reply_to":"ba3cc151_8d719b0e","updated":"2015-07-09 07:38:34.000000000","message":"Done","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":215,"context_line":"                \u0027destination port %s is already established\u0027 % ("},{"line_number":216,"context_line":"                    direction, protocol, src_port, dst_port))"},{"line_number":217,"context_line":""},{"line_number":218,"context_line":"        if direction \u003d\u003d self.INGRESS:"},{"line_number":219,"context_line":"            client_ns \u003d self.peer_namespace"},{"line_number":220,"context_line":"            server_ns \u003d self.vm_namespace"},{"line_number":221,"context_line":"            server_addr \u003d self.vm_ip_address"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_5837cffe","line":218,"updated":"2015-07-08 21:25:48.000000000","message":"No action required / styling choice:\n\nclient_ns, server_ns, server_addr \u003d (self.peer_namespace, self.vm_namespace, self.vm_ip_address) if direction \u003d\u003d self.INGRESS else (self.vm_namespace, self.peer_namespace, self.peer_ip_address)","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"eb6394b1911670878791a21c5d044d53e075ace3","unresolved":false,"context_lines":[{"line_number":215,"context_line":"                \u0027destination port %s is already established\u0027 % ("},{"line_number":216,"context_line":"                    direction, protocol, src_port, dst_port))"},{"line_number":217,"context_line":""},{"line_number":218,"context_line":"        if direction \u003d\u003d self.INGRESS:"},{"line_number":219,"context_line":"            client_ns \u003d self.peer_namespace"},{"line_number":220,"context_line":"            server_ns \u003d self.vm_namespace"},{"line_number":221,"context_line":"            server_addr \u003d self.vm_ip_address"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_fe60f6d0","line":218,"in_reply_to":"ba3cc151_5837cffe","updated":"2015-07-09 07:38:34.000000000","message":"I find my style more readable :)","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":247,"context_line":"    def setUp(self):"},{"line_number":248,"context_line":"        super(LinuxBridgeConnectionTester, self).setUp()"},{"line_number":249,"context_line":"        self._bridge \u003d self.useFixture(net_helpers.LinuxBridgeFixture()).bridge"},{"line_number":250,"context_line":"        self._peer, self._vm \u003d self.useFixture("},{"line_number":251,"context_line":"            machine_fixtures.PeerMachines(self._bridge)).machines"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_2d2def45","line":250,"updated":"2015-07-08 21:25:48.000000000","message":"If you move self._peer and self._vm to the base class this will make so much more sense. Looking back at PS1 the OVSBridgeConnectionTester defined the same two VMs using the same PeerMachines fixture so it doesn\u0027t look like different ConnectionTester parent classes will differ here. With how you currently have it, ConnectionTester is essentially a mixin (It relies on self._vm which is defined here) and that\u0027s really hard to read and should be avoided unless you have a really good reason which alludes me.\n\nI would consider going one step further and collapsing this class with ConnectionTester for now and separating it out when you have more than a single kind of tester. On that note, what do you want to accomplish with the OVSConnectionTester? I thought that you couldn\u0027t apply iptable rules to OVS internal ports, which is why we have the linux bridge added per VM with the default Nova OVS hybrid VIF driver.","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"eb6394b1911670878791a21c5d044d53e075ace3","unresolved":false,"context_lines":[{"line_number":247,"context_line":"    def setUp(self):"},{"line_number":248,"context_line":"        super(LinuxBridgeConnectionTester, self).setUp()"},{"line_number":249,"context_line":"        self._bridge \u003d self.useFixture(net_helpers.LinuxBridgeFixture()).bridge"},{"line_number":250,"context_line":"        self._peer, self._vm \u003d self.useFixture("},{"line_number":251,"context_line":"            machine_fixtures.PeerMachines(self._bridge)).machines"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_be7b4ef4","line":250,"in_reply_to":"ba3cc151_2d2def45","updated":"2015-07-09 07:38:34.000000000","message":"The reason is to keep OOP concept of specification [1]. When you use inheritance you should be specific in implementation when going down and generalize when going up. I avoided inheritance like OVSConnTester(LBConnTester) by purpose because it doesn\u0027t make sense at all for OVS to be depending on LB.\n\nSo the reason why I\u0027m doing all this stuff is because I\u0027m currently working on OVS firewall driver. ConnectionTester and LinuxBridgeConnectionTester don\u0027t do anything with iptables and so OVSConnectionTester won\u0027t do. Definition of firewall rules is placed in the test itself and this class just validates that connectivity is as expected. Finally, once OVSFirewallDriver is born, we\u0027ll just provide to testing class firewall driver and connection tester and the same testsuite will run with ovs firewall and iptables firewall. Does it make sense? I pushed \u0027all-in-one-patch\u0027 patch just to provide the idea to Miguel some time ago - https://review.openstack.org/#/c/185920/1/neutron/tests/functional/agent/linux/test_iptables_firewall.py\n\nThe aim is to make sure we reached parity with iptables driver.\n\n[1] https://sourcemaking.com/uml/modeling-it-systems/structural-view/generalization-specialization-and-inheritance","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":254,"context_line":"    def bridge_namespace(self):"},{"line_number":255,"context_line":"        return self._bridge.namespace"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    @property"},{"line_number":258,"context_line":"    def vm_port_id(self):"},{"line_number":259,"context_line":"        return net_helpers.VethFixture.get_peer_name(self._vm.port.name)"},{"line_number":260,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_cde56309","line":257,"updated":"2015-07-08 21:25:48.000000000","message":"This method as well.","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"}],"neutron/tests/common/machine_fixtures.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"6a83965895a206f80b939bbd28ffbd03072cff16","unresolved":false,"context_lines":[{"line_number":87,"context_line":"    def ip(self):"},{"line_number":88,"context_line":"        return self.ip_cidr.partition(\u0027/\u0027)[0]"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    @ip.setter"},{"line_number":91,"context_line":"    def ip(self, ip_address):"},{"line_number":92,"context_line":"        self.port.addr.add(ip_address)"},{"line_number":93,"context_line":"        self.port.addr.delete(self.ip_cidr)"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_212a452d","line":90,"updated":"2015-06-16 10:18:09.000000000","message":"ip_cidr not ip\n\ni am not fully sure it\u0027s a good idea to perform implictly an action when machine.ip/mac_address \u003d","commit_id":"a5d902e685a9851b172190c744427a9dd7a10570"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"43aa7c44f44ab58c25e0bd3d25dc57ed4fa27bce","unresolved":false,"context_lines":[{"line_number":87,"context_line":"    def ip(self):"},{"line_number":88,"context_line":"        return self.ip_cidr.partition(\u0027/\u0027)[0]"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    @ip.setter"},{"line_number":91,"context_line":"    def ip(self, ip_address):"},{"line_number":92,"context_line":"        self.port.addr.add(ip_address)"},{"line_number":93,"context_line":"        self.port.addr.delete(self.ip_cidr)"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_1c00b1a9","line":90,"in_reply_to":"fa32b979_212a452d","updated":"2015-06-16 10:49:14.000000000","message":"ip_cidr, correct.\n\nIsn\u0027t the action the meaning of having setter? What do you suggest? Assign ip/mac and then call something like apply_changes()?","commit_id":"a5d902e685a9851b172190c744427a9dd7a10570"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"beca96d1c5634dac91e72534ffb1266e6f2d00c4","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    @ip_cidr.setter"},{"line_number":66,"context_line":"    def ip_cidr(self, ip_cidr):"},{"line_number":67,"context_line":"        self.port.addr.add(ip_cidr)"},{"line_number":68,"context_line":"        self.port.addr.delete(self._ip_cidr)"},{"line_number":69,"context_line":"        self._ip_cidr \u003d ip_cidr"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_93177844","line":68,"updated":"2015-07-08 21:25:48.000000000","message":"Probably delete first? Maybe even flush then add.","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"eb6394b1911670878791a21c5d044d53e075ace3","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    @ip_cidr.setter"},{"line_number":66,"context_line":"    def ip_cidr(self, ip_cidr):"},{"line_number":67,"context_line":"        self.port.addr.add(ip_cidr)"},{"line_number":68,"context_line":"        self.port.addr.delete(self._ip_cidr)"},{"line_number":69,"context_line":"        self._ip_cidr \u003d ip_cidr"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":9,"id":"ba3cc151_3e289e99","line":68,"in_reply_to":"ba3cc151_93177844","updated":"2015-07-09 07:38:34.000000000","message":"I don\u0027t think order matters. IIUC it just calls \u0027ip a add ip_addr\u0027 and \u0027ip a del ip_addr\u0027 commands.","commit_id":"9fcb1370c985265f2e18846b1a8da209a3a8a157"}]}
