From f7ad8c3731822b73436d3068f692a10eff04c6f7 Mon Sep 17 00:00:00 2001 From: Sahil Sabharwal Date: Mon, 1 Aug 2016 17:57:39 -0700 Subject: [PATCH] Added default 'binding_host_id' key in port_q_dict needed by neutron. Change-Id: I4077b62e2109145e91b994533717f720c01f2c13 Closes-Bug: 1514646 --- src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py b/src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py index 41eaf88d290..fa93ef8791f 100644 --- a/src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py +++ b/src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py @@ -2050,6 +2050,8 @@ def _port_vnc_to_neutron(self, port_obj, port_req_memo=None): port_q_dict['binding:vif_type'] = 'vrouter' if 'binding:vnic_type' not in port_q_dict: port_q_dict['binding:vnic_type'] = 'normal' + if 'binding:host_id' not in port_q_dict: + port_q_dict['binding:host_id'] = None dhcp_options_list = port_obj.get_virtual_machine_interface_dhcp_option_list() if dhcp_options_list and dhcp_options_list.dhcp_option: