def fetch_subnets(vpc, tag_name):
    'Method to fetch subnets based on the tag_name.\n    Args:\n        vpc (vpc obj): VPC object to search for subnets\n        tag_name (str): subnet tag name.\n    Returns:\n        subnets (list): list of aws subnets for given vpc.\n    '
    filters = get_tag_filter(tag_name)
    return vpc.subnets.filter(Filters=filters)
Method to fetch subnets based on the tag_name.
Args:
    vpc (vpc obj): VPC object to search for subnets
    tag_name (str): subnet tag name.
Returns:
    subnets (list): list of aws subnets for given vpc.
def fetch_subnets(vpc, tag_name):
    'Method to fetch subnets based on the tag_name.\n    Args:\n        vpc (vpc obj): VPC object to search for subnets\n        tag_name (str): subnet tag name.\n    Returns:\n        subnets (list): list of aws subnets for given vpc.\n    '
    filters = get_tag_filter(tag_name)
    return vpc.subnets.filter(Filters=filters)