)]}'
{"etc/neutron/plugins/ml2/ml2_conf_sriov.ini":[{"author":{"_account_id":6697,"name":"Sandhya Dasu","email":"sandhya.openinfra@gmail.com","username":"sadasu"},"change_message_id":"f3671d7f52c98ee6ee31300f128f219de59f0a2e","unresolved":false,"context_lines":[{"line_number":8,"context_line":"# Example: supported_vendor_pci_devs \u003d 15b3:1004, 8086:10c9"},{"line_number":9,"context_line":"#"},{"line_number":10,"context_line":"# (BoolOpt) Requires SRIOV neutron agent for port binding"},{"line_number":11,"context_line":"# agent_required \u003d True"},{"line_number":12,"context_line":""}],"source_content_type":"text/x-properties","patch_set":8,"id":"baada198_e6f9804f","line":11,"updated":"2014-07-23 14:16:42.000000000","message":"How would we handle the case where there are 2 sr-iov MDs, one needs an agent and the other doesn\u0027t? If both inherit from this class, then they will both be reading this same config variable.","commit_id":"ad96e6e38d46249c53296d94d5b07dfd04274769"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"cd71d5acbe245631485e16fd49b15f7937be64df","unresolved":false,"context_lines":[{"line_number":8,"context_line":"# Example: supported_vendor_pci_devs \u003d 15b3:1004, 8086:10c9"},{"line_number":9,"context_line":"#"},{"line_number":10,"context_line":"# (BoolOpt) Requires SRIOV neutron agent for port binding"},{"line_number":11,"context_line":"# agent_required \u003d True"},{"line_number":12,"context_line":""}],"source_content_type":"text/x-properties","patch_set":8,"id":"baada198_55d1f454","line":11,"updated":"2014-07-23 12:55:28.000000000","message":"These options should be specific to a MD that supports SR-IOV if we support deployments in which vNICs from multiple vendors are used.","commit_id":"ad96e6e38d46249c53296d94d5b07dfd04274769"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"3a83457ed65807cd84f29242fcc8aa5bd38d8e10","unresolved":false,"context_lines":[{"line_number":8,"context_line":"# Example: supported_vendor_pci_devs \u003d 15b3:1004, 8086:10c9"},{"line_number":9,"context_line":"#"},{"line_number":10,"context_line":"# (BoolOpt) Requires SRIOV neutron agent for port binding"},{"line_number":11,"context_line":"# agent_required \u003d True"},{"line_number":12,"context_line":""}],"source_content_type":"text/x-properties","patch_set":8,"id":"baada198_920ab777","line":11,"in_reply_to":"baada198_e6f9804f","updated":"2014-07-23 18:32:41.000000000","message":"Not sure what do you mean. The option is for this specific MD. It\u0027s generic MD for SRIOV embedded switch NICs. Other MD will use other settings.  Let\u0027s continue this discussion on IRC.","commit_id":"ad96e6e38d46249c53296d94d5b07dfd04274769"}],"neutron/plugins/ml2/drivers/mech_agent.py":[{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"3b0cf13a22dc31557052a42c1f423942cc189691","unresolved":false,"context_lines":[{"line_number":171,"context_line":""},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"@six.add_metaclass(ABCMeta)"},{"line_number":174,"context_line":"class SriovAgentMechanismDriverBase(SimpleAgentMechanismDriverBase):"},{"line_number":175,"context_line":"    \"\"\"Base class for SRIOV drivers using an L2 agent."},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    The SriovAgentMechanismDriverBase provides common code for"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAVn%2F%2FhFE%3D","line":174,"updated":"2014-03-05 16:42:59.000000000","message":"A couple of reasons that I feel strongly that for SR-IOV MDs, it should inherit from the MechanismDriver:\n1. further calls should only be made after it\u0027s verified that the port is under the MD\u0027s control. If the port\u0027s vnic-type and vendor-info doesn\u0027t match, then there is no point to continue the processing. Especially, the host_agents call is not necessary.\n2. vif_details can only be fully populated during bind_port() time. \n\nAlternatively, the AgentMechanismDriverBase can be enhanced to include vendor_info, which just seems to be awkward.","commit_id":"ff8b41d1a28a2574b6e6a68635f9b8970509fccb"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"fbc937179cf3db06b6ae92d06437bd728320bb17","unresolved":false,"context_lines":[{"line_number":171,"context_line":""},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"@six.add_metaclass(ABCMeta)"},{"line_number":174,"context_line":"class SriovAgentMechanismDriverBase(SimpleAgentMechanismDriverBase):"},{"line_number":175,"context_line":"    \"\"\"Base class for SRIOV drivers using an L2 agent."},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    The SriovAgentMechanismDriverBase provides common code for"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAVn%2F%2FYnQ%3D","line":174,"in_reply_to":"AAAAVn%2F%2FYvA%3D","updated":"2014-03-06 13:30:22.000000000","message":"I probably miss something, but I do take into account the heterogeneous environment. For now can use Mellanox MD and OVS even on the same host. What I mean by my comments, that for the Agent based SR-IOV MD, it has to add very few code lines (just checking the pci_vendor_info and setting vif_details). The rest is already taken care of by AgentBaseMD class. I think I tend to agree it makes sense that MD without agent should be directly derived from MechanisnDriver. We probably may reuse biding:profile parsing with respect to SR-IOV details code.\nWould like to see Bob\u0027s insight on this.","commit_id":"ff8b41d1a28a2574b6e6a68635f9b8970509fccb"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"dcf85ead6faa82c972e526cf655b802f048ab9cb","unresolved":false,"context_lines":[{"line_number":171,"context_line":""},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"@six.add_metaclass(ABCMeta)"},{"line_number":174,"context_line":"class SriovAgentMechanismDriverBase(SimpleAgentMechanismDriverBase):"},{"line_number":175,"context_line":"    \"\"\"Base class for SRIOV drivers using an L2 agent."},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    The SriovAgentMechanismDriverBase provides common code for"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAVn%2F%2FYvA%3D","line":174,"in_reply_to":"AAAAVn%2F%2FaDM%3D","updated":"2014-03-06 13:06:45.000000000","message":"I agree with you for a cloud with identical hardware (for example all nodes with mlnx). I think that we are covering other cases as well, such as nodes with vNICs from different vendors. \n\nKeep in mind that mulitple MDs (either with SR-IOV or without SR-IOV support) can be configured and run in the same time. \n\nAre you suggesting that MDs without an agent use a different Base class, or directly inherit from MechanismDriver?","commit_id":"ff8b41d1a28a2574b6e6a68635f9b8970509fccb"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"c2fda0ac9fefcb9ec7cd7f89dcfd41e16124910a","unresolved":false,"context_lines":[{"line_number":171,"context_line":""},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"@six.add_metaclass(ABCMeta)"},{"line_number":174,"context_line":"class SriovAgentMechanismDriverBase(SimpleAgentMechanismDriverBase):"},{"line_number":175,"context_line":"    \"\"\"Base class for SRIOV drivers using an L2 agent."},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    The SriovAgentMechanismDriverBase provides common code for"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAVn%2F%2FaDM%3D","line":174,"in_reply_to":"AAAAVn%2F%2FhFE%3D","updated":"2014-03-06 09:19:24.000000000","message":"I think maybe there is a difference between Agent based and not Agent based MDs, and the only common code is to check the PCI vendor info. For Agent based MD, all checks are required and order does not make any difference. Agent based MDF can enjoy all the common code already found in the Base class.","commit_id":"ff8b41d1a28a2574b6e6a68635f9b8970509fccb"},{"author":{"_account_id":6697,"name":"Sandhya Dasu","email":"sandhya.openinfra@gmail.com","username":"sadasu"},"change_message_id":"369fbce4abc179a202386d70287861f8ba769e2b","unresolved":false,"context_lines":[{"line_number":183,"context_line":"    supported pci vendor_id:product_id to __init__()."},{"line_number":184,"context_line":"    \"\"\""},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"    def __init__(self, agent_type, vif_type, vif_details,"},{"line_number":187,"context_line":"                 supported_vnic_types\u003d[portbindings.VNIC_DIRECT,"},{"line_number":188,"context_line":"                                       portbindings.VNIC_MACVTAP],"},{"line_number":189,"context_line":"                 supported_pci_vendor_info\u003d[]):"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAVn%2F%2FhLQ%3D","line":186,"updated":"2014-03-05 16:32:28.000000000","message":"The sr-iov based ML2 mech driver does not know of the vif_details at init time. vif_details is based on  binding:profile that is available only at the time the port is bound.","commit_id":"ff8b41d1a28a2574b6e6a68635f9b8970509fccb"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"65c381a7b8b399c51bcfe7e52b0698c3f528fe83","unresolved":false,"context_lines":[{"line_number":183,"context_line":"    supported pci vendor_id:product_id to __init__()."},{"line_number":184,"context_line":"    \"\"\""},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"    def __init__(self, agent_type, vif_type, vif_details,"},{"line_number":187,"context_line":"                 supported_vnic_types\u003d[portbindings.VNIC_DIRECT,"},{"line_number":188,"context_line":"                                       portbindings.VNIC_MACVTAP],"},{"line_number":189,"context_line":"                 supported_pci_vendor_info\u003d[]):"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAVn%2F%2FhHo%3D","line":186,"in_reply_to":"AAAAVn%2F%2FhLQ%3D","updated":"2014-03-05 16:41:36.000000000","message":"Agree. Was in hurry to provide reference code.\nI think it should pass none for vif_details and call into specific MD for \u0027populate_vif_details\u0027. I\u0027ll upload the fix by tomorrow","commit_id":"ff8b41d1a28a2574b6e6a68635f9b8970509fccb"}],"neutron/plugins/ml2/drivers/mech_sriov/mech_driver.py":[{"author":{"_account_id":12051,"name":"loy","email":"loywolfe@gmail.com"},"change_message_id":"b8f65112a4ed79c03d43be769198fb7453f3e491","unresolved":false,"context_lines":[{"line_number":29,"context_line":"sriov_opts \u003d ["},{"line_number":30,"context_line":"    cfg.ListOpt(\u0027supported_pci_vendor_devs\u0027,"},{"line_number":31,"context_line":"               default\u003d[\u002715b3:1004\u0027],"},{"line_number":32,"context_line":"               help\u003d_(\"Supported PCI vendor devices\")),"},{"line_number":33,"context_line":"    cfg.BoolOpt(\u0027agent_required\u0027,"},{"line_number":34,"context_line":"                default\u003dFalse,"},{"line_number":35,"context_line":"                help\u003d_(\"SRIOV neutron agent is required for port binding\")),"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_e0de363d","line":32,"updated":"2014-07-15 03:07:31.000000000","message":"does this mean that we need to update this mech driver each time we want to add a new type of NIC?\n\ncan we remove any device specific code here, and have a real vendor agnostic general \"VEB NIC\"?","commit_id":"cc19d96592dd86091a7d021fd982b48ab3f21fbd"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"a6dfe41ba895ce9826bb295e1cd9833b1a8ec329","unresolved":false,"context_lines":[{"line_number":29,"context_line":"sriov_opts \u003d ["},{"line_number":30,"context_line":"    cfg.ListOpt(\u0027supported_pci_vendor_devs\u0027,"},{"line_number":31,"context_line":"               default\u003d[\u002715b3:1004\u0027],"},{"line_number":32,"context_line":"               help\u003d_(\"Supported PCI vendor devices\")),"},{"line_number":33,"context_line":"    cfg.BoolOpt(\u0027agent_required\u0027,"},{"line_number":34,"context_line":"                default\u003dFalse,"},{"line_number":35,"context_line":"                help\u003d_(\"SRIOV neutron agent is required for port binding\")),"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_26ff6635","line":32,"in_reply_to":"baada198_e0de363d","updated":"2014-07-15 05:18:06.000000000","message":"Yes for both questions.","commit_id":"cc19d96592dd86091a7d021fd982b48ab3f21fbd"},{"author":{"_account_id":12051,"name":"loy","email":"loywolfe@gmail.com"},"change_message_id":"b8f65112a4ed79c03d43be769198fb7453f3e491","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    cfg.BoolOpt(\u0027agent_required\u0027,"},{"line_number":34,"context_line":"                default\u003dFalse,"},{"line_number":35,"context_line":"                help\u003d_(\"SRIOV neutron agent is required for port binding\")),"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"]"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"cfg.CONF.register_opts(sriov_opts, \"ml2_sriov\")"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_8091fa48","line":36,"updated":"2014-07-15 03:07:31.000000000","message":"agent is preferred set to true by default. vlan and qos should be set by neutron agent, but not nova vif agent. In normal mode nova vif just set local vlan in br-int, but provider vlan is set by neutron agent","commit_id":"cc19d96592dd86091a7d021fd982b48ab3f21fbd"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"a6dfe41ba895ce9826bb295e1cd9833b1a8ec329","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    cfg.BoolOpt(\u0027agent_required\u0027,"},{"line_number":34,"context_line":"                default\u003dFalse,"},{"line_number":35,"context_line":"                help\u003d_(\"SRIOV neutron agent is required for port binding\")),"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"]"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"cfg.CONF.register_opts(sriov_opts, \"ml2_sriov\")"}],"source_content_type":"text/x-python","patch_set":6,"id":"baada198_e6a00e44","line":36,"in_reply_to":"baada198_8091fa48","updated":"2014-07-15 05:18:06.000000000","message":"Agree, will set the default to true","commit_id":"cc19d96592dd86091a7d021fd982b48ab3f21fbd"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bb79ee5745e8a2a174e591123a36443ca3519a60","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"sriov_opts \u003d ["},{"line_number":30,"context_line":"    cfg.ListOpt(\u0027supported_pci_vendor_devs\u0027,"},{"line_number":31,"context_line":"               default\u003d[\u002715b3:1004\u0027, \u00278086:10c9\u0027],"},{"line_number":32,"context_line":"               help\u003d_(\"Supported PCI vendor devices\")),"},{"line_number":33,"context_line":"    cfg.BoolOpt(\u0027agent_required\u0027,"},{"line_number":34,"context_line":"                default\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_61fb08be","line":31,"updated":"2014-07-22 00:49:12.000000000","message":"It is better to have a comment on the default value of this config option. It is not clear what 15b3 or 8086 mean to folks not familiar with PCI devices.","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"10b22193dcaabdbb850abe0b4b40118a0e358a0c","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"sriov_opts \u003d ["},{"line_number":30,"context_line":"    cfg.ListOpt(\u0027supported_pci_vendor_devs\u0027,"},{"line_number":31,"context_line":"               default\u003d[\u002715b3:1004\u0027, \u00278086:10c9\u0027],"},{"line_number":32,"context_line":"               help\u003d_(\"Supported PCI vendor devices\")),"},{"line_number":33,"context_line":"    cfg.BoolOpt(\u0027agent_required\u0027,"},{"line_number":34,"context_line":"                default\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_3ec91126","line":31,"in_reply_to":"baada198_61fb08be","updated":"2014-07-22 14:56:40.000000000","message":"Done","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"237fe3cb52c676ae5e882fb578ad99d5e32f3b9a","unresolved":false,"context_lines":[{"line_number":39,"context_line":"cfg.CONF.register_opts(sriov_opts, \"ml2_sriov\")"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"class SriovNicSwitchMechanismDriver(mech.AgentMechanismDriverBase):"},{"line_number":43,"context_line":"    \"\"\"Attach to networks using SriovNicSwitch L2 agent."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    The SriovNicSwitchMechanismDriver integrates the ml2 plugin with the"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_e59c9a10","line":42,"updated":"2014-07-21 17:36:09.000000000","message":"My understanding to AgentMechanismDriverBase:\n  -- it provides a common implementation for the method bind_port()\n  -- it provides an abstract method try_to_bind_segment_for_agent()\n\nThe new class SriovNicSwitchMechanismDriver has its own implementation of bind_port() and ignores try_to_bind_segment_for_agent() completely. Therefore, I failed to see why it inherits from AGentMechanismDriverBase.","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"5aa69eabfc545d08e4dfb1575efd15c6a164b879","unresolved":false,"context_lines":[{"line_number":39,"context_line":"cfg.CONF.register_opts(sriov_opts, \"ml2_sriov\")"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"class SriovNicSwitchMechanismDriver(mech.AgentMechanismDriverBase):"},{"line_number":43,"context_line":"    \"\"\"Attach to networks using SriovNicSwitch L2 agent."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    The SriovNicSwitchMechanismDriver integrates the ml2 plugin with the"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_fc126f5f","line":42,"in_reply_to":"baada198_e59c9a10","updated":"2014-07-21 18:26:19.000000000","message":"I tend to agree. This mechanism driver evolved to optionally require agent, since there are vendor NICs that may not support updates for bound VF (like Intel NIC that does not support VF state settings). In such case there is no need to require live agent on compute node.","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"237fe3cb52c676ae5e882fb578ad99d5e32f3b9a","unresolved":false,"context_lines":[{"line_number":108,"context_line":"                    for segment in context.network.network_segments:"},{"line_number":109,"context_line":"                        if self.check_segment_for_agent(segment, agent):"},{"line_number":110,"context_line":"                            LOG.debug(\"Bound using segment: %s\", segment)"},{"line_number":111,"context_line":"                            bound_segment \u003d segment"},{"line_number":112,"context_line":"                else:"},{"line_number":113,"context_line":"                    LOG.warning(_(\"Attempting to bind with dead agent: %s\"),"},{"line_number":114,"context_line":"                                agent)"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_4b1c7713","line":111,"updated":"2014-07-21 17:36:09.000000000","message":"break out?","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"5aa69eabfc545d08e4dfb1575efd15c6a164b879","unresolved":false,"context_lines":[{"line_number":108,"context_line":"                    for segment in context.network.network_segments:"},{"line_number":109,"context_line":"                        if self.check_segment_for_agent(segment, agent):"},{"line_number":110,"context_line":"                            LOG.debug(\"Bound using segment: %s\", segment)"},{"line_number":111,"context_line":"                            bound_segment \u003d segment"},{"line_number":112,"context_line":"                else:"},{"line_number":113,"context_line":"                    LOG.warning(_(\"Attempting to bind with dead agent: %s\"),"},{"line_number":114,"context_line":"                                agent)"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_5cb6fb3e","line":111,"in_reply_to":"baada198_4b1c7713","updated":"2014-07-21 18:26:19.000000000","message":"Done","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"237fe3cb52c676ae5e882fb578ad99d5e32f3b9a","unresolved":false,"context_lines":[{"line_number":112,"context_line":"                else:"},{"line_number":113,"context_line":"                    LOG.warning(_(\"Attempting to bind with dead agent: %s\"),"},{"line_number":114,"context_line":"                                agent)"},{"line_number":115,"context_line":"                    return"},{"line_number":116,"context_line":"        else:"},{"line_number":117,"context_line":"            for segment in context.network.network_segments:"},{"line_number":118,"context_line":"                if self.check_segment(segment):"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_0bdeff3d","line":115,"updated":"2014-07-21 17:36:09.000000000","message":"\u0027return\u0027 should be removed","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"5aa69eabfc545d08e4dfb1575efd15c6a164b879","unresolved":false,"context_lines":[{"line_number":112,"context_line":"                else:"},{"line_number":113,"context_line":"                    LOG.warning(_(\"Attempting to bind with dead agent: %s\"),"},{"line_number":114,"context_line":"                                agent)"},{"line_number":115,"context_line":"                    return"},{"line_number":116,"context_line":"        else:"},{"line_number":117,"context_line":"            for segment in context.network.network_segments:"},{"line_number":118,"context_line":"                if self.check_segment(segment):"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_f758c8fa","line":115,"in_reply_to":"baada198_0bdeff3d","updated":"2014-07-21 18:26:19.000000000","message":"Done","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"237fe3cb52c676ae5e882fb578ad99d5e32f3b9a","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        else:"},{"line_number":117,"context_line":"            for segment in context.network.network_segments:"},{"line_number":118,"context_line":"                if self.check_segment(segment):"},{"line_number":119,"context_line":"                    bound_segment \u003d segment"},{"line_number":120,"context_line":"                    LOG.debug(\"Bound using segment: %s\", segment)"},{"line_number":121,"context_line":"        # get here is all validations are successful"},{"line_number":122,"context_line":"        context.set_binding(bound_segment[api.ID],"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_858bdebe","line":119,"updated":"2014-07-21 17:36:09.000000000","message":"break out?","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"5aa69eabfc545d08e4dfb1575efd15c6a164b879","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        else:"},{"line_number":117,"context_line":"            for segment in context.network.network_segments:"},{"line_number":118,"context_line":"                if self.check_segment(segment):"},{"line_number":119,"context_line":"                    bound_segment \u003d segment"},{"line_number":120,"context_line":"                    LOG.debug(\"Bound using segment: %s\", segment)"},{"line_number":121,"context_line":"        # get here is all validations are successful"},{"line_number":122,"context_line":"        context.set_binding(bound_segment[api.ID],"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_9c833355","line":119,"in_reply_to":"baada198_858bdebe","updated":"2014-07-21 18:26:19.000000000","message":"Done","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"237fe3cb52c676ae5e882fb578ad99d5e32f3b9a","unresolved":false,"context_lines":[{"line_number":121,"context_line":"        # get here is all validations are successful"},{"line_number":122,"context_line":"        context.set_binding(bound_segment[api.ID],"},{"line_number":123,"context_line":"                            self.vif_type,"},{"line_number":124,"context_line":"                            self.get_vif_details(context, segment),"},{"line_number":125,"context_line":"                            constants.PORT_STATUS_ACTIVE)"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"    def try_to_bind_segment_for_agent(self, context, segment, agent):"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_c5c076e2","line":124,"updated":"2014-07-21 17:36:09.000000000","message":"should be bound_segment?","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"5aa69eabfc545d08e4dfb1575efd15c6a164b879","unresolved":false,"context_lines":[{"line_number":121,"context_line":"        # get here is all validations are successful"},{"line_number":122,"context_line":"        context.set_binding(bound_segment[api.ID],"},{"line_number":123,"context_line":"                            self.vif_type,"},{"line_number":124,"context_line":"                            self.get_vif_details(context, segment),"},{"line_number":125,"context_line":"                            constants.PORT_STATUS_ACTIVE)"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"    def try_to_bind_segment_for_agent(self, context, segment, agent):"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_513184eb","line":124,"in_reply_to":"baada198_c5c076e2","updated":"2014-07-21 18:26:19.000000000","message":"Done","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"9987def329a2705f2a723138fc02d03cd1e85dff","unresolved":false,"context_lines":[{"line_number":124,"context_line":"                            self.get_vif_details(context, segment),"},{"line_number":125,"context_line":"                            constants.PORT_STATUS_ACTIVE)"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"    def try_to_bind_segment_for_agent(self, context, segment, agent):"},{"line_number":128,"context_line":"        pass"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def check_segment_for_agent(self, segment, agent):"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_9dc08a4b","line":127,"updated":"2014-07-21 20:22:52.000000000","message":"As noted above, there doesn\u0027t seem to be any need for using the base agent mechanism driver and this method.","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"10b22193dcaabdbb850abe0b4b40118a0e358a0c","unresolved":false,"context_lines":[{"line_number":124,"context_line":"                            self.get_vif_details(context, segment),"},{"line_number":125,"context_line":"                            constants.PORT_STATUS_ACTIVE)"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"    def try_to_bind_segment_for_agent(self, context, segment, agent):"},{"line_number":128,"context_line":"        pass"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def check_segment_for_agent(self, segment, agent):"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_e14a9cac","line":127,"in_reply_to":"baada198_9dc08a4b","updated":"2014-07-22 14:56:40.000000000","message":"Done","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"237fe3cb52c676ae5e882fb578ad99d5e32f3b9a","unresolved":false,"context_lines":[{"line_number":140,"context_line":"                  {\u0027segment\u0027: segment, \u0027mappings\u0027: mappings})"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"        if self.check_segment(segment):"},{"line_number":143,"context_line":"            return segment[api.PHYSICAL_NETWORK] in mappings"},{"line_number":144,"context_line":"        else:"},{"line_number":145,"context_line":"            return False"},{"line_number":146,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_9661523b","line":143,"updated":"2014-07-21 17:36:09.000000000","message":"I failed to see why this check is needed when a L2 agent is required to support a type of sr-iov vNIC. When nova scheduler makes the decision on the host, it makes sure that the host supports this physical network based on the whitelist. \n\nIn the case of SR-IOV, an agent is only needed when the type of vNIC requires it to bring up the port or to provision the vNIC outside the means of libvirt. In that case, it only needs to check that there is an L2 agent running on that host. Do we support multiple l2 agents running on a single host, with each supporting different physical networks?","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"5aa69eabfc545d08e4dfb1575efd15c6a164b879","unresolved":false,"context_lines":[{"line_number":140,"context_line":"                  {\u0027segment\u0027: segment, \u0027mappings\u0027: mappings})"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"        if self.check_segment(segment):"},{"line_number":143,"context_line":"            return segment[api.PHYSICAL_NETWORK] in mappings"},{"line_number":144,"context_line":"        else:"},{"line_number":145,"context_line":"            return False"},{"line_number":146,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_9cbb33e4","line":143,"in_reply_to":"baada198_9661523b","updated":"2014-07-21 18:26:19.000000000","message":"The l2 agent is required to apply port updates, like admin state change or in the future QoS updates. If deployment requires agent, port binding should not be allowed without appropriate l2 agent","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"237fe3cb52c676ae5e882fb578ad99d5e32f3b9a","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        if self.check_segment(segment):"},{"line_number":143,"context_line":"            return segment[api.PHYSICAL_NETWORK] in mappings"},{"line_number":144,"context_line":"        else:"},{"line_number":145,"context_line":"            return False"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"    def check_segment(self, segment):"},{"line_number":148,"context_line":"        \"\"\"Check if a segment is valid for this MechanismDriver."}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_36696625","line":145,"updated":"2014-07-21 17:36:09.000000000","message":"it can be simplified as:\n return self.check_segment(segment) and segment[api.PHYSICAL_NETWORK] in mappings","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"5aa69eabfc545d08e4dfb1575efd15c6a164b879","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        if self.check_segment(segment):"},{"line_number":143,"context_line":"            return segment[api.PHYSICAL_NETWORK] in mappings"},{"line_number":144,"context_line":"        else:"},{"line_number":145,"context_line":"            return False"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"    def check_segment(self, segment):"},{"line_number":148,"context_line":"        \"\"\"Check if a segment is valid for this MechanismDriver."}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_1ccf2380","line":145,"in_reply_to":"baada198_36696625","updated":"2014-07-21 18:26:19.000000000","message":"Done","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":12051,"name":"loy","email":"loywolfe@gmail.com"},"change_message_id":"779a159f9d00221faeec5824d6bfe5dc39a1a347","unresolved":false,"context_lines":[{"line_number":33,"context_line":"                      \"Repository. Default enables support for Intel \""},{"line_number":34,"context_line":"                      \"and Mellanox SR-IOV capable NICs\")),"},{"line_number":35,"context_line":"    cfg.BoolOpt(\u0027agent_required\u0027,"},{"line_number":36,"context_line":"                default\u003dFalse,"},{"line_number":37,"context_line":"                help\u003d_(\"SRIOV neutron agent is required for port binding\")),"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_ec8d05d5","line":36,"updated":"2014-07-23 00:12:23.000000000","message":"not changed to true yet","commit_id":"ad96e6e38d46249c53296d94d5b07dfd04274769"},{"author":{"_account_id":12051,"name":"loy","email":"loywolfe@gmail.com"},"change_message_id":"d8266903f1ab3b0cb633a59c96996d8da08a94b2","unresolved":false,"context_lines":[{"line_number":33,"context_line":"                      \"Repository. Default enables support for Intel \""},{"line_number":34,"context_line":"                      \"and Mellanox SR-IOV capable NICs\")),"},{"line_number":35,"context_line":"    cfg.BoolOpt(\u0027agent_required\u0027,"},{"line_number":36,"context_line":"                default\u003dFalse,"},{"line_number":37,"context_line":"                help\u003d_(\"SRIOV neutron agent is required for port binding\")),"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_5da3e442","line":36,"in_reply_to":"baada198_6f2ab530","updated":"2014-07-23 09:48:53.000000000","message":"Yes. In many cases it can already work very well without any vendor specific information.","commit_id":"ad96e6e38d46249c53296d94d5b07dfd04274769"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"c50373f0eaa40495cd8ebf5dff0fb6a3ef6bcdd4","unresolved":false,"context_lines":[{"line_number":33,"context_line":"                      \"Repository. Default enables support for Intel \""},{"line_number":34,"context_line":"                      \"and Mellanox SR-IOV capable NICs\")),"},{"line_number":35,"context_line":"    cfg.BoolOpt(\u0027agent_required\u0027,"},{"line_number":36,"context_line":"                default\u003dFalse,"},{"line_number":37,"context_line":"                help\u003d_(\"SRIOV neutron agent is required for port binding\")),"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_6f2ab530","line":36,"in_reply_to":"baada198_77a9b1dc","updated":"2014-07-23 07:59:25.000000000","message":"Do you mean to allow sort of \u0027any nic should be valid\u0027 option?\nMeaning, when MD checks if should bind this port, it should skip pci_info check?","commit_id":"ad96e6e38d46249c53296d94d5b07dfd04274769"},{"author":{"_account_id":12051,"name":"loy","email":"loywolfe@gmail.com"},"change_message_id":"95c5a6f1b508648a3be192409d948f98b893eaca","unresolved":false,"context_lines":[{"line_number":33,"context_line":"                      \"Repository. Default enables support for Intel \""},{"line_number":34,"context_line":"                      \"and Mellanox SR-IOV capable NICs\")),"},{"line_number":35,"context_line":"    cfg.BoolOpt(\u0027agent_required\u0027,"},{"line_number":36,"context_line":"                default\u003dFalse,"},{"line_number":37,"context_line":"                help\u003d_(\"SRIOV neutron agent is required for port binding\")),"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_77a9b1dc","line":36,"in_reply_to":"baada198_e601996e","updated":"2014-07-23 06:10:25.000000000","message":"it\u0027s ok.\n\nanother little issue: there may be some cases that user don\u0027t care NIC vendor, they just treat them as \"general NICs\". So, it\u0027s better that the default supported_pci_vendor_dev include an extra \"general\" string obj besides mellanox \u0026 intel. If no match found when binding, then general is applied.","commit_id":"ad96e6e38d46249c53296d94d5b07dfd04274769"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"c1473c79fbd7c1b3a97420f97998b05b884e1702","unresolved":false,"context_lines":[{"line_number":33,"context_line":"                      \"Repository. Default enables support for Intel \""},{"line_number":34,"context_line":"                      \"and Mellanox SR-IOV capable NICs\")),"},{"line_number":35,"context_line":"    cfg.BoolOpt(\u0027agent_required\u0027,"},{"line_number":36,"context_line":"                default\u003dFalse,"},{"line_number":37,"context_line":"                help\u003d_(\"SRIOV neutron agent is required for port binding\")),"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_e601996e","line":36,"in_reply_to":"baada198_ec8d05d5","updated":"2014-07-23 05:25:57.000000000","message":"Sorry,  I missed pushing the response to this on previous patch set.\nSince Agent implementation is separated into different commit, I think it makes sense to keep defaults that will allow the solution to function properly. The default maybe changed as part of the commit containing agent implementation. \nWhat do you think?","commit_id":"ad96e6e38d46249c53296d94d5b07dfd04274769"},{"author":{"_account_id":6697,"name":"Sandhya Dasu","email":"sandhya.openinfra@gmail.com","username":"sadasu"},"change_message_id":"f3671d7f52c98ee6ee31300f128f219de59f0a2e","unresolved":false,"context_lines":[{"line_number":41,"context_line":"cfg.CONF.register_opts(sriov_opts, \"ml2_sriov\")"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"class SriovNicSwitchMechanismDriver(api.MechanismDriver):"},{"line_number":45,"context_line":"    \"\"\"Mechanism Driver for SR-IOV capable NIC based switching."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    The SriovNicSwitchMechanismDriver integrates the ml2 plugin with the"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_db56152b","line":44,"updated":"2014-07-23 14:16:42.000000000","message":"I realized that you moved away from AgentMechanismDriverBase because it provided a default implementation for bind_port() and other agent based functions.\n\nDid you consider inheriting from SimpleAgentMechanismDriverBase? That way this class can have its own implementation for bind_port() and try_to_bind_segment_for_agent().","commit_id":"ad96e6e38d46249c53296d94d5b07dfd04274769"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"3a83457ed65807cd84f29242fcc8aa5bd38d8e10","unresolved":false,"context_lines":[{"line_number":41,"context_line":"cfg.CONF.register_opts(sriov_opts, \"ml2_sriov\")"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"class SriovNicSwitchMechanismDriver(api.MechanismDriver):"},{"line_number":45,"context_line":"    \"\"\"Mechanism Driver for SR-IOV capable NIC based switching."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    The SriovNicSwitchMechanismDriver integrates the ml2 plugin with the"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_039d7b66","line":44,"in_reply_to":"baada198_db56152b","updated":"2014-07-23 18:32:41.000000000","message":"Yes, I considered and changed it. Please follow previous patch sets and comments. If you have further questions, let\u0027s continue on IRC.","commit_id":"ad96e6e38d46249c53296d94d5b07dfd04274769"}],"neutron/plugins/ml2/drivers/mech_sriov_nic_switch.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4adeb595fdbc3668aab252b8845628d1f9995038","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    sriovNicSwitch agent to be running on the port\u0027s host, and that agent"},{"line_number":38,"context_line":"    to have connectivity to at least one segment of the port\u0027s"},{"line_number":39,"context_line":"    network."},{"line_number":40,"context_line":"    \"\"\""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def __init__(self,"},{"line_number":43,"context_line":"                 agent_type\u003dconstants.AGENT_TYPE_NIC_SWITCH,"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_8b739414","line":40,"updated":"2014-06-09 09:09:17.000000000","message":"Question: SRIOV NIC switch agent is a null agent which only reports its state and consumes RPC message from the plugin. My question is when the port status is set to ACTIVE. It is required to make nova event notification mechanism works when launching a VM.\n\nIn usual agent-based mech implementation, the agent calls update_device_up RPC method and when the plugin receives the message the port status is set to ACTIVE. In controller-based MDs like ODL, MD is responsible to set the port status to ACITVE.\n\nI would like to know how the port status is maintained in this MD.","commit_id":"ffcd92b7395e3ee8cdf54e8d364536b799e1630d"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"f8c84661e2f8d17220dd38153e8df3b307799c8d","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    sriovNicSwitch agent to be running on the port\u0027s host, and that agent"},{"line_number":38,"context_line":"    to have connectivity to at least one segment of the port\u0027s"},{"line_number":39,"context_line":"    network."},{"line_number":40,"context_line":"    \"\"\""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def __init__(self,"},{"line_number":43,"context_line":"                 agent_type\u003dconstants.AGENT_TYPE_NIC_SWITCH,"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_7cf0ccc9","line":40,"in_reply_to":"1ae5cdf2_8b739414","updated":"2014-06-09 10:35:59.000000000","message":"This code is under the development and will be uploaded soon including the real agent handling of Port state UP/DOWN changes.\nFor the state of the port upon creation, it will follow the controller-based MDs pattern and start in ACTIVE state.","commit_id":"ffcd92b7395e3ee8cdf54e8d364536b799e1630d"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4adeb595fdbc3668aab252b8845628d1f9995038","unresolved":false,"context_lines":[{"line_number":45,"context_line":"                 vif_details\u003d{portbindings.CAP_PORT_FILTER: False},"},{"line_number":46,"context_line":"                 supported_vnic_types\u003d[portbindings.VNIC_DIRECT,"},{"line_number":47,"context_line":"                                       portbindings.VNIC_MACVTAP],"},{"line_number":48,"context_line":"                 supported_pci_vendor_info\u003dSUPPORTED_PCI_VENDOR_DEVICES):"},{"line_number":49,"context_line":"        \"\"\"Initialize base class for SriovNicSwitch L2 agent type."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        :param agent_type: Constant identifying agent type in agents_db"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_8b51d4da","line":48,"updated":"2014-06-09 09:09:17.000000000","message":"It is not a recommended way to pass a dict or an array as default parameter. A dict or an array is initialized  when defining a class and used forever until a process is terminated. If it is modified in an instantiated object, the change affects other objects.\n\nThe recommended way is to pass None and set the default value in __init__().","commit_id":"ffcd92b7395e3ee8cdf54e8d364536b799e1630d"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"f8c84661e2f8d17220dd38153e8df3b307799c8d","unresolved":false,"context_lines":[{"line_number":45,"context_line":"                 vif_details\u003d{portbindings.CAP_PORT_FILTER: False},"},{"line_number":46,"context_line":"                 supported_vnic_types\u003d[portbindings.VNIC_DIRECT,"},{"line_number":47,"context_line":"                                       portbindings.VNIC_MACVTAP],"},{"line_number":48,"context_line":"                 supported_pci_vendor_info\u003dSUPPORTED_PCI_VENDOR_DEVICES):"},{"line_number":49,"context_line":"        \"\"\"Initialize base class for SriovNicSwitch L2 agent type."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        :param agent_type: Constant identifying agent type in agents_db"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_1cb0a8f3","line":48,"in_reply_to":"1ae5cdf2_8b51d4da","updated":"2014-06-09 10:35:59.000000000","message":"Will follow your advice. Thanks!","commit_id":"ffcd92b7395e3ee8cdf54e8d364536b799e1630d"}],"neutron/plugins/ml2/rpc.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"bb79ee5745e8a2a174e591123a36443ca3519a60","unresolved":false,"context_lines":[{"line_number":118,"context_line":"                 \u0027network_type\u0027: segment[api.NETWORK_TYPE],"},{"line_number":119,"context_line":"                 \u0027segmentation_id\u0027: segment[api.SEGMENTATION_ID],"},{"line_number":120,"context_line":"                 \u0027physical_network\u0027: segment[api.PHYSICAL_NETWORK],"},{"line_number":121,"context_line":"                 \u0027profile\u0027: port[\u0027binding:profile\u0027]}"},{"line_number":122,"context_line":"        LOG.debug(_(\"Returning: %s\"), entry)"},{"line_number":123,"context_line":"        return entry"},{"line_number":124,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_c1793483","line":121,"updated":"2014-07-22 00:49:12.000000000","message":"Please use the constant instead of the direct reference:\n\n  port[portbindings.PROFILE]","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"10b22193dcaabdbb850abe0b4b40118a0e358a0c","unresolved":false,"context_lines":[{"line_number":118,"context_line":"                 \u0027network_type\u0027: segment[api.NETWORK_TYPE],"},{"line_number":119,"context_line":"                 \u0027segmentation_id\u0027: segment[api.SEGMENTATION_ID],"},{"line_number":120,"context_line":"                 \u0027physical_network\u0027: segment[api.PHYSICAL_NETWORK],"},{"line_number":121,"context_line":"                 \u0027profile\u0027: port[\u0027binding:profile\u0027]}"},{"line_number":122,"context_line":"        LOG.debug(_(\"Returning: %s\"), entry)"},{"line_number":123,"context_line":"        return entry"},{"line_number":124,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_7e7e296c","line":121,"in_reply_to":"baada198_c1793483","updated":"2014-07-22 14:56:40.000000000","message":"Done","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"}],"neutron/plugins/sriovnicagent/sriov_nic_agent.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4adeb595fdbc3668aab252b8845628d1f9995038","unresolved":false,"context_lines":[{"line_number":38,"context_line":"]"},{"line_number":39,"context_line":"CONF \u003d cfg.CONF"},{"line_number":40,"context_line":"CONF.register_cli_opts(agent_opts, \u0027AGENT\u0027)"},{"line_number":41,"context_line":"cfg.CONF(project\u003d\u0027neutron\u0027)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"class SriovNicSwitchRpcCallbacks(sg_rpc.SecurityGroupAgentRpcCallbackMixin):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_2b53606d","line":41,"updated":"2014-06-09 09:09:17.000000000","message":"We need to prepare a corresponding sample config file.","commit_id":"ffcd92b7395e3ee8cdf54e8d364536b799e1630d"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"f8c84661e2f8d17220dd38153e8df3b307799c8d","unresolved":false,"context_lines":[{"line_number":38,"context_line":"]"},{"line_number":39,"context_line":"CONF \u003d cfg.CONF"},{"line_number":40,"context_line":"CONF.register_cli_opts(agent_opts, \u0027AGENT\u0027)"},{"line_number":41,"context_line":"cfg.CONF(project\u003d\u0027neutron\u0027)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"class SriovNicSwitchRpcCallbacks(sg_rpc.SecurityGroupAgentRpcCallbackMixin):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_7cac4c8d","line":41,"in_reply_to":"1ae5cdf2_2b53606d","updated":"2014-06-09 10:35:59.000000000","message":"Done","commit_id":"ffcd92b7395e3ee8cdf54e8d364536b799e1630d"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4adeb595fdbc3668aab252b8845628d1f9995038","unresolved":false,"context_lines":[{"line_number":41,"context_line":"cfg.CONF(project\u003d\u0027neutron\u0027)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"class SriovNicSwitchRpcCallbacks(sg_rpc.SecurityGroupAgentRpcCallbackMixin):"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    # Set RPC API version to 1.0 by default."},{"line_number":47,"context_line":"    # history"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_eb8178fc","line":44,"updated":"2014-06-09 09:09:17.000000000","message":"This agent just reports its status and does nothing (just consumes RPC notifications). It looks like a \"null\" agent. I don\u0027t see any reason to name it \"SRIOV NIC Switch Agent\". How do you think about \"null L2 agent\" or similar name?","commit_id":"ffcd92b7395e3ee8cdf54e8d364536b799e1630d"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"f8c84661e2f8d17220dd38153e8df3b307799c8d","unresolved":false,"context_lines":[{"line_number":41,"context_line":"cfg.CONF(project\u003d\u0027neutron\u0027)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"class SriovNicSwitchRpcCallbacks(sg_rpc.SecurityGroupAgentRpcCallbackMixin):"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    # Set RPC API version to 1.0 by default."},{"line_number":47,"context_line":"    # history"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_dc93a04d","line":44,"in_reply_to":"1ae5cdf2_eb8178fc","updated":"2014-06-09 10:35:59.000000000","message":"The agent code is still under development (the patch is marked as WIP), and it will be the real agent in order to manage port state changes","commit_id":"ffcd92b7395e3ee8cdf54e8d364536b799e1630d"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4adeb595fdbc3668aab252b8845628d1f9995038","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        self.agent \u003d agent"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def network_delete(self, context, **kwargs):"},{"line_number":56,"context_line":"        LOG.debug(_(\"network_delete received\"))"},{"line_number":57,"context_line":"        network_id \u003d kwargs.get(\u0027network_id\u0027)"},{"line_number":58,"context_line":"        if not network_id:"},{"line_number":59,"context_line":"            LOG.warning(_(\"Invalid Network ID, cannot remove Network\"))"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_8bff14aa","line":56,"updated":"2014-06-09 09:09:17.000000000","message":"I18N is no longer required for debug logging.","commit_id":"ffcd92b7395e3ee8cdf54e8d364536b799e1630d"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"f8c84661e2f8d17220dd38153e8df3b307799c8d","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        self.agent \u003d agent"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def network_delete(self, context, **kwargs):"},{"line_number":56,"context_line":"        LOG.debug(_(\"network_delete received\"))"},{"line_number":57,"context_line":"        network_id \u003d kwargs.get(\u0027network_id\u0027)"},{"line_number":58,"context_line":"        if not network_id:"},{"line_number":59,"context_line":"            LOG.warning(_(\"Invalid Network ID, cannot remove Network\"))"}],"source_content_type":"text/x-python","patch_set":5,"id":"1ae5cdf2_3c7ba42a","line":56,"in_reply_to":"1ae5cdf2_8bff14aa","updated":"2014-06-09 10:35:59.000000000","message":"Done","commit_id":"ffcd92b7395e3ee8cdf54e8d364536b799e1630d"}],"setup.cfg":[{"author":{"_account_id":107,"name":"Arvind Somya","email":"arvind.somya@gmail.com","username":"asomya"},"change_message_id":"974bb3a8062aaa1b03c739653b999464e0c71951","unresolved":false,"context_lines":[{"line_number":171,"context_line":"    bigswitch \u003d neutron.plugins.ml2.drivers.mech_bigswitch.driver:BigSwitchMechanismDriver"},{"line_number":172,"context_line":"    ofagent \u003d neutron.plugins.ml2.drivers.mech_ofagent:OfagentMechanismDriver"},{"line_number":173,"context_line":"    mlnx \u003d neutron.plugins.ml2.drivers.mlnx.mech_mlnx:MlnxMechanismDriver"},{"line_number":174,"context_line":"    sriovnicswitch \u003d neutroneutron.plugins.ml2.drivers.mech_mech_sriov_nic_switch:SriovNicSwitchMechanismDriver"},{"line_number":175,"context_line":"neutron.openstack.common.cache.backends \u003d"},{"line_number":176,"context_line":"    memory \u003d neutron.openstack.common.cache._backends.memory:MemoryBackend"},{"line_number":177,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":3,"id":"AAAAVn%2F%2FhME%3D","line":174,"updated":"2014-03-06 17:30:04.000000000","message":"Typo in this string \u0027neutronneutron\u0027","commit_id":"ff8b41d1a28a2574b6e6a68635f9b8970509fccb"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"d1c826f5cba675c5fddbe485ca3380d8a10dd6d1","unresolved":false,"context_lines":[{"line_number":171,"context_line":"    bigswitch \u003d neutron.plugins.ml2.drivers.mech_bigswitch.driver:BigSwitchMechanismDriver"},{"line_number":172,"context_line":"    ofagent \u003d neutron.plugins.ml2.drivers.mech_ofagent:OfagentMechanismDriver"},{"line_number":173,"context_line":"    mlnx \u003d neutron.plugins.ml2.drivers.mlnx.mech_mlnx:MlnxMechanismDriver"},{"line_number":174,"context_line":"    sriovnicswitch \u003d neutroneutron.plugins.ml2.drivers.mech_mech_sriov_nic_switch:SriovNicSwitchMechanismDriver"},{"line_number":175,"context_line":"neutron.openstack.common.cache.backends \u003d"},{"line_number":176,"context_line":"    memory \u003d neutron.openstack.common.cache._backends.memory:MemoryBackend"},{"line_number":177,"context_line":""}],"source_content_type":"text/x-ttcn-cfg","patch_set":3,"id":"AAAAVn%2F%2FVH0%3D","line":174,"in_reply_to":"AAAAVn%2F%2FhME%3D","updated":"2014-03-09 13:30:31.000000000","message":"Thanks. Fixed","commit_id":"ff8b41d1a28a2574b6e6a68635f9b8970509fccb"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"59eeafad3b9fdd3e20a5d86fe2d22b4898e9b02b","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_mlnx.ini"},{"line_number":70,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_ncs.ini"},{"line_number":71,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_odl.ini"},{"line_number":72,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_ofa.ini"},{"line_number":73,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_fslsdn.ini"},{"line_number":74,"context_line":"    etc/neutron/plugins/mlnx \u003d etc/neutron/plugins/mlnx/mlnx_conf.ini"},{"line_number":75,"context_line":"    etc/neutron/plugins/nec \u003d etc/neutron/plugins/nec/nec.ini"}],"source_content_type":"text/x-ttcn-cfg","patch_set":7,"id":"baada198_d60c9544","line":72,"updated":"2014-07-22 01:13:43.000000000","message":"ml2_conf_sriov.ini needs to be added here.","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"10b22193dcaabdbb850abe0b4b40118a0e358a0c","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_mlnx.ini"},{"line_number":70,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_ncs.ini"},{"line_number":71,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_odl.ini"},{"line_number":72,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_ofa.ini"},{"line_number":73,"context_line":"        etc/neutron/plugins/ml2/ml2_conf_fslsdn.ini"},{"line_number":74,"context_line":"    etc/neutron/plugins/mlnx \u003d etc/neutron/plugins/mlnx/mlnx_conf.ini"},{"line_number":75,"context_line":"    etc/neutron/plugins/nec \u003d etc/neutron/plugins/nec/nec.ini"}],"source_content_type":"text/x-ttcn-cfg","patch_set":7,"id":"baada198_9ec69d49","line":72,"in_reply_to":"baada198_d60c9544","updated":"2014-07-22 14:56:40.000000000","message":"Done","commit_id":"89269286998a061ff5cc1a481909eeb0f2406c64"}]}
