in traffic_mirroring/app_helper.py [0:0]
def valid_source_type(source_type, source_identifier, config):
if source_type in config:
log.info('Validating ' + source_type)
for target_config in config[source_type]:
if not valid_target_config(source_identifier, target_config):
return False
if (source_type == 'tags') and not valid_tag_based_target_config(target_config):
return False
return True