def set_vif_host_backend_802qbh_config(conf, devname, profileid, tapname=None):
 conf.net_type = 'direct'
 conf.source_dev = devname
 conf.source_mode = 'vepa'
 conf.vporttype = '802.1Qbh'
 conf.add_vport_param('profileid', profileid)
 if tapname:
  conf.target_dev = tapname

def set_vif_host_backend_802qbh_config ( conf , devname , profileid , tapname = None ) : conf . net_type = 'direct' conf . source_dev = devname conf . source_mode = 'vepa' conf . vporttype = '802.1Qbh' conf . add_vport_param ( 'profileid' , profileid ) if tapname : conf . target_dev = tapname
populate a libvirtconfigguestinterface instance with host backend details for an 802 .