)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":28373,"name":"Kailun Qin","email":"kailun.qin@hotmail.com","username":"kailun.qin"},"change_message_id":"4d202b0517c8189f1eff272c2c6b1984ccdb51d2","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Support vlan transparent network for ml2 ovs driver"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Now, ovs was supports QinQ, this patch can support vlan"},{"line_number":10,"context_line":"transparent for openvswitch Ml2 driver, when tenant create"},{"line_number":11,"context_line":"network which has \u0027vlan transprent\u0027 property."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3f79a3b5_c39eab68","line":9,"range":{"start_line":9,"start_character":9,"end_line":9,"end_character":21},"updated":"2018-08-29 13:23:37.000000000","message":"nit: supports","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"}],"neutron/agent/common/ovs_lib.py":[{"author":{"_account_id":28373,"name":"Kailun Qin","email":"kailun.qin@hotmail.com","username":"kailun.qin"},"change_message_id":"4d202b0517c8189f1eff272c2c6b1984ccdb51d2","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        self.vsctl_timeout \u003d cfg.CONF.OVS.ovsdb_timeout"},{"line_number":117,"context_line":"        self.ovsdb \u003d ovsdb_api.from_config(self)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    # jetlee: define a new method for configuring ovs to supports vlan"},{"line_number":120,"context_line":"    # transparent"},{"line_number":121,"context_line":"    def setup_ovs_for_qinq(self):"},{"line_number":122,"context_line":"        with self.ovsdb.transaction() as txn:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_753d10dc","line":119,"range":{"start_line":119,"start_character":57,"end_line":119,"end_character":65},"updated":"2018-08-29 13:23:37.000000000","message":"nit: support","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"55af5ca33edbfab6f878080725af496d40c6975a","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    # transparent"},{"line_number":121,"context_line":"    def setup_ovs_for_qinq(self):"},{"line_number":122,"context_line":"        with self.ovsdb.transaction() as txn:"},{"line_number":123,"context_line":"            txn.add(self.ovsdb.db_set(\u0027Open_vSwitch\u0027, \u0027.\u0027,"},{"line_number":124,"context_line":"                    (\u0027other_config\u0027, {\u0027vlan-limit\u0027: \u00272\u0027})))"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def add_manager(self, connection_uri, timeout\u003d_SENTINEL):"},{"line_number":127,"context_line":"        \"\"\"Have ovsdb-server listen for manager connections"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_12e77dae","line":124,"range":{"start_line":123,"start_character":0,"end_line":124,"end_character":59},"updated":"2018-08-13 11:09:43.000000000","message":"1. How does this behave if ovs is too old? Does it raise an error? Then we should handle it I guess.\n\nOr does it get ignored silently? Then we may want to check if ovs is new enough. And probably produce a warning or an error if ovs is not new enough.\n\n2. It may make sense to also document the minimum required ovs version somewhere, for example in the release note. It\u0027s v2.8.0, right?\n\n3. While reading about how ovs supports QinQ I found this:\n\n\"\"\"\nIf you change vlan-limit on a live system that has already been passing traffic you may need to run the revalidator so established flows are reconsidered. That can be done with the following command.\n\n$ ovs-appctl revalidator/purge\n\"\"\"\n\nfrom: https://developers.redhat.com/blog/2017/06/06/open-vswitch-overview-of-802-1ad-qinq-support/\n\nDo we need to do this here? It could matter in an upgrade scenario, couldn\u0027t it?\n\n4. Since ovs now seems to support even vlan-limit\u003d0 (ie. unlimited) do we want to make the limit configurable maybe?","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":27295,"name":"Li Zhouzhou","email":"lizhouzhou_yewu@cmss.chinamobile.com","username":"LiZhouzhou"},"change_message_id":"d78b334431488b84a0cfe71ffcb92f0956c8fb74","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    # transparent"},{"line_number":121,"context_line":"    def setup_ovs_for_qinq(self):"},{"line_number":122,"context_line":"        with self.ovsdb.transaction() as txn:"},{"line_number":123,"context_line":"            txn.add(self.ovsdb.db_set(\u0027Open_vSwitch\u0027, \u0027.\u0027,"},{"line_number":124,"context_line":"                    (\u0027other_config\u0027, {\u0027vlan-limit\u0027: \u00272\u0027})))"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def add_manager(self, connection_uri, timeout\u003d_SENTINEL):"},{"line_number":127,"context_line":"        \"\"\"Have ovsdb-server listen for manager connections"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_a1273cca","line":124,"range":{"start_line":123,"start_character":0,"end_line":124,"end_character":59},"in_reply_to":"3f79a3b5_12e77dae","updated":"2018-08-14 13:30:54.000000000","message":"Thanks for your comments. For your questions, I\u0027m thinking:\n1. \u0027vlan-limit\u0027 is a mark for flow matching (recognise the mulitable vlan tag in package), when you configuration in ovs old version, it\u0027s ok, but cannot working, and not error or warning infomation.\n2. Yes, you\u0027re right.\n3. Yeah, this scenario should be take into consideration. But, in my experiments, I didn\u0027t use this command(and I change \u0027vlan-limit\u003d2\u0027 ), the QinQ is work.\n4. Right, we should make the limmit vlan-limit, just depends on our scenario (Now, we just need two vlan tags).","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":27295,"name":"Li Zhouzhou","email":"lizhouzhou_yewu@cmss.chinamobile.com","username":"LiZhouzhou"},"change_message_id":"1c029147e49b02b18a0960d923718fee8b3f70fc","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    # transparent"},{"line_number":121,"context_line":"    def setup_ovs_for_qinq(self):"},{"line_number":122,"context_line":"        with self.ovsdb.transaction() as txn:"},{"line_number":123,"context_line":"            txn.add(self.ovsdb.db_set(\u0027Open_vSwitch\u0027, \u0027.\u0027,"},{"line_number":124,"context_line":"                    (\u0027other_config\u0027, {\u0027vlan-limit\u0027: \u00272\u0027})))"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def add_manager(self, connection_uri, timeout\u003d_SENTINEL):"},{"line_number":127,"context_line":"        \"\"\"Have ovsdb-server listen for manager connections"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_58580889","line":124,"range":{"start_line":123,"start_character":0,"end_line":124,"end_character":59},"in_reply_to":"3f79a3b5_3310f4a8","updated":"2018-09-27 01:54:54.000000000","message":"You\u0027re right. \u0027vlan-limit\u003d2\u0027 is a mark to tell the ovs the package takes two different type vlan tag.","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":29093,"name":"Le, Huifeng","email":"huifeng.le@intel.com","username":"hle"},"change_message_id":"bbf50d9a583aef98e761de3941e2cc4b870fea0d","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    # transparent"},{"line_number":121,"context_line":"    def setup_ovs_for_qinq(self):"},{"line_number":122,"context_line":"        with self.ovsdb.transaction() as txn:"},{"line_number":123,"context_line":"            txn.add(self.ovsdb.db_set(\u0027Open_vSwitch\u0027, \u0027.\u0027,"},{"line_number":124,"context_line":"                    (\u0027other_config\u0027, {\u0027vlan-limit\u0027: \u00272\u0027})))"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def add_manager(self, connection_uri, timeout\u003d_SENTINEL):"},{"line_number":127,"context_line":"        \"\"\"Have ovsdb-server listen for manager connections"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_ceec52f6","line":124,"range":{"start_line":123,"start_character":0,"end_line":124,"end_character":59},"in_reply_to":"3f79a3b5_58580889","updated":"2018-09-27 03:18:19.000000000","message":"Thanks for the feedback. and In my test, I am not setting \"vlan-limit\u003d2\" and the whole flow can still work (e.g. the package can take 2 vlan tags, etc.). In case it is true in your environment, then it is no need to consider how to set it (e.g. either by configuration or API etc.) due to it is host configuration while vlan-transparent is network configuration.","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":29093,"name":"Le, Huifeng","email":"huifeng.le@intel.com","username":"hle"},"change_message_id":"4048d543c579d654c7b14a214ff7cb91f21a23ba","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    # transparent"},{"line_number":121,"context_line":"    def setup_ovs_for_qinq(self):"},{"line_number":122,"context_line":"        with self.ovsdb.transaction() as txn:"},{"line_number":123,"context_line":"            txn.add(self.ovsdb.db_set(\u0027Open_vSwitch\u0027, \u0027.\u0027,"},{"line_number":124,"context_line":"                    (\u0027other_config\u0027, {\u0027vlan-limit\u0027: \u00272\u0027})))"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def add_manager(self, connection_uri, timeout\u003d_SENTINEL):"},{"line_number":127,"context_line":"        \"\"\"Have ovsdb-server listen for manager connections"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_3310f4a8","line":124,"range":{"start_line":123,"start_character":0,"end_line":124,"end_character":59},"in_reply_to":"3f79a3b5_a1273cca","updated":"2018-09-12 08:52:21.000000000","message":"Do you think \u0027vlan-limit\u003d2\u0027 is really required? According to the reference, this flag is to enable 802.1ad QinQ (0x88a8), while this patch will use 802.1q (with vlan-mode change to \"dot1q-tunnel\" and qinq-ethtype\u003d802.1q) to allow multiple vlan tags. in my test, after removing this setting (and execute \u0027ovs-appctl revalidator/purge\u0027), the feature still works.\nCan you help to double check？In case it is not required, it can avoid setting such global configuration. thanks!","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":28373,"name":"Kailun Qin","email":"kailun.qin@hotmail.com","username":"kailun.qin"},"change_message_id":"4d202b0517c8189f1eff272c2c6b1984ccdb51d2","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    # transparent"},{"line_number":121,"context_line":"    def setup_ovs_for_qinq(self):"},{"line_number":122,"context_line":"        with self.ovsdb.transaction() as txn:"},{"line_number":123,"context_line":"            txn.add(self.ovsdb.db_set(\u0027Open_vSwitch\u0027, \u0027.\u0027,"},{"line_number":124,"context_line":"                    (\u0027other_config\u0027, {\u0027vlan-limit\u0027: \u00272\u0027})))"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def add_manager(self, connection_uri, timeout\u003d_SENTINEL):"},{"line_number":127,"context_line":"        \"\"\"Have ovsdb-server listen for manager connections"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_1b488d2c","line":124,"range":{"start_line":123,"start_character":0,"end_line":124,"end_character":59},"in_reply_to":"3f79a3b5_a1273cca","updated":"2018-08-29 13:23:37.000000000","message":"So for 3) in your experiments, could QinQ work with the change of \u0027vlan-limit\u003d2\u0027 on a live system dynamically, with no need to do the revalidation/purge?","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":119,"context_line":"    # Note(jetlee): define a new method for configuring ovs to supports vlan"},{"line_number":120,"context_line":"    # transparent"},{"line_number":121,"context_line":"    def setup_ovs_for_qinq(self):"},{"line_number":122,"context_line":"        with self.ovsdb.transaction() as txn:"},{"line_number":123,"context_line":"            txn.add(self.ovsdb.db_set(\u0027Open_vSwitch\u0027, \u0027.\u0027,"},{"line_number":124,"context_line":"                                      (\u0027other_config\u0027, {\u0027vlan-limit\u0027: \u00272\u0027})))"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def add_manager(self, connection_uri, timeout\u003d_SENTINEL):"},{"line_number":127,"context_line":"        \"\"\"Have ovsdb-server listen for manager connections"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_dd1031ad","line":124,"range":{"start_line":122,"start_character":8,"end_line":124,"end_character":77},"updated":"2018-12-20 11:09:13.000000000","message":"You should use \"set_db_attribute\"","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"}],"neutron/agent/rpc.py":[{"author":{"_account_id":27079,"name":"Frank Wang","email":"wangpeihuixyz@126.com","username":"FrankWang"},"change_message_id":"daa678f6a4fc5cc099bc60b3c541aaa014f11ce3","unresolved":false,"context_lines":[{"line_number":299,"context_line":"        net \u003d self.remote_resource_cache.get_resource_by_id("},{"line_number":300,"context_line":"            resources.NETWORK, port_obj.network_id)"},{"line_number":301,"context_line":"        vlan_transparent \u003d False"},{"line_number":302,"context_line":"        if net:"},{"line_number":303,"context_line":"            vlan_transparent \u003d net.vlan_transparent"},{"line_number":304,"context_line":"        net_qos_policy_id \u003d net.qos_policy_id"},{"line_number":305,"context_line":"        # match format of old RPC interface"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_8609732d","line":302,"range":{"start_line":302,"start_character":8,"end_line":302,"end_character":15},"updated":"2018-08-08 09:23:11.000000000","message":"I believe we can remove this","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":27295,"name":"Li Zhouzhou","email":"lizhouzhou_yewu@cmss.chinamobile.com","username":"LiZhouzhou"},"change_message_id":"d78b334431488b84a0cfe71ffcb92f0956c8fb74","unresolved":false,"context_lines":[{"line_number":299,"context_line":"        net \u003d self.remote_resource_cache.get_resource_by_id("},{"line_number":300,"context_line":"            resources.NETWORK, port_obj.network_id)"},{"line_number":301,"context_line":"        vlan_transparent \u003d False"},{"line_number":302,"context_line":"        if net:"},{"line_number":303,"context_line":"            vlan_transparent \u003d net.vlan_transparent"},{"line_number":304,"context_line":"        net_qos_policy_id \u003d net.qos_policy_id"},{"line_number":305,"context_line":"        # match format of old RPC interface"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_796dd802","line":302,"range":{"start_line":302,"start_character":8,"end_line":302,"end_character":15},"in_reply_to":"3f79a3b5_8609732d","updated":"2018-08-14 13:30:54.000000000","message":"Thx.","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"ed799deb7bc17205041d26385aa7d681205b9d93","unresolved":false,"context_lines":[{"line_number":298,"context_line":"                    n_const.NO_ACTIVE_BINDING: True}"},{"line_number":299,"context_line":"        net \u003d self.remote_resource_cache.get_resource_by_id("},{"line_number":300,"context_line":"            resources.NETWORK, port_obj.network_id)"},{"line_number":301,"context_line":"        vlan_transparent \u003d False"},{"line_number":302,"context_line":"        if net:"},{"line_number":303,"context_line":"            vlan_transparent \u003d net.vlan_transparent"},{"line_number":304,"context_line":"        net_qos_policy_id \u003d net.qos_policy_id"},{"line_number":305,"context_line":"        # match format of old RPC interface"},{"line_number":306,"context_line":"        mac_addr \u003d str(netaddr.EUI(str(port_obj.mac_address),"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_d767bab6","line":303,"range":{"start_line":301,"start_character":7,"end_line":303,"end_character":51},"updated":"2018-08-13 01:02:44.000000000","message":"what about oneline:\nvlan_transparent \u003d bool(net.vlan_transparent)","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":27295,"name":"Li Zhouzhou","email":"lizhouzhou_yewu@cmss.chinamobile.com","username":"LiZhouzhou"},"change_message_id":"d78b334431488b84a0cfe71ffcb92f0956c8fb74","unresolved":false,"context_lines":[{"line_number":298,"context_line":"                    n_const.NO_ACTIVE_BINDING: True}"},{"line_number":299,"context_line":"        net \u003d self.remote_resource_cache.get_resource_by_id("},{"line_number":300,"context_line":"            resources.NETWORK, port_obj.network_id)"},{"line_number":301,"context_line":"        vlan_transparent \u003d False"},{"line_number":302,"context_line":"        if net:"},{"line_number":303,"context_line":"            vlan_transparent \u003d net.vlan_transparent"},{"line_number":304,"context_line":"        net_qos_policy_id \u003d net.qos_policy_id"},{"line_number":305,"context_line":"        # match format of old RPC interface"},{"line_number":306,"context_line":"        mac_addr \u003d str(netaddr.EUI(str(port_obj.mac_address),"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_2811ec04","line":303,"range":{"start_line":301,"start_character":7,"end_line":303,"end_character":51},"in_reply_to":"3f79a3b5_d767bab6","updated":"2018-08-14 13:30:54.000000000","message":"thx, it seems good.","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"55af5ca33edbfab6f878080725af496d40c6975a","unresolved":false,"context_lines":[{"line_number":326,"context_line":"            \u0027qos_policy_id\u0027: port_obj.qos_policy_id,"},{"line_number":327,"context_line":"            \u0027network_qos_policy_id\u0027: net_qos_policy_id,"},{"line_number":328,"context_line":"            \u0027profile\u0027: binding.profile,"},{"line_number":329,"context_line":"            \u0027vlan_transparent\u0027: vlan_transparent,"},{"line_number":330,"context_line":"            \u0027security_groups\u0027: list(port_obj.security_group_ids)"},{"line_number":331,"context_line":"        }"},{"line_number":332,"context_line":"        LOG.debug(\"Returning: %s\", entry)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_e3f4075e","line":329,"updated":"2018-08-13 11:09:43.000000000","message":"I\u0027m not sure, but I guess I better ask: Do we need to bump the RPC version when we add something new to the message?","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"}],"neutron/conf/plugins/ml2/drivers/ovs_conf.py":[{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":122,"context_line":"                      \"OpenFlow request. \""},{"line_number":123,"context_line":"                      \"Used only for \u0027native\u0027 driver.\")),"},{"line_number":124,"context_line":"    cfg.StrOpt(\u0027qinq_ethtype\u0027, default\u003d\u0027802.1q\u0027,"},{"line_number":125,"context_line":"               help\u003d_(\"the qinq ethtype, to mark the the frame header,\""},{"line_number":126,"context_line":"                      \"when using ovs qinq in vlan transparent.\")),"},{"line_number":127,"context_line":"]"},{"line_number":128,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_9d54f956","line":125,"range":{"start_line":125,"start_character":69,"end_line":125,"end_character":70},"updated":"2018-12-20 11:09:13.000000000","message":"Add an space at the end","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":122,"context_line":"                      \"OpenFlow request. \""},{"line_number":123,"context_line":"                      \"Used only for \u0027native\u0027 driver.\")),"},{"line_number":124,"context_line":"    cfg.StrOpt(\u0027qinq_ethtype\u0027, default\u003d\u0027802.1q\u0027,"},{"line_number":125,"context_line":"               help\u003d_(\"the qinq ethtype, to mark the the frame header,\""},{"line_number":126,"context_line":"                      \"when using ovs qinq in vlan transparent.\")),"},{"line_number":127,"context_line":"]"},{"line_number":128,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_5d4ae1ad","line":125,"range":{"start_line":125,"start_character":27,"end_line":125,"end_character":31},"updated":"2018-12-20 11:09:13.000000000","message":"QinQ","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":122,"context_line":"                      \"OpenFlow request. \""},{"line_number":123,"context_line":"                      \"Used only for \u0027native\u0027 driver.\")),"},{"line_number":124,"context_line":"    cfg.StrOpt(\u0027qinq_ethtype\u0027, default\u003d\u0027802.1q\u0027,"},{"line_number":125,"context_line":"               help\u003d_(\"the qinq ethtype, to mark the the frame header,\""},{"line_number":126,"context_line":"                      \"when using ovs qinq in vlan transparent.\")),"},{"line_number":127,"context_line":"]"},{"line_number":128,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_fd696d23","line":125,"range":{"start_line":125,"start_character":23,"end_line":125,"end_character":26},"updated":"2018-12-20 11:09:13.000000000","message":"The","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":123,"context_line":"                      \"Used only for \u0027native\u0027 driver.\")),"},{"line_number":124,"context_line":"    cfg.StrOpt(\u0027qinq_ethtype\u0027, default\u003d\u0027802.1q\u0027,"},{"line_number":125,"context_line":"               help\u003d_(\"the qinq ethtype, to mark the the frame header,\""},{"line_number":126,"context_line":"                      \"when using ovs qinq in vlan transparent.\")),"},{"line_number":127,"context_line":"]"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"agent_opts \u003d ["}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_1d40e989","line":126,"range":{"start_line":126,"start_character":34,"end_line":126,"end_character":37},"updated":"2018-12-20 11:09:13.000000000","message":"Open vSwitch","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"}],"neutron/plugins/common/constants.py":[{"author":{"_account_id":27079,"name":"Frank Wang","email":"wangpeihuixyz@126.com","username":"FrankWang"},"change_message_id":"daa678f6a4fc5cc099bc60b3c541aaa014f11ce3","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"# Values for dot1q tunnel"},{"line_number":42,"context_line":"QINQ_TUNNEL_MODE \u003d \"dot1q-tunnel\""},{"line_number":43,"context_line":"QINQ_ETHTYPE \u003d \"802.1q\""}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_8383a5cc","line":43,"range":{"start_line":43,"start_character":0,"end_line":43,"end_character":23},"updated":"2018-08-08 09:23:11.000000000","message":"what if I need 802.1ad type? I think reading configuration from conf is better","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":27295,"name":"Li Zhouzhou","email":"lizhouzhou_yewu@cmss.chinamobile.com","username":"LiZhouzhou"},"change_message_id":"d78b334431488b84a0cfe71ffcb92f0956c8fb74","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"# Values for dot1q tunnel"},{"line_number":42,"context_line":"QINQ_TUNNEL_MODE \u003d \"dot1q-tunnel\""},{"line_number":43,"context_line":"QINQ_ETHTYPE \u003d \"802.1q\""}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_b914d0a1","line":43,"range":{"start_line":43,"start_character":0,"end_line":43,"end_character":23},"in_reply_to":"3f79a3b5_8383a5cc","updated":"2018-08-14 13:30:54.000000000","message":"In my experiment env, I didn\u0027t add \u0027802.1q\u0027 into the ovs port configuration, the package which take \u00270x88a8\u0027 can not be recongnized by physical switch. So, I add the \u0027802.1q\u0027 as the default frame tag. Indeed, if the physical switch support \u0027802.1ad\u0027, we can remove \u0027802.1q\u0027.\nYou can read the ovs qinq configuration:\nhttps://developers.redhat.com/blog/2017/06/06/open-vswitch-overview-of-802-1ad-qinq-support/","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"}],"neutron/plugins/ml2/drivers/openvswitch/agent/common/constants.py":[{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":171,"context_line":"# Values for dot1q tunnel"},{"line_number":172,"context_line":"QINQ_TUNNEL_MODE \u003d \"dot1q-tunnel\""},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"# support vlan transparent network type"},{"line_number":175,"context_line":"NETWORK_TYPE \u003d [\"vxlan\", \"vlan\"]"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_607db4c1","line":174,"updated":"2018-12-20 11:09:13.000000000","message":"One question: why VXLAN?","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"},{"author":{"_account_id":27295,"name":"Li Zhouzhou","email":"lizhouzhou_yewu@cmss.chinamobile.com","username":"LiZhouzhou"},"change_message_id":"110933747375c45344e6d4dad4df03714a2a7ab6","unresolved":false,"context_lines":[{"line_number":171,"context_line":"# Values for dot1q tunnel"},{"line_number":172,"context_line":"QINQ_TUNNEL_MODE \u003d \"dot1q-tunnel\""},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"# support vlan transparent network type"},{"line_number":175,"context_line":"NETWORK_TYPE \u003d [\"vxlan\", \"vlan\"]"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_d5aa368b","line":174,"in_reply_to":"3f79a3b5_607db4c1","updated":"2018-12-21 07:19:30.000000000","message":"supports vlan transparent in vxlan mode","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":172,"context_line":"QINQ_TUNNEL_MODE \u003d \"dot1q-tunnel\""},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"# support vlan transparent network type"},{"line_number":175,"context_line":"NETWORK_TYPE \u003d [\"vxlan\", \"vlan\"]"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_40d2f8d1","line":175,"range":{"start_line":175,"start_character":0,"end_line":175,"end_character":12},"updated":"2018-12-20 11:09:13.000000000","message":"This variable name doesn\u0027t identify what is containing.","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":172,"context_line":"QINQ_TUNNEL_MODE \u003d \"dot1q-tunnel\""},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"# support vlan transparent network type"},{"line_number":175,"context_line":"NETWORK_TYPE \u003d [\"vxlan\", \"vlan\"]"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_ddecb192","line":175,"range":{"start_line":175,"start_character":15,"end_line":175,"end_character":31},"updated":"2018-12-20 11:09:13.000000000","message":"please, use neutron-lib constants: TYPE_VLAN, TYPE_VXLAN","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"}],"neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/br_int.py":[{"author":{"_account_id":27079,"name":"Frank Wang","email":"wangpeihuixyz@126.com","username":"FrankWang"},"change_message_id":"daa678f6a4fc5cc099bc60b3c541aaa014f11ce3","unresolved":false,"context_lines":[{"line_number":171,"context_line":"                 ofp.OFPVID_PRESENT), eth_type\u003dether_types.ETH_TYPE_ARP)"},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"    # set the flow of matched vlan arp package rule in br-int,"},{"line_number":174,"context_line":"    # and the priority have to set to higher than normal flow"},{"line_number":175,"context_line":"    def install_arp_match_qinq(self, port):"},{"line_number":176,"context_line":"        (_dp, ofp, ofpp) \u003d self._get_dp()"},{"line_number":177,"context_line":"        match \u003d self._arp_match_qinq(ofp, ofpp, port\u003dport)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_66cc5761","line":174,"updated":"2018-08-08 09:23:11.000000000","message":"I\u0027d like to know where is customer vlan from? and provider vlan from? ovs l2 agent sets all ports to access type， if vm packet contains vlan tag, it will be dropped by ovs.","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":28373,"name":"Kailun Qin","email":"kailun.qin@hotmail.com","username":"kailun.qin"},"change_message_id":"4d202b0517c8189f1eff272c2c6b1984ccdb51d2","unresolved":false,"context_lines":[{"line_number":170,"context_line":"        return ofpp.OFPMatch(in_port\u003dport, vlan_vid\u003d(ofp.OFPVID_PRESENT,"},{"line_number":171,"context_line":"                 ofp.OFPVID_PRESENT), eth_type\u003dether_types.ETH_TYPE_ARP)"},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"    # set the flow of matched vlan arp package rule in br-int,"},{"line_number":174,"context_line":"    # and the priority have to set to higher than normal flow"},{"line_number":175,"context_line":"    def install_arp_match_qinq(self, port):"},{"line_number":176,"context_line":"        (_dp, ofp, ofpp) \u003d self._get_dp()"},{"line_number":177,"context_line":"        match \u003d self._arp_match_qinq(ofp, ofpp, port\u003dport)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_fbea71d6","line":174,"range":{"start_line":173,"start_character":0,"end_line":174,"end_character":61},"updated":"2018-08-29 13:23:37.000000000","message":"Yes, would also like to know how the ovs access ports are dealt with.","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":28373,"name":"Kailun Qin","email":"kailun.qin@hotmail.com","username":"kailun.qin"},"change_message_id":"4d202b0517c8189f1eff272c2c6b1984ccdb51d2","unresolved":false,"context_lines":[{"line_number":171,"context_line":"                 ofp.OFPVID_PRESENT), eth_type\u003dether_types.ETH_TYPE_ARP)"},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"    # set the flow of matched vlan arp package rule in br-int,"},{"line_number":174,"context_line":"    # and the priority have to set to higher than normal flow"},{"line_number":175,"context_line":"    def install_arp_match_qinq(self, port):"},{"line_number":176,"context_line":"        (_dp, ofp, ofpp) \u003d self._get_dp()"},{"line_number":177,"context_line":"        match \u003d self._arp_match_qinq(ofp, ofpp, port\u003dport)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_20f678da","line":174,"range":{"start_line":174,"start_character":23,"end_line":174,"end_character":34},"updated":"2018-08-29 13:23:37.000000000","message":"nit: has to be set","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":27295,"name":"Li Zhouzhou","email":"lizhouzhou_yewu@cmss.chinamobile.com","username":"LiZhouzhou"},"change_message_id":"36cf2e7ce7ef3e23649ac37fc161592c779b3d38","unresolved":false,"context_lines":[{"line_number":170,"context_line":"        return ofpp.OFPMatch(in_port\u003dport, vlan_vid\u003d(ofp.OFPVID_PRESENT,"},{"line_number":171,"context_line":"                 ofp.OFPVID_PRESENT), eth_type\u003dether_types.ETH_TYPE_ARP)"},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"    # set the flow of matched vlan arp package rule in br-int,"},{"line_number":174,"context_line":"    # and the priority have to set to higher than normal flow"},{"line_number":175,"context_line":"    def install_arp_match_qinq(self, port):"},{"line_number":176,"context_line":"        (_dp, ofp, ofpp) \u003d self._get_dp()"},{"line_number":177,"context_line":"        match \u003d self._arp_match_qinq(ofp, ofpp, port\u003dport)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_99a7a9a8","line":174,"range":{"start_line":173,"start_character":0,"end_line":174,"end_character":61},"in_reply_to":"3f79a3b5_fbea71d6","updated":"2018-08-30 09:00:31.000000000","message":"The second vlan tag is configure on the vm (as a sub-interface which has a same mac with vm interface), it\u0027s decide by user.","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"}],"neutron/plugins/ml2/drivers/openvswitch/agent/openflow/ovs_ofctl/br_int.py":[{"author":{"_account_id":28373,"name":"Kailun Qin","email":"kailun.qin@hotmail.com","username":"kailun.qin"},"change_message_id":"4d202b0517c8189f1eff272c2c6b1984ccdb51d2","unresolved":false,"context_lines":[{"line_number":201,"context_line":"                          in_port\u003dport)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"    # set the flow of matched vlan arp package rule in br-int, and the"},{"line_number":204,"context_line":"    # priority have to set to higher than normal flow"},{"line_number":205,"context_line":"    def install_arp_match_qinq(self, port, ip_addresses):"},{"line_number":206,"context_line":"        self.add_flow(table\u003dconstants.LOCAL_SWITCHING,"},{"line_number":207,"context_line":"                      priority\u003d11, proto\u003d\u0027arp\u0027, in_port\u003dport,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_e06080d2","line":204,"range":{"start_line":204,"start_character":15,"end_line":204,"end_character":26},"updated":"2018-08-29 13:23:37.000000000","message":"nit: has to be set","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":29093,"name":"Le, Huifeng","email":"huifeng.le@intel.com","username":"hle"},"change_message_id":"4048d543c579d654c7b14a214ff7cb91f21a23ba","unresolved":false,"context_lines":[{"line_number":203,"context_line":"    # set the flow of matched vlan arp package rule in br-int, and the"},{"line_number":204,"context_line":"    # priority have to set to higher than normal flow"},{"line_number":205,"context_line":"    def install_arp_match_qinq(self, port, ip_addresses):"},{"line_number":206,"context_line":"        self.add_flow(table\u003dconstants.LOCAL_SWITCHING,"},{"line_number":207,"context_line":"                      priority\u003d11, proto\u003d\u0027arp\u0027, in_port\u003dport,"},{"line_number":208,"context_line":"                      vlan_tci\u003dconstants.VLAN_TAG_REC,"},{"line_number":209,"context_line":"                      actions\u003d(\"resubmit(,%s)\" % constants.TRANSIENT_TABLE))"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_fea1e3f8","line":209,"range":{"start_line":206,"start_character":8,"end_line":209,"end_character":76},"updated":"2018-09-12 08:52:21.000000000","message":"this setting may not work when setting [securitygroup] firewall_driver \u003d openvswitch. In this case with my test, the OVS will used ovs firewall table （e.g. BASE_EGRESS_TABLE - table 71) to check IP policy, and it will break both arp and ip package of customer defined vlan (e.g. not managed by neutron). so suppose it needs to add flow based on different configuration (e.g. securitygroup)","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":27295,"name":"Li Zhouzhou","email":"lizhouzhou_yewu@cmss.chinamobile.com","username":"LiZhouzhou"},"change_message_id":"1c029147e49b02b18a0960d923718fee8b3f70fc","unresolved":false,"context_lines":[{"line_number":203,"context_line":"    # set the flow of matched vlan arp package rule in br-int, and the"},{"line_number":204,"context_line":"    # priority have to set to higher than normal flow"},{"line_number":205,"context_line":"    def install_arp_match_qinq(self, port, ip_addresses):"},{"line_number":206,"context_line":"        self.add_flow(table\u003dconstants.LOCAL_SWITCHING,"},{"line_number":207,"context_line":"                      priority\u003d11, proto\u003d\u0027arp\u0027, in_port\u003dport,"},{"line_number":208,"context_line":"                      vlan_tci\u003dconstants.VLAN_TAG_REC,"},{"line_number":209,"context_line":"                      actions\u003d(\"resubmit(,%s)\" % constants.TRANSIENT_TABLE))"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_988b0016","line":209,"range":{"start_line":206,"start_character":8,"end_line":209,"end_character":76},"in_reply_to":"3f79a3b5_fea1e3f8","updated":"2018-09-27 01:54:54.000000000","message":"Thanks for your comments. In my test, setting [securitygroup] firewall_driver \u003d neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver. \nSo, I think your comments is valuable, I need to test again.","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"}],"neutron/plugins/ml2/drivers/openvswitch/agent/openflow/ovs_ofctl/br_tun.py":[{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":74,"context_line":"            # unicasts go to table UCAST_TO_TUN where remote addresses are"},{"line_number":75,"context_line":"            # learnt"},{"line_number":76,"context_line":"            # Note(jetlee): in ovs-qinq scenario, we should strip external"},{"line_number":77,"context_line":"            # vlan id(local id) previously, and save vlan id in \u0027reg0\u0027."},{"line_number":78,"context_line":"            deferred_br.add_flow(table\u003dconstants.PATCH_LV_TO_TUN,"},{"line_number":79,"context_line":"                                 priority\u003d0,"},{"line_number":80,"context_line":"                                 dl_dst\u003d\"00:00:00:00:00:00/01:00:00:00:00:00\","}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_e07224af","line":77,"updated":"2018-12-20 11:09:13.000000000","message":"What is happening if we are not it QinQ scenario?","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"},{"author":{"_account_id":27295,"name":"Li Zhouzhou","email":"lizhouzhou_yewu@cmss.chinamobile.com","username":"LiZhouzhou"},"change_message_id":"110933747375c45344e6d4dad4df03714a2a7ab6","unresolved":false,"context_lines":[{"line_number":74,"context_line":"            # unicasts go to table UCAST_TO_TUN where remote addresses are"},{"line_number":75,"context_line":"            # learnt"},{"line_number":76,"context_line":"            # Note(jetlee): in ovs-qinq scenario, we should strip external"},{"line_number":77,"context_line":"            # vlan id(local id) previously, and save vlan id in \u0027reg0\u0027."},{"line_number":78,"context_line":"            deferred_br.add_flow(table\u003dconstants.PATCH_LV_TO_TUN,"},{"line_number":79,"context_line":"                                 priority\u003d0,"},{"line_number":80,"context_line":"                                 dl_dst\u003d\"00:00:00:00:00:00/01:00:00:00:00:00\","}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_359daa6a","line":77,"in_reply_to":"3f79a3b5_e07224af","updated":"2018-12-21 07:19:30.000000000","message":"No affects.","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":103,"context_line":"            # to dynamically set-up flows in UCAST_TO_TUN corresponding to"},{"line_number":104,"context_line":"            # remote mac addresses (assumes that lvid has already been set by"},{"line_number":105,"context_line":"            # a previous flow)"},{"line_number":106,"context_line":"            # Note(jetlee): in ovs-qinq scenario, the learnt table should"},{"line_number":107,"context_line":"            # compare reg0 with learnt external vlan id(local vlan id)."},{"line_number":108,"context_line":"            learned_flow \u003d (\"cookie\u003d%(cookie)s,\""},{"line_number":109,"context_line":"                            \"table\u003d%(table)s,\""}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_003e40b6","line":106,"updated":"2018-12-20 11:09:13.000000000","message":"What is happening if we are not it QinQ scenario?","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"},{"author":{"_account_id":27295,"name":"Li Zhouzhou","email":"lizhouzhou_yewu@cmss.chinamobile.com","username":"LiZhouzhou"},"change_message_id":"110933747375c45344e6d4dad4df03714a2a7ab6","unresolved":false,"context_lines":[{"line_number":103,"context_line":"            # to dynamically set-up flows in UCAST_TO_TUN corresponding to"},{"line_number":104,"context_line":"            # remote mac addresses (assumes that lvid has already been set by"},{"line_number":105,"context_line":"            # a previous flow)"},{"line_number":106,"context_line":"            # Note(jetlee): in ovs-qinq scenario, the learnt table should"},{"line_number":107,"context_line":"            # compare reg0 with learnt external vlan id(local vlan id)."},{"line_number":108,"context_line":"            learned_flow \u003d (\"cookie\u003d%(cookie)s,\""},{"line_number":109,"context_line":"                            \"table\u003d%(table)s,\""}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_958d9e37","line":106,"in_reply_to":"3f79a3b5_003e40b6","updated":"2018-12-21 07:19:30.000000000","message":"as above","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"}],"neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"ed799deb7bc17205041d26385aa7d681205b9d93","unresolved":false,"context_lines":[{"line_number":894,"context_line":"            # match the package that takes a vlan id"},{"line_number":895,"context_line":"            if port_detail.get(\u0027vlan_transparent\u0027):"},{"line_number":896,"context_line":"                self.setup_arp_qinq(self.int_br, port)"},{"line_number":897,"context_line":"                LOG.debug(\"Add a arp related flow for %s to match port that \\"},{"line_number":898,"context_line":"                        support vlan transparency.\\n\", port.port_name)"},{"line_number":899,"context_line":"            if self.prevent_arp_spoofing:"},{"line_number":900,"context_line":"                self.setup_arp_spoofing_protection(self.int_br,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_57116a03","line":897,"range":{"start_line":897,"start_character":76,"end_line":897,"end_character":77},"updated":"2018-08-13 01:02:44.000000000","message":"This is not needed","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"ed799deb7bc17205041d26385aa7d681205b9d93","unresolved":false,"context_lines":[{"line_number":895,"context_line":"            if port_detail.get(\u0027vlan_transparent\u0027):"},{"line_number":896,"context_line":"                self.setup_arp_qinq(self.int_br, port)"},{"line_number":897,"context_line":"                LOG.debug(\"Add a arp related flow for %s to match port that \\"},{"line_number":898,"context_line":"                        support vlan transparency.\\n\", port.port_name)"},{"line_number":899,"context_line":"            if self.prevent_arp_spoofing:"},{"line_number":900,"context_line":"                self.setup_arp_spoofing_protection(self.int_br,"},{"line_number":901,"context_line":"                                                   port, port_detail)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_f7f996c7","line":898,"range":{"start_line":898,"start_character":50,"end_line":898,"end_character":52},"updated":"2018-08-13 01:02:44.000000000","message":"ditto","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":28373,"name":"Kailun Qin","email":"kailun.qin@hotmail.com","username":"kailun.qin"},"change_message_id":"4d202b0517c8189f1eff272c2c6b1984ccdb51d2","unresolved":false,"context_lines":[{"line_number":910,"context_line":"                    \"Port\", port.port_name, \"vlan_mode\","},{"line_number":911,"context_line":"                    p_const.QINQ_TUNNEL_MODE"},{"line_number":912,"context_line":"                )"},{"line_number":913,"context_line":"                port_other_config \u003d self.int_br.db_get_val("},{"line_number":914,"context_line":"                    \"Port\", port.port_name, \"other_config\")"},{"line_number":915,"context_line":"                port_other_config[\u0027qinq-ethtype\u0027] \u003d p_const.QINQ_ETHTYPE"},{"line_number":916,"context_line":"                self.int_br.set_db_attribute("}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_3b6ea996","line":913,"range":{"start_line":913,"start_character":16,"end_line":913,"end_character":33},"updated":"2018-08-29 13:23:37.000000000","message":"Do we need to check port_other_config None?","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"ed799deb7bc17205041d26385aa7d681205b9d93","unresolved":false,"context_lines":[{"line_number":917,"context_line":"                    \"Port\", port.port_name, \"other_config\","},{"line_number":918,"context_line":"                    port_other_config"},{"line_number":919,"context_line":"                )"},{"line_number":920,"context_line":"                LOG.debug(\"The port %s supports vlan transparent.\\n\","},{"line_number":921,"context_line":"                          port.port_name)"},{"line_number":922,"context_line":""},{"line_number":923,"context_line":"            # update plugin about port status"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_b7ff9ea9","line":920,"range":{"start_line":920,"start_character":65,"end_line":920,"end_character":67},"updated":"2018-08-13 01:02:44.000000000","message":"ditto","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"ed799deb7bc17205041d26385aa7d681205b9d93","unresolved":false,"context_lines":[{"line_number":2236,"context_line":"            ovsdb_monitor.get_bridges_monitor("},{"line_number":2237,"context_line":"                br_names,"},{"line_number":2238,"context_line":"                self.ovsdb_monitor_respawn_interval) as bm:"},{"line_number":2239,"context_line":"            # configuring \u0027Open_vSwitch\u0027 to supports vlan transparency"},{"line_number":2240,"context_line":"            self.ovs.setup_ovs_for_qinq()"},{"line_number":2241,"context_line":""},{"line_number":2242,"context_line":"            self.rpc_loop(polling_manager\u003dpm, bridges_monitor\u003dbm)"},{"line_number":2243,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_d7fc9ab6","line":2240,"range":{"start_line":2239,"start_character":11,"end_line":2240,"end_character":41},"updated":"2018-08-13 01:02:44.000000000","message":"Can this feature implement as a L2 agent extension?","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":28373,"name":"Kailun Qin","email":"kailun.qin@hotmail.com","username":"kailun.qin"},"change_message_id":"4d202b0517c8189f1eff272c2c6b1984ccdb51d2","unresolved":false,"context_lines":[{"line_number":2236,"context_line":"            ovsdb_monitor.get_bridges_monitor("},{"line_number":2237,"context_line":"                br_names,"},{"line_number":2238,"context_line":"                self.ovsdb_monitor_respawn_interval) as bm:"},{"line_number":2239,"context_line":"            # configuring \u0027Open_vSwitch\u0027 to supports vlan transparency"},{"line_number":2240,"context_line":"            self.ovs.setup_ovs_for_qinq()"},{"line_number":2241,"context_line":""},{"line_number":2242,"context_line":"            self.rpc_loop(polling_manager\u003dpm, bridges_monitor\u003dbm)"},{"line_number":2243,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_c6e6b94b","line":2240,"range":{"start_line":2239,"start_character":11,"end_line":2240,"end_character":41},"in_reply_to":"3f79a3b5_4896a8f2","updated":"2018-08-29 13:23:37.000000000","message":"If we use a deployment level OVS QinQ configuration, does this mean the config is applied to all the OVS agents, even though we do not actually have a vlan transparent network?","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":27295,"name":"Li Zhouzhou","email":"lizhouzhou_yewu@cmss.chinamobile.com","username":"LiZhouzhou"},"change_message_id":"d78b334431488b84a0cfe71ffcb92f0956c8fb74","unresolved":false,"context_lines":[{"line_number":2236,"context_line":"            ovsdb_monitor.get_bridges_monitor("},{"line_number":2237,"context_line":"                br_names,"},{"line_number":2238,"context_line":"                self.ovsdb_monitor_respawn_interval) as bm:"},{"line_number":2239,"context_line":"            # configuring \u0027Open_vSwitch\u0027 to supports vlan transparency"},{"line_number":2240,"context_line":"            self.ovs.setup_ovs_for_qinq()"},{"line_number":2241,"context_line":""},{"line_number":2242,"context_line":"            self.rpc_loop(polling_manager\u003dpm, bridges_monitor\u003dbm)"},{"line_number":2243,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_4896a8f2","line":2240,"range":{"start_line":2239,"start_character":11,"end_line":2240,"end_character":41},"in_reply_to":"3f79a3b5_d7fc9ab6","updated":"2018-08-14 13:30:54.000000000","message":"Of course, so I should reconstruct it, and according the \u0027neutron.conf\u0027 to decide ovs is configurate QinQ or not, then add the \u0027vlan-limit\u0027 property.","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":924,"context_line":"                self.int_br.set_db_attribute("},{"line_number":925,"context_line":"                    \"Port\", port.port_name, \"tag\", lvm.vlan)"},{"line_number":926,"context_line":""},{"line_number":927,"context_line":"            # Note(jetlee): if port support vlan transparent, we need set the"},{"line_number":928,"context_line":"            # vlan mode in ovs port"},{"line_number":929,"context_line":"            if port_detail.get(\u0027vlan_transparent\u0027):"},{"line_number":930,"context_line":"                self.int_br.set_db_attribute("},{"line_number":931,"context_line":"                    \"Port\", port.port_name, \"vlan_mode\","}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_406198d4","line":928,"range":{"start_line":927,"start_character":12,"end_line":928,"end_character":35},"updated":"2018-12-20 11:09:13.000000000","message":"IMO, those comments are unneeded, the code should be self explanatory.","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":931,"context_line":"                    \"Port\", port.port_name, \"vlan_mode\","},{"line_number":932,"context_line":"                    constants.QINQ_TUNNEL_MODE"},{"line_number":933,"context_line":"                )"},{"line_number":934,"context_line":"                port_other_config \u003d self.int_br.db_get_val("},{"line_number":935,"context_line":"                    \"Port\", port.port_name, \"other_config\")"},{"line_number":936,"context_line":"                port_other_config[\u0027qinq-ethtype\u0027] \u003d self.qinq_ethtype"},{"line_number":937,"context_line":"                self.int_br.set_db_attribute("},{"line_number":938,"context_line":"                    \"Port\", port.port_name, \"other_config\","},{"line_number":939,"context_line":"                    port_other_config"},{"line_number":940,"context_line":"                )"},{"line_number":941,"context_line":"                LOG.debug(\"The port %s supports vlan transparent.\\n\","},{"line_number":942,"context_line":"                          port.port_name)"},{"line_number":943,"context_line":"            # update plugin about port status"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_00e720da","line":940,"range":{"start_line":934,"start_character":16,"end_line":940,"end_character":17},"updated":"2018-12-20 11:09:13.000000000","message":"You don\u0027t need to read, update and write.\n\nIf you use set_db_attribute with a dict, you\u0027ll only update the dict.","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":938,"context_line":"                    \"Port\", port.port_name, \"other_config\","},{"line_number":939,"context_line":"                    port_other_config"},{"line_number":940,"context_line":"                )"},{"line_number":941,"context_line":"                LOG.debug(\"The port %s supports vlan transparent.\\n\","},{"line_number":942,"context_line":"                          port.port_name)"},{"line_number":943,"context_line":"            # update plugin about port status"},{"line_number":944,"context_line":"            # FIXME(salv-orlando): Failures while updating device status"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_a0766c90","line":941,"range":{"start_line":941,"start_character":65,"end_line":941,"end_character":67},"updated":"2018-12-20 11:09:13.000000000","message":"not needed","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"}],"neutron/plugins/ml2/drivers/openvswitch/mech_driver/mech_openvswitch.py":[{"author":{"_account_id":27079,"name":"Frank Wang","email":"wangpeihuixyz@126.com","username":"FrankWang"},"change_message_id":"daa678f6a4fc5cc099bc60b3c541aaa014f11ce3","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def check_vlan_transparency(self, context):"},{"line_number":77,"context_line":"        \"\"\"Currently Openvswitch driver supports vlan transparency.\"\"\""},{"line_number":78,"context_line":"        return True"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def bind_port(self, context):"},{"line_number":81,"context_line":"        vnic_type \u003d context.current.get(portbindings.VNIC_TYPE,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_867e5369","line":78,"range":{"start_line":78,"start_character":14,"end_line":78,"end_character":19},"updated":"2018-08-08 09:23:11.000000000","message":"I think we need to add options to conf decide whether support vlan transparency, and Do all network types(vxlan,gre,etc) support vlan transparency?","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":29093,"name":"Le, Huifeng","email":"huifeng.le@intel.com","username":"hle"},"change_message_id":"4048d543c579d654c7b14a214ff7cb91f21a23ba","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def check_vlan_transparency(self, context):"},{"line_number":77,"context_line":"        \"\"\"Currently Openvswitch driver supports vlan transparency.\"\"\""},{"line_number":78,"context_line":"        return True"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def bind_port(self, context):"},{"line_number":81,"context_line":"        vnic_type \u003d context.current.get(portbindings.VNIC_TYPE,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_5e2a577e","line":78,"range":{"start_line":78,"start_character":14,"end_line":78,"end_character":19},"in_reply_to":"3f79a3b5_19a70452","updated":"2018-09-12 08:52:21.000000000","message":"It seems that OVS learning actions can not generate a flow with \"pop_vlan\" action, the auto-generated rule \"load:0-\u003eNXM_OF_VLAN_TCI[]\" will clean all vlan tags, Is it the same problem you meet?","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":28373,"name":"Kailun Qin","email":"kailun.qin@hotmail.com","username":"kailun.qin"},"change_message_id":"4d202b0517c8189f1eff272c2c6b1984ccdb51d2","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def check_vlan_transparency(self, context):"},{"line_number":77,"context_line":"        \"\"\"Currently Openvswitch driver supports vlan transparency.\"\"\""},{"line_number":78,"context_line":"        return True"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def bind_port(self, context):"},{"line_number":81,"context_line":"        vnic_type \u003d context.current.get(portbindings.VNIC_TYPE,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_26720d4b","line":78,"range":{"start_line":78,"start_character":14,"end_line":78,"end_character":19},"in_reply_to":"3f79a3b5_349d9365","updated":"2018-08-29 13:23:37.000000000","message":"+1 for sean\u0027s comment, personally I don\u0027t think config option for vlan transparency is a good idea.","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":27295,"name":"Li Zhouzhou","email":"lizhouzhou_yewu@cmss.chinamobile.com","username":"LiZhouzhou"},"change_message_id":"1c029147e49b02b18a0960d923718fee8b3f70fc","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def check_vlan_transparency(self, context):"},{"line_number":77,"context_line":"        \"\"\"Currently Openvswitch driver supports vlan transparency.\"\"\""},{"line_number":78,"context_line":"        return True"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def bind_port(self, context):"},{"line_number":81,"context_line":"        vnic_type \u003d context.current.get(portbindings.VNIC_TYPE,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_38de6c3c","line":78,"range":{"start_line":78,"start_character":14,"end_line":78,"end_character":19},"in_reply_to":"3f79a3b5_5e2a577e","updated":"2018-09-27 01:54:54.000000000","message":"Yes. I changed the related flow in br-tun that is \"actions\u003dstrip_vlan/(or pop_vlan),load:0-\u003eNXM_NX_TUN_ID[]\". Then it\u0027s work.","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"fc8e949ce5f029c4c83be6ac40fc70809f88552a","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def check_vlan_transparency(self, context):"},{"line_number":77,"context_line":"        \"\"\"Currently Openvswitch driver supports vlan transparency.\"\"\""},{"line_number":78,"context_line":"        return True"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def bind_port(self, context):"},{"line_number":81,"context_line":"        vnic_type \u003d context.current.get(portbindings.VNIC_TYPE,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_349d9365","line":78,"range":{"start_line":78,"start_character":14,"end_line":78,"end_character":19},"in_reply_to":"3f79a3b5_681a84cc","updated":"2018-08-15 09:40:21.000000000","message":"all network types other the QinQ network types should be able to support vlan transparnacy. odl has been supporting vlan transparnet networks with ovs for several release for vxlan.\nthey simply push a standard vlan tag instead of usin qinq\ni would suggest mirroring the logic found here\n\nhttps://github.com/openstack/networking-odl/blob/414345d0a1298ab3c0856b68bf449e9a92e88d28/networking_odl/ml2/mech_driver_v2.py#L211-L234\n\ni dont think we need a config option for this, config options that alter api behavior are generally bad for interoperablity.","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"ed799deb7bc17205041d26385aa7d681205b9d93","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def check_vlan_transparency(self, context):"},{"line_number":77,"context_line":"        \"\"\"Currently Openvswitch driver supports vlan transparency.\"\"\""},{"line_number":78,"context_line":"        return True"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def bind_port(self, context):"},{"line_number":81,"context_line":"        vnic_type \u003d context.current.get(portbindings.VNIC_TYPE,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_9734e294","line":78,"range":{"start_line":78,"start_character":14,"end_line":78,"end_character":19},"in_reply_to":"3f79a3b5_867e5369","updated":"2018-08-13 01:02:44.000000000","message":"Agree, as I commented in other file, a new config or extension looks more reasonable.","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":27295,"name":"Li Zhouzhou","email":"lizhouzhou_yewu@cmss.chinamobile.com","username":"LiZhouzhou"},"change_message_id":"d78b334431488b84a0cfe71ffcb92f0956c8fb74","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def check_vlan_transparency(self, context):"},{"line_number":77,"context_line":"        \"\"\"Currently Openvswitch driver supports vlan transparency.\"\"\""},{"line_number":78,"context_line":"        return True"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def bind_port(self, context):"},{"line_number":81,"context_line":"        vnic_type \u003d context.current.get(portbindings.VNIC_TYPE,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_19a70452","line":78,"range":{"start_line":78,"start_character":14,"end_line":78,"end_character":19},"in_reply_to":"3f79a3b5_867e5369","updated":"2018-08-14 13:30:54.000000000","message":"Now, vxlan mode didn\u0027t support. In vxlan mode, I try add a self-learn flow into the br-tun manually, work same as \u0027strip the external vxlan tag\u0027, it\u0027s work. But, now the ovs_lib hasn\u0027t this method for self-learn flow.","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":15554,"name":"Bence Romsics","email":"bence.romsics@gmail.com","username":"ebenrom","status":"inactive contributor"},"change_message_id":"55af5ca33edbfab6f878080725af496d40c6975a","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def check_vlan_transparency(self, context):"},{"line_number":77,"context_line":"        \"\"\"Currently Openvswitch driver supports vlan transparency.\"\"\""},{"line_number":78,"context_line":"        return True"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def bind_port(self, context):"},{"line_number":81,"context_line":"        vnic_type \u003d context.current.get(portbindings.VNIC_TYPE,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_686604c4","line":78,"range":{"start_line":78,"start_character":14,"end_line":78,"end_character":19},"in_reply_to":"3f79a3b5_9734e294","updated":"2018-08-13 11:09:43.000000000","message":"+1, a new config option or an agent extension could handle the difference between old-ovs-qinq-not-supported and new-ovs-qinq-supported too.","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":27295,"name":"Li Zhouzhou","email":"lizhouzhou_yewu@cmss.chinamobile.com","username":"LiZhouzhou"},"change_message_id":"d78b334431488b84a0cfe71ffcb92f0956c8fb74","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def check_vlan_transparency(self, context):"},{"line_number":77,"context_line":"        \"\"\"Currently Openvswitch driver supports vlan transparency.\"\"\""},{"line_number":78,"context_line":"        return True"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def bind_port(self, context):"},{"line_number":81,"context_line":"        vnic_type \u003d context.current.get(portbindings.VNIC_TYPE,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_681a84cc","line":78,"range":{"start_line":78,"start_character":14,"end_line":78,"end_character":19},"in_reply_to":"3f79a3b5_9734e294","updated":"2018-08-14 13:30:54.000000000","message":"You mean, we should add \u0027vlan_transparency\u0027 into neutron.conf or other conf. Then, we can maually decide the ovs supports qinq or not?","commit_id":"36eb9ca3635045a10f76afc477d8aabec880fc6f"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        # Note(jetlee): now, ovs was supports qinq, and neutron"},{"line_number":114,"context_line":"        # support vlan transparent in vlan and vxlan network. so we"},{"line_number":115,"context_line":"        # should check the network type which user created."},{"line_number":116,"context_line":"        VLAN_TRANSPARENT_NETWORK_TYPES \u003d a_const.NETWORK_TYPE"},{"line_number":117,"context_line":"        network \u003d context.current"},{"line_number":118,"context_line":"        # see TypeManager._extend_network_dict_provider()"},{"line_number":119,"context_line":"        # single providernet"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_804fb0bf","line":116,"updated":"2018-12-20 11:09:13.000000000","message":"Why are you creating this variable? You don\u0027t need it.","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        # Note(jetlee): now, ovs was supports qinq, and neutron"},{"line_number":114,"context_line":"        # support vlan transparent in vlan and vxlan network. so we"},{"line_number":115,"context_line":"        # should check the network type which user created."},{"line_number":116,"context_line":"        VLAN_TRANSPARENT_NETWORK_TYPES \u003d a_const.NETWORK_TYPE"},{"line_number":117,"context_line":"        network \u003d context.current"},{"line_number":118,"context_line":"        # see TypeManager._extend_network_dict_provider()"},{"line_number":119,"context_line":"        # single providernet"},{"line_number":120,"context_line":"        if network.get(\u0027provider:network_type\u0027) in \\"},{"line_number":121,"context_line":"            VLAN_TRANSPARENT_NETWORK_TYPES:"},{"line_number":122,"context_line":"            return True"},{"line_number":123,"context_line":"        return False"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"    def bind_port(self, context):"},{"line_number":126,"context_line":"        vnic_type \u003d context.current.get(portbindings.VNIC_TYPE,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_e091c4f7","line":123,"range":{"start_line":116,"start_character":8,"end_line":123,"end_character":20},"updated":"2018-12-20 11:09:13.000000000","message":"This could be just one single line:\n\nreturn context.current.get(\u0027provider:network_type\u0027) in a_const.NETWORK_TYPE","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"}],"neutron/plugins/ml2/rpc.py":[{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":140,"context_line":"            return {\u0027device\u0027: device,"},{"line_number":141,"context_line":"                    c_const.NO_ACTIVE_BINDING: True}"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        # Note(jetlee): get the vlan_transparent parameter"},{"line_number":144,"context_line":"        vlan_transparent \u003d port_context.network.current.get(\u0027vlan_transparent\u0027)"},{"line_number":145,"context_line":"        network_qos_policy_id \u003d port_context.network._network.get("},{"line_number":146,"context_line":"            qos_consts.QOS_POLICY_ID)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_bd8c55de","line":143,"range":{"start_line":143,"start_character":8,"end_line":143,"end_character":58},"updated":"2018-12-20 11:09:13.000000000","message":"This comment is trivial, the code is easy to read.","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"2c2088d270004439a3ab6c5bf5a24fc596186e4d","unresolved":false,"context_lines":[{"line_number":141,"context_line":"                    c_const.NO_ACTIVE_BINDING: True}"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        # Note(jetlee): get the vlan_transparent parameter"},{"line_number":144,"context_line":"        vlan_transparent \u003d port_context.network.current.get(\u0027vlan_transparent\u0027)"},{"line_number":145,"context_line":"        network_qos_policy_id \u003d port_context.network._network.get("},{"line_number":146,"context_line":"            qos_consts.QOS_POLICY_ID)"},{"line_number":147,"context_line":"        entry \u003d {\u0027device\u0027: device,"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_3d1cc57a","line":144,"range":{"start_line":144,"start_character":56,"end_line":144,"end_character":79},"updated":"2018-12-20 11:09:13.000000000","message":"nit: You should assign a default value, for example False.\n\nBut vlan_transparent could be None. What do you think?","commit_id":"74bd92e259e4f61e5ab59113be96f8a265c607a0"}]}
