)]}'
{"dragonflow/controller/common/constants.py":[{"author":{"_account_id":23766,"name":"Dima Kuznetsov","email":"dima.kuznetsov@toganetworks.com","username":"dimak"},"change_message_id":"35719d164d2a6b456c5fe2e2e9879a7c557c7249","unresolved":false,"context_lines":[{"line_number":79,"context_line":"PRIORITY_VERY_LOW \u003d 20"},{"line_number":80,"context_line":"PRIORITY_LOW \u003d 50"},{"line_number":81,"context_line":"PRIORITY_MEDIUM \u003d 100"},{"line_number":82,"context_line":"PRIORITY_SECOND_MEDIUM \u003d 150"},{"line_number":83,"context_line":"PRIORITY_HIGH \u003d 200"},{"line_number":84,"context_line":"PRIORITY_VERY_HIGH \u003d 300"},{"line_number":85,"context_line":"PRIORITY_CT_STATE \u003d 65534"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_9c6be3f0","line":82,"range":{"start_line":82,"start_character":9,"end_line":82,"end_character":23},"updated":"2017-02-23 07:40:35.000000000","message":"I think MEDIUM_HIGH is a better name.","commit_id":"1bba841f6a0c6bcde554ad6e9b2fbd445b49f028"}],"dragonflow/controller/l2_app.py":[{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"0758f5a880e2cf0a173f0f017cd5a80811ed6ab7","unresolved":false,"context_lines":[{"line_number":140,"context_line":"        self.local_networks.clear()"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    def _install_flows_for_allowed_address_pairs(self, lport):"},{"line_number":143,"context_line":"        # TODO(yuan wei)"},{"line_number":144,"context_line":"        if not self.use_active_detection_for_allowed_address_pairs:"},{"line_number":145,"context_line":"            LOG.info(_LI(\"Only support to use active detection\""},{"line_number":146,"context_line":"                         \"for allowed address pairs for now.\"))"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_6b3b15d2","line":143,"updated":"2017-02-21 11:38:35.000000000","message":"This TODO message is incomplete.","commit_id":"1bba841f6a0c6bcde554ad6e9b2fbd445b49f028"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"0758f5a880e2cf0a173f0f017cd5a80811ed6ab7","unresolved":false,"context_lines":[{"line_number":142,"context_line":"    def _install_flows_for_allowed_address_pairs(self, lport):"},{"line_number":143,"context_line":"        # TODO(yuan wei)"},{"line_number":144,"context_line":"        if not self.use_active_detection_for_allowed_address_pairs:"},{"line_number":145,"context_line":"            LOG.info(_LI(\"Only support to use active detection\""},{"line_number":146,"context_line":"                         \"for allowed address pairs for now.\"))"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def _uninstall_flows_for_allowed_address_pairs(self, lport):"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_8b3689e5","line":145,"range":{"start_line":145,"start_character":16,"end_line":145,"end_character":20},"updated":"2017-02-21 11:38:35.000000000","message":"I think this should be debug","commit_id":"1bba841f6a0c6bcde554ad6e9b2fbd445b49f028"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"0758f5a880e2cf0a173f0f017cd5a80811ed6ab7","unresolved":false,"context_lines":[{"line_number":146,"context_line":"                         \"for allowed address pairs for now.\"))"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def _uninstall_flows_for_allowed_address_pairs(self, lport):"},{"line_number":149,"context_line":"        # TODO(yuan wei)"},{"line_number":150,"context_line":"        if not self.use_active_detection_for_allowed_address_pairs:"},{"line_number":151,"context_line":"            LOG.info(_LI(\"Only support to use active detection\""},{"line_number":152,"context_line":"                         \"for allowed address pairs for now.\"))"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_ab350ddb","line":149,"updated":"2017-02-21 11:38:35.000000000","message":"Same two comments here","commit_id":"1bba841f6a0c6bcde554ad6e9b2fbd445b49f028"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"0758f5a880e2cf0a173f0f017cd5a80811ed6ab7","unresolved":false,"context_lines":[{"line_number":939,"context_line":"        self.mod_flow(inst\u003dinst,"},{"line_number":940,"context_line":"                      table_id\u003dconst.EGRESS_EXTERNAL_TABLE,"},{"line_number":941,"context_line":"                      priority\u003dconst.PRIORITY_HIGH, match\u003dmatch)"},{"line_number":942,"context_line":""},{"line_number":943,"context_line":"    def _install_flows_for_active_port(self, active_port):"},{"line_number":944,"context_line":"        lport_id \u003d active_port.get_detected_lport_id()"},{"line_number":945,"context_line":"        lport \u003d self.db_store.get_port(lport_id)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_2ba67d10","line":942,"updated":"2017-02-21 11:38:35.000000000","message":"I think the added code from here on should be moved to the active port detection app. It is not strictly part of the L2 application, which has grown very complex and we are working to simplify and limit to its basic functions (see itamaro\u0027s conflicting patches).\n\nI think the active port detection app should both detect which port is active, and correct the flows to go to that application. These methods use almost no L2_app state, so it should work (in theory)","commit_id":"1bba841f6a0c6bcde554ad6e9b2fbd445b49f028"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"0758f5a880e2cf0a173f0f017cd5a80811ed6ab7","unresolved":false,"context_lines":[{"line_number":946,"context_line":"        if lport is None:"},{"line_number":947,"context_line":"            return"},{"line_number":948,"context_line":"        mac \u003d active_port.get_detected_mac()"},{"line_number":949,"context_line":"        ip \u003d active_port.get_ip()"},{"line_number":950,"context_line":"        port_key \u003d lport.get_unique_key()"},{"line_number":951,"context_line":"        network_id \u003d lport.get_external_value(\u0027local_network_id\u0027)"},{"line_number":952,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_0bd45945","line":949,"range":{"start_line":949,"start_character":25,"end_line":949,"end_character":31},"updated":"2017-02-21 11:38:35.000000000","message":"Can there be multiple IPs here? (i.e. when using get_ip_list)","commit_id":"1bba841f6a0c6bcde554ad6e9b2fbd445b49f028"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"0758f5a880e2cf0a173f0f017cd5a80811ed6ab7","unresolved":false,"context_lines":[{"line_number":950,"context_line":"        port_key \u003d lport.get_unique_key()"},{"line_number":951,"context_line":"        network_id \u003d lport.get_external_value(\u0027local_network_id\u0027)"},{"line_number":952,"context_line":""},{"line_number":953,"context_line":"        if self.is_install_l2_responder:"},{"line_number":954,"context_line":"            arp_responder.ArpResponder("},{"line_number":955,"context_line":"                self, network_id, ip, mac, const.ARP_TABLE, const.PRIORITY_LOW"},{"line_number":956,"context_line":"            ).add()"},{"line_number":957,"context_line":""},{"line_number":958,"context_line":"        if mac \u003d\u003d lport.get_mac():"},{"line_number":959,"context_line":"            return"},{"line_number":960,"context_line":""},{"line_number":961,"context_line":"        key \u003d (network_id, mac)"},{"line_number":962,"context_line":"        mac_refs \u003d self.allowed_address_pairs_mac_refs_list.get(key)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_cbb5e131","line":959,"range":{"start_line":953,"start_character":0,"end_line":959,"end_character":18},"updated":"2017-02-21 11:38:35.000000000","message":"Shouldn\u0027t the order of these two if blocks be reversed? If the MAC hasn\u0027t changed, isn\u0027t there already a responder installed?","commit_id":"1bba841f6a0c6bcde554ad6e9b2fbd445b49f028"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"0758f5a880e2cf0a173f0f017cd5a80811ed6ab7","unresolved":false,"context_lines":[{"line_number":962,"context_line":"        mac_refs \u003d self.allowed_address_pairs_mac_refs_list.get(key)"},{"line_number":963,"context_line":"        is_new_mac \u003d False"},{"line_number":964,"context_line":"        if mac_refs is None:"},{"line_number":965,"context_line":"            self.allowed_address_pairs_mac_refs_list[key] \u003d [ip]"},{"line_number":966,"context_line":"            is_new_mac \u003d True"},{"line_number":967,"context_line":"        elif ip not in mac_refs:"},{"line_number":968,"context_line":"            mac_refs.append(ip)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_4bf731f5","line":965,"range":{"start_line":965,"start_character":60,"end_line":965,"end_character":64},"updated":"2017-02-21 11:38:35.000000000","message":"Maybe use a set, rather than a list?","commit_id":"1bba841f6a0c6bcde554ad6e9b2fbd445b49f028"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"0758f5a880e2cf0a173f0f017cd5a80811ed6ab7","unresolved":false,"context_lines":[{"line_number":974,"context_line":"        ofproto \u003d self.ofproto"},{"line_number":975,"context_line":""},{"line_number":976,"context_line":"        # Destination classifier for this active node"},{"line_number":977,"context_line":"        match \u003d parser.OFPMatch()"},{"line_number":978,"context_line":"        match.set_metadata(network_id)"},{"line_number":979,"context_line":"        match.set_dl_dst(haddr_to_bin(mac))"},{"line_number":980,"context_line":"        actions \u003d [parser.OFPActionSetField(reg7\u003dport_key)]"},{"line_number":981,"context_line":"        action_inst \u003d parser.OFPInstructionActions("},{"line_number":982,"context_line":"            ofproto.OFPIT_APPLY_ACTIONS, actions)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_2b42fd10","line":979,"range":{"start_line":977,"start_character":0,"end_line":979,"end_character":43},"updated":"2017-02-21 11:38:35.000000000","message":"nit: Can be shortened to:\nmatch \u003d parser.OFPMatch(metadata\u003dnetwork_id, eth_dst\u003dhaddr_to_bin(mac))","commit_id":"1bba841f6a0c6bcde554ad6e9b2fbd445b49f028"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"0758f5a880e2cf0a173f0f017cd5a80811ed6ab7","unresolved":false,"context_lines":[{"line_number":990,"context_line":""},{"line_number":991,"context_line":"        if lport.get_external_value(\u0027is_local\u0027):"},{"line_number":992,"context_line":"            # Go to dispatch table according to unique metadata \u0026 mac"},{"line_number":993,"context_line":"            match \u003d parser.OFPMatch()"},{"line_number":994,"context_line":"            match.set_metadata(network_id)"},{"line_number":995,"context_line":"            match.set_dl_dst(haddr_to_bin(mac))"},{"line_number":996,"context_line":"            actions \u003d [parser.OFPActionSetField(reg7\u003dport_key)]"},{"line_number":997,"context_line":"            action_inst \u003d parser.OFPInstructionActions("},{"line_number":998,"context_line":"                ofproto.OFPIT_APPLY_ACTIONS, actions)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_0b6299ad","line":995,"range":{"start_line":993,"start_character":0,"end_line":995,"end_character":47},"updated":"2017-02-21 11:38:35.000000000","message":"Same here","commit_id":"1bba841f6a0c6bcde554ad6e9b2fbd445b49f028"},{"author":{"_account_id":23766,"name":"Dima Kuznetsov","email":"dima.kuznetsov@toganetworks.com","username":"dimak"},"change_message_id":"35719d164d2a6b456c5fe2e2e9879a7c557c7249","unresolved":false,"context_lines":[{"line_number":1002,"context_line":"            self.mod_flow("},{"line_number":1003,"context_line":"                inst\u003dinst,"},{"line_number":1004,"context_line":"                table_id\u003dconst.INGRESS_DESTINATION_PORT_LOOKUP_TABLE,"},{"line_number":1005,"context_line":"                priority\u003dconst.PRIORITY_SECOND_MEDIUM,"},{"line_number":1006,"context_line":"                match\u003dmatch)"},{"line_number":1007,"context_line":""},{"line_number":1008,"context_line":"    def _uninstall_flows_for_active_port(self, active_port):"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_dc271bc8","line":1005,"range":{"start_line":1005,"start_character":31,"end_line":1005,"end_character":53},"updated":"2017-02-23 07:40:35.000000000","message":"Why a new priority is needed here?","commit_id":"1bba841f6a0c6bcde554ad6e9b2fbd445b49f028"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"0758f5a880e2cf0a173f0f017cd5a80811ed6ab7","unresolved":false,"context_lines":[{"line_number":1003,"context_line":"                inst\u003dinst,"},{"line_number":1004,"context_line":"                table_id\u003dconst.INGRESS_DESTINATION_PORT_LOOKUP_TABLE,"},{"line_number":1005,"context_line":"                priority\u003dconst.PRIORITY_SECOND_MEDIUM,"},{"line_number":1006,"context_line":"                match\u003dmatch)"},{"line_number":1007,"context_line":""},{"line_number":1008,"context_line":"    def _uninstall_flows_for_active_port(self, active_port):"},{"line_number":1009,"context_line":"        lport_id \u003d active_port.get_detected_lport_id()"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_eb12a5b3","line":1006,"updated":"2017-02-21 11:38:35.000000000","message":"Some code in these methods can be reused from code already in this app.","commit_id":"1bba841f6a0c6bcde554ad6e9b2fbd445b49f028"}],"dragonflow/db/db_store.py":[{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"0758f5a880e2cf0a173f0f017cd5a80811ed6ab7","unresolved":false,"context_lines":[{"line_number":352,"context_line":"        return self.keys(models.AllowedAddressPairsActivePort.table_name,"},{"line_number":353,"context_line":"                         topic)"},{"line_number":354,"context_line":""},{"line_number":355,"context_line":"    def get_active_ports_by_network_id(self, network_id, topic\u003dNone):"},{"line_number":356,"context_line":"        activeports \u003d self.values("},{"line_number":357,"context_line":"            models.AllowedAddressPairsActivePort.table_name, topic)"},{"line_number":358,"context_line":"        return [activeport for activeport in activeports"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_2b84bdd2","line":355,"range":{"start_line":355,"start_character":8,"end_line":355,"end_character":38},"updated":"2017-02-21 11:38:35.000000000","message":"I am not sure this method does what it says it does. Perhaps rename to \u0027get_active_ports_by_lswitch_id\u0027?","commit_id":"1bba841f6a0c6bcde554ad6e9b2fbd445b49f028"},{"author":{"_account_id":23766,"name":"Dima Kuznetsov","email":"dima.kuznetsov@toganetworks.com","username":"dimak"},"change_message_id":"35719d164d2a6b456c5fe2e2e9879a7c557c7249","unresolved":false,"context_lines":[{"line_number":352,"context_line":"        return self.keys(models.AllowedAddressPairsActivePort.table_name,"},{"line_number":353,"context_line":"                         topic)"},{"line_number":354,"context_line":""},{"line_number":355,"context_line":"    def get_active_ports_by_network_id(self, network_id, topic\u003dNone):"},{"line_number":356,"context_line":"        activeports \u003d self.values("},{"line_number":357,"context_line":"            models.AllowedAddressPairsActivePort.table_name, topic)"},{"line_number":358,"context_line":"        return [activeport for activeport in activeports"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_1c2e13a5","line":355,"range":{"start_line":355,"start_character":8,"end_line":355,"end_character":38},"in_reply_to":"da36d5c6_2b84bdd2","updated":"2017-02-23 07:40:35.000000000","message":"+1","commit_id":"1bba841f6a0c6bcde554ad6e9b2fbd445b49f028"}],"dragonflow/tests/common/app_testing_objects.py":[{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"0758f5a880e2cf0a173f0f017cd5a80811ed6ab7","unresolved":false,"context_lines":[{"line_number":690,"context_line":"        pkt_arp_protocol \u003d pkt.get_protocol(arp.arp)"},{"line_number":691,"context_line":"        if not pkt_arp_protocol:"},{"line_number":692,"context_line":"            return False"},{"line_number":693,"context_line":"        if (not pkt_arp_protocol) or ("},{"line_number":694,"context_line":"                    pkt_arp_protocol.opcode !\u003d arp.ARP_REPLY):"},{"line_number":695,"context_line":"            return False"},{"line_number":696,"context_line":"        if self.arp_spa is not None:"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_eb60e537","line":693,"range":{"start_line":693,"start_character":11,"end_line":693,"end_character":33},"updated":"2017-02-21 11:38:35.000000000","message":"This will always be false. It\u0027s checked in 691.","commit_id":"1bba841f6a0c6bcde554ad6e9b2fbd445b49f028"}]}
