code: def create(cls, name, neighbor_as, neighbor_ip,
                 neighbor_port=179, comment=None):
          
          json = {'name': name,
                  'neighbor_ip': neighbor_ip,
                  'neighbor_port': neighbor_port,
                  'comment': comment}
  
          neighbor_as_ref = element_resolver(neighbor_as)
          json.update(neighbor_as=neighbor_as_ref)
  
          return ElementCreator(cls, json)
docs: Create an external BGP Peer. 
  
          :param str name: name of peer
          :param str,AutonomousSystem neighbor_as_ref: AutonomousSystem
              element or href. 
          :param str neighbor_ip: ip address of BGP peer
          :param int neighbor_port: port for BGP, default 179.
          :raises CreateElementFailed: failed creating
          :return: instance with meta
          :rtype: ExternalBGPPeer