def set_vif_host_backend_ovs_config(conf, brname, interfaceid, tapname=None):
 conf.net_type = 'bridge'
 conf.source_dev = brname
 conf.vporttype = 'openvswitch'
 conf.add_vport_param('interfaceid', interfaceid)
 if tapname:
  conf.target_dev = tapname
 conf.script = ''

def set_vif_host_backend_ovs_config ( conf , brname , interfaceid , tapname = None ) : conf . net_type = 'bridge' conf . source_dev = brname conf . vporttype = 'openvswitch' conf . add_vport_param ( 'interfaceid' , interfaceid ) if tapname : conf . target_dev = tapname conf . script = ''
populate a libvirtconfigguestinterface instance with host backend details for an openvswitch bridge .