def plug_vhostuser(self, instance, vif): ovs_plug = vif["details"].get(network_model.VIF_DETAILS_VHOSTUSER_OVS_PLUG, False) if ovs_plug: iface_id = self.get_ovs_interfaceid(vif) port_name = os.path.basename(vif["details"][network_model.VIF_DETAILS_VHOSTUSER_SOCKET]) linux_net.create_ovs_vif_port(self.get_bridge_name(vif), port_name, iface_id, vif["address"], instance.uuid) linux_net.ovs_set_vhostuser_port_type(port_name)
def plug_vhostuser_ovs(self, instance, vif): """Plug a VIF_TYPE_VHOSTUSER into an ovs bridge""" iface_id = self.get_ovs_interfaceid(vif) port_name = os.path.basename( vif['details'][network_model.VIF_DETAILS_VHOSTUSER_SOCKET]) linux_net.create_ovs_vif_port(self.get_bridge_name(vif), port_name, iface_id, vif['address'], instance.uuid) linux_net.ovs_set_vhostuser_port_type(port_name)
def plug_vhostuser(self, instance, vif): ovs_plug = vif['details'].get( network_model.VIF_DETAILS_VHOSTUSER_OVS_PLUG, False) if ovs_plug: iface_id = self.get_ovs_interfaceid(vif) port_name = os.path.basename( vif['details'][network_model.VIF_DETAILS_VHOSTUSER_SOCKET]) linux_net.create_ovs_vif_port(self.get_bridge_name(vif), port_name, iface_id, vif['address'], instance['uuid']) linux_net.ovs_set_vhostuser_port_type(port_name)