CmdID

CmdID / aws / aws directconnect

aws directconnect delete-bgp-peer

Deletes the specified BGP peer on the specified virtual interface with the specified customer address and ASN. AWS CLI reference

1 example 5 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To delete a BGP peer from a virtual interface

The following delete-bgp-peer example deletes the IPv6 BGP peer from virtual interface dxvif-fg1vuj3d.

aws directconnect delete-bgp-peer --virtual-interface-id dxvif-fg1vuj3d --asn 64600 --customer-address 2001:db8:1100:2f0:0:1:9cb4:4216/125Identify
--virtual-interface-idThe ID of the virtual interface.
--asnThe autonomous system number (ASN).
--customer-addressThe IP address assigned to the customer interface.
Its output, shortened
{
    "virtualInterface": {
        "virtualInterfaceState": "available",
        "asn": 65000,
        "vlan": 125,
        "customerAddress": "169.254.255.2/30",
        "ownerAccount": "123456789012",
        "connectionId": "dxcon-fguhmqlc",
        "addressFamily": "ipv4",
        "virtualGatewayId": "vgw-f9eb0c90",
        "virtualInterfaceId": "dxvif-fg1vuj3d",
        "authKey": "0xC_ukbCerl6EYA0example",
        "routeFilterPrefixes": [],
        "location": "EqDC2",
        "bgpPeers": [
            {
                "bgpStatus": "down",
                "customerAddress": "169.254.255.2/30",
                "addressFamily": "ipv4",
                "authKey": "0xC_ukbCerl6EYA0uexample",
                "bgpPeerState": "available",
                "amazonAddress": "169.254.255.1/30",
                "asn": 65000
            },
            {
                "bgpStatus": "down",
                "customerAddress": "2001:db8:1100:2f0:0:1:9cb4:4216/125",
                "addressFamily": "ipv6",
                "authKey": "0xS27kAIU_VHPjjAexample",
                "bgpPeerState": "deleting",
… 10 more lines

For more information, see Delete a Direct Connect virtual interface BGP peer in the AWS Direct Connect User Guide.

Options

5 in the AWS CLI reference
--asn-longThe long ASN for the BGP peer to be deleted from a Direct Connect virtual interface.
--asnThe autonomous system number (ASN).
--bgp-peer-idThe ID of the BGP peer.
--customer-addressThe IP address assigned to the customer interface.
--virtual-interface-idThe ID of the virtual interface.