def import_no_virt_driver_config_deps(physical_line, filename):
 thisdriver = _get_virt_name(virt_file_re, filename)
 thatdriver = _get_virt_name(virt_config_re, physical_line)
 if ((thatdriver is not None) and (thisdriver is not None) and (thisdriver != thatdriver)):
  return (0, 'N312: using config vars from other virt drivers forbidden')

def import_no_virt_driver_config_deps ( physical_line , filename ) : thisdriver = _get_virt_name ( virt_file_re , filename ) thatdriver = _get_virt_name ( virt_config_re , physical_line ) if ( ( thatdriver is not None ) and ( thisdriver is not None ) and ( thisdriver != thatdriver ) ) : return ( 0 , 'N312: using config vars from other virt drivers forbidden' )
check virt drivers config vars arent used by other drivers modules under each virt drivers directory are considered private to that virt driver .