def get_vpc_peerings(vpc, host_vpc, **kwargs):
    'Method to fetch all the VPC peerings against given VPC. If host_vpc is provided\n    it will check if there is a peering against that vpc.\n    Args:\n        vpc(VPC object): VPC Object to search for peerings\n        host_vpc (Host VPC object): Can be Null as well, to check if specific host_vpc\n                                    peering is done.\n    Returns:\n        VPC peering (array): Array list of vpc peerings.\n    '
    output = []
    vpc_peerings = vpc.accepted_vpc_peering_connections.all()
    output.extend([vp for vp in vpc_peerings if ((vp.status.get('Code') == 'active') and ((host_vpc is None) or (vp.requester_vpc == host_vpc)))])
    vpc_peerings = vpc.requested_vpc_peering_connections.all()
    output.extend([vp for vp in vpc_peerings if ((vp.status.get('Code') == 'active') and ((host_vpc is None) or (vp.accepter_vpc == host_vpc)))])
    return output
Method to fetch all the VPC peerings against given VPC. If host_vpc is provided
it will check if there is a peering against that vpc.
Args:
    vpc(VPC object): VPC Object to search for peerings
    host_vpc (Host VPC object): Can be Null as well, to check if specific host_vpc
                                peering is done.
Returns:
    VPC peering (array): Array list of vpc peerings.
def get_vpc_peerings(vpc, host_vpc, **kwargs):
    'Method to fetch all the VPC peerings against given VPC. If host_vpc is provided\n    it will check if there is a peering against that vpc.\n    Args:\n        vpc(VPC object): VPC Object to search for peerings\n        host_vpc (Host VPC object): Can be Null as well, to check if specific host_vpc\n                                    peering is done.\n    Returns:\n        VPC peering (array): Array list of vpc peerings.\n    '
    output = []
    vpc_peerings = vpc.accepted_vpc_peering_connections.all()
    output.extend([vp for vp in vpc_peerings if ((vp.status.get('Code') == 'active') and ((host_vpc is None) or (vp.requester_vpc == host_vpc)))])
    vpc_peerings = vpc.requested_vpc_peering_connections.all()
    output.extend([vp for vp in vpc_peerings if ((vp.status.get('Code') == 'active') and ((host_vpc is None) or (vp.accepter_vpc == host_vpc)))])
    return output