code: def add_bgp_peering(self, bgp_peering, external_bgp_peer=None,
                          network=None):
          
          destination = [external_bgp_peer] if external_bgp_peer else []
          routing_node_gateway = RoutingNodeGateway(bgp_peering,
              destinations=destination)
          return self._add_gateway_node('bgp_peering', routing_node_gateway, network)
docs: Add a BGP configuration to this routing interface. 
          If the interface has multiple ip addresses, all networks will receive
          the BGP peering by default unless the ``network`` parameter is
          specified.
          
          Example of adding BGP to an interface by ID::
  
              interface = engine.routing.get(0)
              interface.add_bgp_peering(
                  BGPPeering('mypeer'),
                  ExternalBGPPeer('neighbor'))
  
          :param BGPPeering bgp_peering: BGP Peer element
          :param ExternalBGPPeer,Engine external_bgp_peer: peer element or href
          :param str network: if network specified, only add OSPF to this network
              on interface
          :raises ModificationAborted: Change must be made at the interface level
          :raises UpdateElementFailed: failed to add BGP
          :return: Status of whether the route table was updated
          :rtype: bool