You can configure a BGP peer group.
# efa tenant service bgp peer-group create --name <peer-group-name> --tenant <tenant-name> --description <description> --pg-name <switch-ip:pg-name> --pg-asn <switchip:pg-name,remote-asn> --pg-bfd <switch-ip:pg-name,bfd-enable(true/false),interval,minrx,multiplier> --pg-next-hop-self <switch-ip:pg-name,next-hop-self(true/false/always)> –pg-update-source-ip <switch-ip:pg-name,update-source-ip>
The following example creates a BGP peer group:
# efa tenant service bgp peer-group create –name ten1BgpPG1 --tenant tenant1 --pg-name 10.24.80.134:pg1 --pg-asn 10.24.80.134:pg1,6000 --pg-bfd 10.24.80.134:pg1,true,100,200,5 --pg-next-hop-self 10.24.80.134:pg1,true --pg-update-source-ip 10.24.80.134:pg1,10.20.30.40
# efa tenant service bgp peer-group update --name <peer-group-name> --tenant <tenant-name> --operation <peer-group-add|peer-group-delete|peer-group-desc-update> --description <description> --pg-name <switch-ip:pg-name> --pg-asn <switch-ip:pg-name,remote-asn> --pg-bfd <switch-ip:pg-name,bfd-enable(true/false),interval,min-rx,multiplier> --pg-next-hop-self <switch-ip:pg-name,next-hop-self(true/false/always)> --pg-update-source-ip <switch-ip:pg-name,update-source-ip>
The following is an example of updating a BGP peer group:
efa tenant service bgp peer-group update --name ten1BgpPG1 --tenant tenant1 --operation peer-group-add --pg-name 10.24.80.134:pg2 –pg-asn 10.24.80.134:pg2,7000 --pg-bfd 10.24.80.134:pg2,true,200,300,6 --pg-next-hop-self 10.24.80.134:pg2,true --pg-update-source-ip 10.24.80.134:pg2,10.20.30.41
efa tenant service bgp peer-group show ===================================================================================================== Name : ten1BgpPG1 Tenant : tenant1 State : bs-state-created +--------------+----------+-------+-----+--------+---------+----+-----------+------------+----------+ | Device IP |PeerGroup | REMOTE| ASN | BFD | BFD | BFD| BFD | Dev-state | App-state| | | | ASN | | Enabled| Interval| Rx | Multiplier| | | +--------------+----------+-------+-----+--------+---------+----+-----------+------------+----------+ | 10.24.80.134 | pg1 | 6000 | true| 100 | 200 | 5 |provisioned| cfg-in-sync| | | 10.24.80.134 | pg2 | 7000 | true| 200 | 300 | 6 |provisioned| cfg-in-sync| | +--------------+----------+-------+-----+--------+---------+----+-----------+------------+----------+ =====================================================================================================
# efa tenant service bgp peer-group delete --name ten1BgpPG1 --tenant tenant1
Rack1-Device1# show running-config router bgp router bgp local-as 100 neighbor pg1 peer-group neighbor pg1 remote-as 6000 neighbor pg1 update-source 10.20.30.40 neighbor pg1 next-hop-self neighbor pg1 bfd neighbor pg1 bfd interval 100 min-rx 200 multiplier 5 neighbor pg2 peer-group neighbor pg2 remote-as 7000 neighbor pg2 update-source 10.20.30.41 neighbor pg2 next-hop-self neighbor pg2 bfd neighbor pg2 bfd interval 200 min-rx 300 multiplier 6 address-family ipv4 unicast ! address-family ipv6 unicast ! address-family l2vpn evpn !