efa tenant service bgp peer update

Adds, deletes, or updates a BGP peer instance.

Syntax

efa tenant service bgp peer update [ --description description| --help | --ipv4-uc-dyn-nbr string | --ipv4-uc-nbr string | --ipv4-uc-nbr-bfd string | --ipv4-uc-nbr-next-hop-self string | --ipv4-uc-nbr-update-source-ip string | --ipv6-uc-dyn-nbr string | --ipv6-uc-nbr string| --ipv6-uc-nbr-bfd string| --ipv6-uc-nbr-next-hop-self string | --ipv6-uc-nbr-update-source-ip string | --name peer-name | --operation peer-add | peer-delete | desc-update |--tenant tenant-name]

Parameters

--description description
Describes the BGP service.
--help
Displays help for the command.
--ipv4-uc-dyn-nbr string
Identifies the IPv4 unicast dynamic neighbor with a string in the following format: device-ip,vrf-name:ipv4-listen-range,peer-group-name,listen-limit. For example: 10.x.x.x,red:11::22/127. The listen-limit value is optional.
--ipv4-uc-nbr string
Identifies the IPv4 unicast neighbor. For peer-add operations, enter a string in the following format: device-ip,vrf-name:ipv4-neighbor,remote-as. For example: 10.x.x.x,red:10.20.30.40,5000. The remote-as value is not required for peer-delete operations.
--ipv4-uc-nbr-bfd string
Identifies the IPv4 BFD unicast neighbor with a string in the following format: device-ip,vrf-name:ipv4-neighbor,bfd-enable(true/false),bfd-interval,bfd-min-rx,bfd-multiplier. For example: 10.x.x.x,red:10.20.30.40,true,100,200,5. BFD parameters are optional for peer-add operations and not required for peer-delete operations.
--ipv4-uc-nbr-next-hop-self string
Identifies the next-hop-self for the IPv4 unicast neighbor with a string in the following format: device-ip,vrf-name:ipv4-neighbor,next-hop-self(true/false/always). For example: 10.x.x.x,red:10.y.y.y,true.
--ipv4-uc-nbr-update-source-ip string
Updates the source IP for the IPv4 unicast neighbor with a string in the following format: device-ip,vrf-name:ipv4-neighbor,update-source-ip. For example: 10.x.x.x,red:10.y.y.y,11.x.x.x.
--ipv6-uc-dyn-nbr string
Identifies the IPv6 unicast dynamic neighbor with a string in the following format: device-ip,vrf-name:ipv6-listen-range,peer-group-name,listen-limit. The listen-limit value is optional.
--ipv6-uc-nbr string
Identifies the IPv6 unicast neighbor. For peer-add operations, enter a string in the following format: device-ip,vrf-name:ipv6-neighbor,remote-as. For example: 10.x.x.x,red:10::40,5000. The remote-as value is not required for peer-delete operations.
--ipv6-uc-nbr-bfd string
Identifies the IPv6 BFD unicast neighbor with a string in the following format: device-ip,vrf-name:ipv6-neighbor,bfd-enable(true/false),bfd-interval,bfd-min-rx,bfd-multiplier. For example: 10.x.x.x,red:10::40,true,100,200,5. BFD parameters are optional for peer-add operations and are not required for peer-delete operations.
--ipv6-uc-nbr-next-hop-self string
Identifies the next-hop-self for the IPv6 unicast neighbor with a string in the following format: device-ip,vrf-name:ipv6-neighbor,next-hop-self(true/false/always). For example: 10.x.x.x,red:10::40,true.
--ipv6-uc-nbr-update-source-ip string
Updates the source IP for the IPv6 unicast neighbor with a string in the following format: device-ip,vrf-name:ipv6-neighbor,update-source-ip. For example: 10.x.x.x,red:10::40,11::22.
--name peer-name
Identifies the name of the BGP peer instance.
--operation peer-add | peer-delete | desc-update
Identifies the type of operation you are performing: add a peer, delete a peer, or update a description.
--tenant tenant-name
Identifies the name of the tenant.

Examples

The following example adds a new peer to an existing instance B2.

(efa:extreme)extreme@node-1:~$ efa tenant service bgp peer update --name B2 --tenant tenant11 --operation peer-add --ipv6-uc-nbr 10.20.216.15,blue11:18::1,98100  --ipv4-uc-nbr 10.20.216.16,blue11:1.1.1.12,95001

BGP service updated successfully.

--- Time Elapsed: 32.856185284s ---

The following example deletes a BGP peer for the specified VRF (red) in the bgpservice1 instance for tenant1. You can use the show command to verify the changes.

efa tenant service bgp peer update --name bgpservice1 --tenant tenant1 
--operation peer-delete --ipv4-uc-nbr 10.24.80.134,red:10.20.30.40
efa tenant service bgp show

===============================================================================================
Name    :  bgpservice1
Tenant  :  tenant1
State   :  bs-state-created
+--------------+-----+------+---------+-------------+------------+-------------+--------------+
|  Device IP   | VRF | AFI  |  SAFI   |  REMOTE IP  | REMOTE ASN | BFD Enabled | BFD Interval |
+--------------+-----+------+---------+-------------+------------+-------------+--------------+
| 10.24.80.134 | red | ipv6 | unicast | 10::40      | 5000       | true        | 100          |
+--------------+-----+------+---------+-------------+------------+-------------+--------------+

+--------+----------------+-------------+-------------+
| BFD Rx | BFD Multiplier |  Dev-state  |  App-state  |
+--------+----------------+-------------+-------------+
| 200    | 7              | provisioned | cfg-in-sync |
+--------+----------------+-------------+-------------+
================================================================================================