BGP Peer Group

BGP Peer Group Instance Create

# efa tenant service bgp peer-group create --name <peer-group-name> --tenant <tenant-name> --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)> --pg-update-source-ip <switch-ip:pg-name,update-source-ip>

Example

# 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

BGP Peer Group Instance Update - Peer Group Add

# 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)> --pg-update-source-ip <switch-ip:pg-name,update-source-ip>

Example

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

BGP Peer Group Instance Show

efa tenant service bgp peer-group show
==================================================================================================================================
Name : ten1BgpPG1
Tenant : tenant1
State : bs-state-created
+--------------+-------------+------------+-------------+--------------+--------+----------------+-------------+-------------+
| Device IP | PeerGroup | REMOTE ASN | BFD Enabled | BFD Interval | BFD Rx | BFD Multiplier | Dev-state | App-state |
+--------------+-------------+------------+-------------+--------------+--------+----------------+-------------+-------------+
| 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 |
+--------------+-------------+------------+-------------+--------------+-------------------------+-------------+-------------+
==================================================================================================================================

Example

Switch Config

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
!

BGP Peer Group Instance Update - Peer Group Delete

# efa tenant service bgp peer-group update --name ten1BgpPG1 --tenant tenant1 --operation peer-group-delete --pg-name 10.24.80.134:pg2

Example

# efa tenant service bgp peer-group show
==================================================================================================================================
Name : ten1BgpPG1
Tenant : tenant1
State : bs-state-created
+--------------+-------------+------------+-------------+--------------+--------+----------------+-------------+-------------+
| Device IP | PeerGroup | REMOTE ASN | BFD Enabled | BFD Interval | BFD Rx | BFD Multiplier | Dev-state | App-state |
+--------------+-------------+------------+-------------+--------------+--------+----------------+-------------+-------------+
| 10.24.80.134 | pg1 | 6000 | true | 100 | 200 | 5 | provisioned | cfg-in-sync | +--------------+-------------+------------+-------------+--------------+-------------------------+-------------+-------------+
==================================================================================================================================

BGP Peer Group Instance Delete

# efa tenant service bgp peer-group delete --name ten1BgpPG1 --tenant tenant1