def bgp_type(site, client, asn_attribute):
    """ProtocolType instance of 'bgp' with 'asn' as required attribute."""
    pt_uri = site.list_uri('protocoltype')
    resp = client.create(pt_uri, name='bgp', required_attributes=['asn'])
    return resp.json()