)]}'
{"os_vif/objects/network.py":[{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"51f30ad05d0bc0afb3ea3c86111eaf12ac742db3","unresolved":false,"context_lines":[{"line_number":22,"context_line":"    \"\"\"Represents a network.\"\"\""},{"line_number":23,"context_line":"    # Version 1.0: Initial version"},{"line_number":24,"context_line":"    # Version 1.1: add mtu field"},{"line_number":25,"context_line":"    VERSION \u003d \u00271.1\u0027"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    fields \u003d {"},{"line_number":28,"context_line":"        \u0027id\u0027: fields.UUIDField(),"}],"source_content_type":"text/x-python","patch_set":1,"id":"bae84128_3d753a63","line":25,"range":{"start_line":25,"start_character":18,"end_line":25,"end_character":19},"updated":"2016-02-24 15:54:44.000000000","message":"We\u0027ve not released os-vif yet so there\u0027s no need to bump version numbers yet","commit_id":"a36861d7c40d27a6eadf9c81d4fd83841befa722"}],"vif_plug_linux_bridge/linux_bridge.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"fe8269c3b3e7467166244ae46398df33b210aa82","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        if not network.multi_host and network.should_provide_bridge:"},{"line_number":96,"context_line":"            if network.should_provide_vlan:"},{"line_number":97,"context_line":"                iface \u003d self.config.vlan_interface or network.bridge_interface"},{"line_number":98,"context_line":"                mtu \u003d (network.mtu if network.mtu else"},{"line_number":99,"context_line":"                       self.config.network_device_mtu)"},{"line_number":100,"context_line":"                linux_net.ensure_vlan_bridge(network.vlan,"},{"line_number":101,"context_line":"                                             bridge_name, iface, mtu\u003dmtu)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_6a2b3483","line":98,"updated":"2016-02-26 13:36:13.000000000","message":"I presume Network object is part of public API of the library. But there is no guarantee .mtu field is set on the object. I guess you need to accommodate for that possibility here.","commit_id":"95cdbca969d2e7f9e98418f280584064deaa41a0"},{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"27b33f7d2b87c9ada6dcddfff817a8cd67338819","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        if not network.multi_host and network.should_provide_bridge:"},{"line_number":96,"context_line":"            if network.should_provide_vlan:"},{"line_number":97,"context_line":"                iface \u003d self.config.vlan_interface or network.bridge_interface"},{"line_number":98,"context_line":"                mtu \u003d (network.mtu if network.mtu else"},{"line_number":99,"context_line":"                       self.config.network_device_mtu)"},{"line_number":100,"context_line":"                linux_net.ensure_vlan_bridge(network.vlan,"},{"line_number":101,"context_line":"                                             bridge_name, iface, mtu\u003dmtu)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_55067a1d","line":98,"in_reply_to":"9aed3d3a_6a2b3483","updated":"2016-02-29 11:48:56.000000000","message":"Yes, you\u0027ll have to do\n\n   network.mtu if network.obj_has_attr(\"mtu\")","commit_id":"95cdbca969d2e7f9e98418f280584064deaa41a0"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"fe8269c3b3e7467166244ae46398df33b210aa82","unresolved":false,"context_lines":[{"line_number":96,"context_line":"            if network.should_provide_vlan:"},{"line_number":97,"context_line":"                iface \u003d self.config.vlan_interface or network.bridge_interface"},{"line_number":98,"context_line":"                mtu \u003d (network.mtu if network.mtu else"},{"line_number":99,"context_line":"                       self.config.network_device_mtu)"},{"line_number":100,"context_line":"                linux_net.ensure_vlan_bridge(network.vlan,"},{"line_number":101,"context_line":"                                             bridge_name, iface, mtu\u003dmtu)"},{"line_number":102,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_8f884a24","line":99,"updated":"2016-02-26 13:36:13.000000000","message":"The option will be eventually removed from the configuration file. Shouldn\u0027t we guard here somehow for the time when it\u0027s removed? I suspect that attribute access will raise an exception once it happens.","commit_id":"95cdbca969d2e7f9e98418f280584064deaa41a0"},{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"27b33f7d2b87c9ada6dcddfff817a8cd67338819","unresolved":false,"context_lines":[{"line_number":96,"context_line":"            if network.should_provide_vlan:"},{"line_number":97,"context_line":"                iface \u003d self.config.vlan_interface or network.bridge_interface"},{"line_number":98,"context_line":"                mtu \u003d (network.mtu if network.mtu else"},{"line_number":99,"context_line":"                       self.config.network_device_mtu)"},{"line_number":100,"context_line":"                linux_net.ensure_vlan_bridge(network.vlan,"},{"line_number":101,"context_line":"                                             bridge_name, iface, mtu\u003dmtu)"},{"line_number":102,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_7528de86","line":99,"in_reply_to":"9aed3d3a_8f884a24","updated":"2016-02-29 11:48:56.000000000","message":"We\u0027ve not even deprecated the config option, let alone considered removing it, so we don\u0027t need todo anything here IMHO","commit_id":"95cdbca969d2e7f9e98418f280584064deaa41a0"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"3fd604ec05733949d1c5a2047115a72089765c41","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        if not network.multi_host and network.should_provide_bridge:"},{"line_number":96,"context_line":"            if network.should_provide_vlan:"},{"line_number":97,"context_line":"                iface \u003d self.config.vlan_interface or network.bridge_interface"},{"line_number":98,"context_line":"                mtu \u003d (network.mtu if hasattr(network, \"mtu\") else"},{"line_number":99,"context_line":"                       self.config.network_device_mtu)"},{"line_number":100,"context_line":"                linux_net.ensure_vlan_bridge(network.vlan,"},{"line_number":101,"context_line":"                                             bridge_name, iface, mtu\u003dmtu)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7af24918_91d6cac3","line":98,"updated":"2016-03-01 19:16:06.000000000","message":"The previous version of the patch was using network_device_mtu when network.mtu \u003d\u003d 0, but now it\u0027s always using the attribute if it\u0027s present. Is the change expected?","commit_id":"442d494202abaf13a8be8c0b355aa99c40219dae"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"aa7a8f87e1f4b6d73be8dafbaaf2a580ae157dc8","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        if not network.multi_host and network.should_provide_bridge:"},{"line_number":96,"context_line":"            if network.should_provide_vlan:"},{"line_number":97,"context_line":"                iface \u003d self.config.vlan_interface or network.bridge_interface"},{"line_number":98,"context_line":"                mtu \u003d (network.mtu if hasattr(network, \"mtu\") else"},{"line_number":99,"context_line":"                       self.config.network_device_mtu)"},{"line_number":100,"context_line":"                linux_net.ensure_vlan_bridge(network.vlan,"},{"line_number":101,"context_line":"                                             bridge_name, iface, mtu\u003dmtu)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7af24918_37ed7fb7","line":98,"in_reply_to":"7af24918_10fdf1b3","updated":"2016-03-03 21:43:39.000000000","message":"But you don\u0027t enforce it for networks that were already created before you set the default value to 1500. Those networks stay with mtu \u003d 0, which means that once you try to plug an interface from the network, it will use MTU \u003d\u003d 0 here.\n\nAlso technically you can still unset the config value to 0, though I agree that point is quite moot. The one about existing networks is not though.","commit_id":"442d494202abaf13a8be8c0b355aa99c40219dae"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"6cfbc9e1be0abc07787dd7ea1dcd55d7823a7882","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        if not network.multi_host and network.should_provide_bridge:"},{"line_number":96,"context_line":"            if network.should_provide_vlan:"},{"line_number":97,"context_line":"                iface \u003d self.config.vlan_interface or network.bridge_interface"},{"line_number":98,"context_line":"                mtu \u003d (network.mtu if hasattr(network, \"mtu\") else"},{"line_number":99,"context_line":"                       self.config.network_device_mtu)"},{"line_number":100,"context_line":"                linux_net.ensure_vlan_bridge(network.vlan,"},{"line_number":101,"context_line":"                                             bridge_name, iface, mtu\u003dmtu)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7af24918_52be59ff","line":98,"in_reply_to":"7af24918_37ed7fb7","updated":"2016-03-03 21:51:23.000000000","message":"Fair point. I forgot that my own patch does not fix existing networks. Glad you are here to keep me honest.","commit_id":"442d494202abaf13a8be8c0b355aa99c40219dae"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"548bc8d11ce2a95f72b6f8a2bdb6001ae52f4aff","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        if not network.multi_host and network.should_provide_bridge:"},{"line_number":96,"context_line":"            if network.should_provide_vlan:"},{"line_number":97,"context_line":"                iface \u003d self.config.vlan_interface or network.bridge_interface"},{"line_number":98,"context_line":"                mtu \u003d (network.mtu if hasattr(network, \"mtu\") else"},{"line_number":99,"context_line":"                       self.config.network_device_mtu)"},{"line_number":100,"context_line":"                linux_net.ensure_vlan_bridge(network.vlan,"},{"line_number":101,"context_line":"                                             bridge_name, iface, mtu\u003dmtu)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7af24918_10fdf1b3","line":98,"in_reply_to":"7af24918_55431242","updated":"2016-03-03 20:06:11.000000000","message":"\u003eNot sure I completely grasp how the change you refer to is relevant here. Can you elaborate?\n\nSure - the idea is that we should never really set MTU to zero. Ever. It doesn\u0027t make sense. So I\u0027m changing Neutron to have it default to 1500 bytes for the MTU. Therefore we should never get an mtu of 0 back from Neutron, once that patch merges.","commit_id":"442d494202abaf13a8be8c0b355aa99c40219dae"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"e023a3c6acf399af09b44fe8deac470eed5c02e9","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        if not network.multi_host and network.should_provide_bridge:"},{"line_number":96,"context_line":"            if network.should_provide_vlan:"},{"line_number":97,"context_line":"                iface \u003d self.config.vlan_interface or network.bridge_interface"},{"line_number":98,"context_line":"                mtu \u003d (network.mtu if hasattr(network, \"mtu\") else"},{"line_number":99,"context_line":"                       self.config.network_device_mtu)"},{"line_number":100,"context_line":"                linux_net.ensure_vlan_bridge(network.vlan,"},{"line_number":101,"context_line":"                                             bridge_name, iface, mtu\u003dmtu)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7af24918_3ba2b799","line":98,"in_reply_to":"7af24918_55431242","updated":"2016-03-03 10:56:04.000000000","message":"FYI I proposed a patch that should avoid calling to ip link if MTU is not properly set: https://review.openstack.org/#/c/287709/","commit_id":"442d494202abaf13a8be8c0b355aa99c40219dae"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"303928fb327ed0c9db4db9530fb77c8bf68aee3c","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        if not network.multi_host and network.should_provide_bridge:"},{"line_number":96,"context_line":"            if network.should_provide_vlan:"},{"line_number":97,"context_line":"                iface \u003d self.config.vlan_interface or network.bridge_interface"},{"line_number":98,"context_line":"                mtu \u003d (network.mtu if hasattr(network, \"mtu\") else"},{"line_number":99,"context_line":"                       self.config.network_device_mtu)"},{"line_number":100,"context_line":"                linux_net.ensure_vlan_bridge(network.vlan,"},{"line_number":101,"context_line":"                                             bridge_name, iface, mtu\u003dmtu)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7af24918_55431242","line":98,"in_reply_to":"7af24918_7fb024de","updated":"2016-03-03 10:25:03.000000000","message":"Not sure I completely grasp how the change you refer to is relevant here. Can you elaborate?\n\nMy understanding is that an attempt to set mtu to 0 will fail down the line, so it would be reasonable to try out to fallback to network_device_mtu if plugin is not sane.\n\n[Also note that neither in nova nor in neutron \u0027network_device_mtu\u0027 option has any explicit default value, so it will probably be None if you don\u0027t configure it. In that case, if you fall back on the option, you pass mtu\u003dNone to ensure_vlan_bridge, which will directly pass it into ip link set command].","commit_id":"442d494202abaf13a8be8c0b355aa99c40219dae"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"c22f84656ca64a6486d3f7710f103e36814ed7da","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        if not network.multi_host and network.should_provide_bridge:"},{"line_number":96,"context_line":"            if network.should_provide_vlan:"},{"line_number":97,"context_line":"                iface \u003d self.config.vlan_interface or network.bridge_interface"},{"line_number":98,"context_line":"                mtu \u003d (network.mtu if hasattr(network, \"mtu\") else"},{"line_number":99,"context_line":"                       self.config.network_device_mtu)"},{"line_number":100,"context_line":"                linux_net.ensure_vlan_bridge(network.vlan,"},{"line_number":101,"context_line":"                                             bridge_name, iface, mtu\u003dmtu)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7af24918_7fb024de","line":98,"in_reply_to":"7af24918_91d6cac3","updated":"2016-03-01 20:30:29.000000000","message":"Yes, because of https://review.openstack.org/285339","commit_id":"442d494202abaf13a8be8c0b355aa99c40219dae"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"460ae09f02c7cf212b5da27aaead7d5a4842b3b3","unresolved":false,"context_lines":[{"line_number":96,"context_line":"            if network.should_provide_vlan:"},{"line_number":97,"context_line":"                iface \u003d self.config.vlan_interface or network.bridge_interface"},{"line_number":98,"context_line":"                mtu \u003d (network.mtu if hasattr(network, \"mtu\") else"},{"line_number":99,"context_line":"                       self.config.network_device_mtu)"},{"line_number":100,"context_line":"                linux_net.ensure_vlan_bridge(network.vlan,"},{"line_number":101,"context_line":"                                             bridge_name, iface, mtu\u003dmtu)"},{"line_number":102,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1af94dfe_5bb464f1","line":99,"updated":"2016-03-15 19:18:03.000000000","message":"++ on sean.k.mooney\u0027s suggestion.","commit_id":"442d494202abaf13a8be8c0b355aa99c40219dae"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"56903f2a5271005da17268b92580b10dcbbf3741","unresolved":false,"context_lines":[{"line_number":96,"context_line":"            if network.should_provide_vlan:"},{"line_number":97,"context_line":"                iface \u003d self.config.vlan_interface or network.bridge_interface"},{"line_number":98,"context_line":"                mtu \u003d (network.mtu if hasattr(network, \"mtu\") else"},{"line_number":99,"context_line":"                       self.config.network_device_mtu)"},{"line_number":100,"context_line":"                linux_net.ensure_vlan_bridge(network.vlan,"},{"line_number":101,"context_line":"                                             bridge_name, iface, mtu\u003dmtu)"},{"line_number":102,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":6,"id":"7af24918_f7495732","line":99,"updated":"2016-03-03 21:35:04.000000000","message":"Instead of adding this conditional logic here (which for some reason seems to be evaluated differently on py34 vs. py27) I would recommend just adding a method on os_vif.objects.Network that handles this like so:\n\n def mtu_with_default(self, default_val):\n     if self.obj_attr_is_set(\u0027mtu\u0027):\n          return self.mtu\n     return default_val\n\nAnd then call it here like so:\n\n mtu \u003d network.mtu_with_default(self.config.network_device_mtu)","commit_id":"442d494202abaf13a8be8c0b355aa99c40219dae"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"5d68c5ab47475eefea2e05e7e98a403f147fa745","unresolved":false,"context_lines":[{"line_number":96,"context_line":"            if network.should_provide_vlan:"},{"line_number":97,"context_line":"                iface \u003d self.config.vlan_interface or network.bridge_interface"},{"line_number":98,"context_line":"                mtu \u003d (network.mtu if hasattr(network, \"mtu\") else"},{"line_number":99,"context_line":"                       self.config.network_device_mtu)"},{"line_number":100,"context_line":"                linux_net.ensure_vlan_bridge(network.vlan,"},{"line_number":101,"context_line":"                                             bridge_name, iface, mtu\u003dmtu)"},{"line_number":102,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1af94dfe_5ef9114d","line":99,"in_reply_to":"7af24918_723d558e","updated":"2016-03-15 11:59:04.000000000","message":"python often use get_x functions that take defaults so maybe just call it get_mtu instead so \ndef get_mtu(self, default_val):\n     if self.obj_attr_is_set(\u0027mtu\u0027):\n          return self.mtu\n     return default_val\nbut yes this seams like a better place to store that logic.","commit_id":"442d494202abaf13a8be8c0b355aa99c40219dae"},{"author":{"_account_id":4656,"name":"Sean M. Collins","email":"sean@coreitpro.com","username":"scollins"},"change_message_id":"6cfbc9e1be0abc07787dd7ea1dcd55d7823a7882","unresolved":false,"context_lines":[{"line_number":96,"context_line":"            if network.should_provide_vlan:"},{"line_number":97,"context_line":"                iface \u003d self.config.vlan_interface or network.bridge_interface"},{"line_number":98,"context_line":"                mtu \u003d (network.mtu if hasattr(network, \"mtu\") else"},{"line_number":99,"context_line":"                       self.config.network_device_mtu)"},{"line_number":100,"context_line":"                linux_net.ensure_vlan_bridge(network.vlan,"},{"line_number":101,"context_line":"                                             bridge_name, iface, mtu\u003dmtu)"},{"line_number":102,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":6,"id":"7af24918_723d558e","line":99,"in_reply_to":"7af24918_f7495732","updated":"2016-03-03 21:51:23.000000000","message":"Better idea. I\u0027ll take it.","commit_id":"442d494202abaf13a8be8c0b355aa99c40219dae"}],"vif_plug_linux_bridge/tests/test_plugin.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"fe8269c3b3e7467166244ae46398df33b210aa82","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            bridge\u003d\u0027br0\u0027,"},{"line_number":94,"context_line":"            bridge_interface\u003d\u0027eth0\u0027,"},{"line_number":95,"context_line":"            vlan\u003d99,"},{"line_number":96,"context_line":"            mtu\u003dNone,"},{"line_number":97,"context_line":"            should_provide_bridge\u003dTrue,"},{"line_number":98,"context_line":"            should_provide_vlan\u003dTrue)"},{"line_number":99,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_8a4dd874","line":96,"updated":"2016-02-26 13:36:13.000000000","message":"you should not need to set the value specifically here.","commit_id":"95cdbca969d2e7f9e98418f280584064deaa41a0"},{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"27b33f7d2b87c9ada6dcddfff817a8cd67338819","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            bridge\u003d\u0027br0\u0027,"},{"line_number":94,"context_line":"            bridge_interface\u003d\u0027eth0\u0027,"},{"line_number":95,"context_line":"            vlan\u003d99,"},{"line_number":96,"context_line":"            mtu\u003dNone,"},{"line_number":97,"context_line":"            should_provide_bridge\u003dTrue,"},{"line_number":98,"context_line":"            should_provide_vlan\u003dTrue)"},{"line_number":99,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_d540ca36","line":96,"in_reply_to":"9aed3d3a_8a4dd874","updated":"2016-02-29 11:48:56.000000000","message":"Indeed, by *not* specifying mtu\u003dNone here we\u0027ll correctly test for the case where mtu is not set by nova-network","commit_id":"95cdbca969d2e7f9e98418f280584064deaa41a0"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"56903f2a5271005da17268b92580b10dcbbf3741","unresolved":false,"context_lines":[{"line_number":122,"context_line":"            vlan\u003d99,"},{"line_number":123,"context_line":"            mtu\u003d9000,"},{"line_number":124,"context_line":"            should_provide_bridge\u003dTrue,"},{"line_number":125,"context_line":"            should_provide_vlan\u003dTrue)"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"        vif \u003d objects.vif.VIFBridge("},{"line_number":128,"context_line":"            id\u003d\u0027vif-xxx-yyy-zzz\u0027,"}],"source_content_type":"text/x-python","patch_set":6,"id":"7af24918_7c1ece70","line":125,"updated":"2016-03-03 21:35:04.000000000","message":"Please add a test for the case when the Network.mtu attribute is not set as well as a test for when the Network.mtu is set to 0 (as it may be before your patch to Neutron that changes the default to 1500).","commit_id":"442d494202abaf13a8be8c0b355aa99c40219dae"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"5d68c5ab47475eefea2e05e7e98a403f147fa745","unresolved":false,"context_lines":[{"line_number":122,"context_line":"            vlan\u003d99,"},{"line_number":123,"context_line":"            mtu\u003d9000,"},{"line_number":124,"context_line":"            should_provide_bridge\u003dTrue,"},{"line_number":125,"context_line":"            should_provide_vlan\u003dTrue)"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"        vif \u003d objects.vif.VIFBridge("},{"line_number":128,"context_line":"            id\u003d\u0027vif-xxx-yyy-zzz\u0027,"}],"source_content_type":"text/x-python","patch_set":6,"id":"1af94dfe_be177553","line":125,"in_reply_to":"7af24918_7c1ece70","updated":"2016-03-15 11:59:04.000000000","message":"even after the default is changed the user may want to set the value to 0. the current behavior in nova was that if set to 0 no mtu was set on the interface so some people might want that behavior.","commit_id":"442d494202abaf13a8be8c0b355aa99c40219dae"}],"vif_plug_ovs/ovs_hybrid.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"4878d227d1da913b980a55648e2a0d534e7fcc77","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_9d1f14b7","line":109,"updated":"2016-02-24 20:22:48.000000000","message":"Ack. I think I had just chatted to someone (maybe Jay) about using it since the README made it sound like it wasn\u0027t specific to Nova and we have a lot of similar code for OVS and Linuxbridge on the Neutron side. However, if tap management is not something you want to allow in os-vif, that\u0027s okay. We can figure out a way to carry our tap device management code and maybe still leverage this.","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"cd2d4154cae160d2adf71144436099daf7ed2632","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_8f4d21c7","line":109,"updated":"2016-02-24 18:57:23.000000000","message":"Ah, cool. I didn\u0027t know that about libvirt. However, isn\u0027t this supposed to be compatible with other users (e.g. the neutron agents)? I would rather not try to force the caller to mimic the libvirt behavior here.","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"f31b03bc09a45bff189d3c8651e85eabbf788e5b","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_2a1fa05c","line":109,"updated":"2016-02-24 19:56:22.000000000","message":"I thought one of the goals of os-vif was to also be leveraged by Neutron in all of the plugging code it does for agents (DHCP, L3). Am I mistaken?","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"b53ae357cc5bbbd60e5b7472fc57f0e7ec375990","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_879b4572","line":109,"updated":"2016-02-24 19:44:34.000000000","message":"Oh, I see now. That\u0027s unfortunate because it actually makes os-vif quit a bit less useful on the neutron side. It might offer some de-duplication but we will still need a whole driver framework to handle the creation of the ports. What do you think about allowing Neutron to move some of that to os-vif?","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"58f02efb316264e1f5074ff5cded45aaf8a5a75b","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_74f8704a","line":109,"updated":"2016-02-24 18:42:48.000000000","message":"you will also need to set the MTU on the tap device that gets plugged into the bridge. Otherwise it will just default to 1500 and the MTU of the bridge will drop to 1500 to match the smallest.","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"a35b4e1316ee4d16843b86d8b0ee7b1e8c0819b0","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5aef4532_c20bbb22","line":109,"in_reply_to":"5aef4532_09b20806","updated":"2016-03-10 09:48:53.000000000","message":"No, it isn\u0027t just Nova here. To get os-vif integrated for the its primary goal of handling VIF plugging, we\u0027ve got work across all of Nova, Neutron and os-vif to co-ordinate \u0026 complete. I don\u0027t want that delayed by trying to accomplish other non-core goals at the same time. The discussion right here is a prime example of the kind of delaying effect that trying to add further goals has.","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"089381905c7cbc6b17771d834d73789792b2cb0d","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5aef4532_09b20806","line":109,"in_reply_to":"5aef4532_1e90e442","updated":"2016-03-09 19:36:13.000000000","message":"But they are two different development groups, no? Nova changing to os-vif has basically nothing to do with Neutron changing to os-vif for its agents. I understand that you don\u0027t want it in this library, but using the pace of adoption in Nova isn\u0027t a good excuse IMO.","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"012ed1d9657460e0c9171b2bf3b9499d4d8b01a6","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5aef4532_1e90e442","line":109,"in_reply_to":"5aef4532_393196a3","updated":"2016-03-08 10:17:10.000000000","message":"I really don\u0027t think this is the right place to discuss any of this. In addition it is already a complex enough job to get Nova and Neutron using os-vif for VM interface plugging, that has been going on for several releases now. I really do not want to see us expand the scope of os-vif to cover internal Neutron NIC creation jobs until we have got os-vif full integrated and supporting its primary job, as it will only delay things still more to try to address two different roles at once.  So IMHO any talk of using os-vif for Neutron internal work is something to be discussed no sooner than  the Ocata or Pxxxx development cycles.  NB, I won\u0027t be at the Austin summit due to family commitments.","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"9a20fef6dfc2456226cf86d277750505703b0676","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_3dab68d8","line":109,"in_reply_to":"bae84128_2a1fa05c","updated":"2016-02-24 20:12:11.000000000","message":"Nope, that\u0027s never been discussed/suggested AFAIK. The goal has only ever been to provide a plugin infrstructure to compute node host networking setup when attaching VIFs to guests.","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"1ed99a71f4d9627ce1583d9f1626a9532973bc08","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_5588c6c6","line":109,"in_reply_to":"bae84128_5539e6d7","updated":"2016-02-24 19:33:57.000000000","message":"Isn\u0027t that was L114 is doing?","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"557f080916a72e2b64ff27c420f0470ea7f399f5","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_757d0ab1","line":109,"in_reply_to":"bae84128_5588c6c6","updated":"2016-02-24 19:35:48.000000000","message":"Not, that\u0027s connecting one end of the veth device (we\u0027ve created here with the right MTU) to the ovs bridge.","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"3060a2cc87a53ef409bcc314c8e6e6eb9846dfe0","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_2f64d5e3","line":109,"in_reply_to":"bae84128_74f8704a","updated":"2016-02-24 18:47:11.000000000","message":"Libvirt creates the TAP device, and when it creates it, it sets the MTU to match that of the bridge it is told to connect it to","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"17fd8210c17bbf410308ed56ce90f41f0cc456a0","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_5539e6d7","line":109,"in_reply_to":"bae84128_7a4a19ae","updated":"2016-02-24 19:18:38.000000000","message":"The TAP devices don\u0027t exist at the point this code runs.","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"afc040f583bcc42f4febb2dc85dfb7b5992bd911","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_676c4137","line":109,"in_reply_to":"bae84128_879b4572","updated":"2016-02-24 19:50:22.000000000","message":"I\u0027m not sure where Neutron even comes into this. A Neutron mechanism will tell Nova to run a particular plugin for a VIF. Neutron won\u0027t actually run these plugins itself - they\u0027re for the compute hosts only.\n\nIn addition, the intended division of responsibilities is that these plugins configure the host networking, and the virtualization driver connects the guest to it. Creation of the TAP device belongs to the virtualization driver, because you can\u0027t assume what kind of device will actually be beeded by the hypervisor. ie it may not even be a tap device - it could be a macvtap device instead for LXC guests.","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":1779,"name":"Daniel Berrange","email":"berrange@redhat.com","username":"berrange"},"change_message_id":"3fe90190fbb201072abc0696394cd681a8b3a4ca","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_fa858907","line":109,"in_reply_to":"bae84128_8f4d21c7","updated":"2016-02-24 19:10:13.000000000","message":"The plugin isn\u0027t responsible for creating the TAP device, so there\u0027s no choice but to leave it to the compute user to deal with","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"813136b7fc66d929be3ab859d434b1ca8c0dc625","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5aef4532_393196a3","line":109,"in_reply_to":"bae84128_9d1f14b7","updated":"2016-03-07 21:34:14.000000000","message":"sorry to drop in late but i do think there is merit here in exploring what kevin is describing here. os-vif is not just intended to be used by nova it should be usable by neutron and other project that need to create virtual interfaces for uses other then vms.\n\nthis is not the correct file/plugin to have that logic however. a separate ovs_internal plugin file could be added for your usecase. ovs internal ports are just tap devices.\nto make them usable with the l3 agent the network namespace that the tap interface should be placed into should would have to be passed as part of the vif biding details to \nkeep with the current api.\n\nThis is perhaps something we can discuss at the summit?\nKevin/dan will ye be there?\n\nthe change i am proposing to create_ovs_vif_port in \nhttps://review.openstack.org/#/c/285613/1/vif_plug_ovs/linux_net.py\n\nshould make it easy to add a ovs_intenal plugin if that is\nwant we decide should be done.\n\ne.g.\n\nplug(...):\nlinux_net.create_ovs_vif_port(vif.bridge_name,\n                                          port_name, iface_id,\n                                          vif.address, instance.uuid,\n                                          timeout\u003dself.ovs_vsctl_timeout,\n                                          type\u003d\"internal\")\nlinux_net.set_namespace( port_name, vif.namespace )\n\nthat would enable it to be used to plug interfaces for the neutron l3/dhcp/metadata agents.","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"045fc80b55a15075f0e2d2a1e8cac2477712553d","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"},{"line_number":111,"context_line":"                                 run_as_root\u003dTrue)"},{"line_number":112,"context_line":"            processutils.execute(\u0027brctl\u0027, \u0027addif\u0027, vif.bridge_name, v1_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"bae84128_7a4a19ae","line":109,"in_reply_to":"bae84128_fa858907","updated":"2016-02-24 19:13:10.000000000","message":"I didn\u0027t say it was responsible for creating. However, it can set the MTU on it so it doesn\u0027t screw up everything else on the bridge.","commit_id":"37a62e93194b240cf3d402ad1be27b0b5205e98d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"fe8269c3b3e7467166244ae46398df33b210aa82","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                                     check_exit_code\u003d[0, 1])"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if vif.network.mtu"},{"line_number":108,"context_line":"                   else self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_2a492c60","line":107,"updated":"2016-02-26 13:36:13.000000000","message":"same comments as in linuxbridge file.","commit_id":"95cdbca969d2e7f9e98418f280584064deaa41a0"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"3fd604ec05733949d1c5a2047115a72089765c41","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                                     check_exit_code\u003d[0, 1])"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        if not linux_net.device_exists(v2_name):"},{"line_number":107,"context_line":"            mtu \u003d (vif.network.mtu if hasattr(vif.network, \"mtu\") else"},{"line_number":108,"context_line":"                   self.config.network_device_mtu)"},{"line_number":109,"context_line":"            linux_net.create_veth_pair(v1_name, v2_name, mtu)"},{"line_number":110,"context_line":"            processutils.execute(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, vif.bridge_name, \u0027up\u0027,"}],"source_content_type":"text/x-python","patch_set":6,"id":"7af24918_f15e2e44","line":107,"updated":"2016-03-01 19:16:06.000000000","message":"same comment as in another module.\n\nAlso nit: the code to extract mtu from network object could be moved into a common helper function to avoid duplicating the logic in both modules.","commit_id":"442d494202abaf13a8be8c0b355aa99c40219dae"}],"vif_plug_ovs/tests/test_plugin.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"fe8269c3b3e7467166244ae46398df33b210aa82","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            bridge\u003d\u0027br0\u0027,"},{"line_number":60,"context_line":"            subnets\u003dself.subnets,"},{"line_number":61,"context_line":"            vlan\u003d99,"},{"line_number":62,"context_line":"            mtu\u003dNone)"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"        self.profile_ovs \u003d objects.vif.VIFPortProfileOpenVSwitch("},{"line_number":65,"context_line":"            interface_id\u003d\u0027aaa-bbb-ccc\u0027)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_eaac64ef","line":62,"updated":"2016-02-26 13:36:13.000000000","message":"same: probably unneeded once you handle the case of missing field on the object.","commit_id":"95cdbca969d2e7f9e98418f280584064deaa41a0"}]}
