Delete BGP Neighbors from Leaf Device

The following sample output deletes BGP neighbors from a leaf device:

10.20.246.4
NH-Leaf2# show bgp evpn summary
  BGP4 Summary
  Router ID: 172.31.254.2   Local AS Number: 65002
  Confederation Identifier: not configured
  Confederation Peers:
  Maximum Number of IP ECMP Paths Supported for Load Sharing: 1
  Number of Neighbors Configured: 2, UP: 2
  Number of Routes Installed: 5, Uses 830 bytes
  Number of Routes Advertising to All Neighbors: 2 (1 entries), Uses 76 bytes
  Number of Attribute Entries Installed: 4, Uses 764 bytes
  d: Dynamically created based on a listen range command
  Dynamically created neighbors: 0/100(max)
  A: Auto Discovered Neighbors using LLDP
  Auto Neighbors Count: 0
  '+': Data in InQueue '>': Data in OutQueue '-': Clearing
  '*': Update Policy 'c': Group change 'p': Group change Pending
  'r': Restarting 's': Stale '^': Up before Restart '<': EOR waiting
  '$': Learning-Phase (for Delayed Route Calculation)
  '#': RIB-in Phase
  'D': Dampening enabled
  Neighbor Address  AS#         State     Time     Rt:Accepted Filtered Sent     ToSend
  10.10.10.41       64512       ESTAB   0h4m40s       2        0        1        0
  10.10.10.43       64512       ESTAB   2h56m9s       2        0        1        0
NH-Leaf2# conf t
Entering configuration mode terminal
NH-Leaf2(config)# router bgp
NH-Leaf2(config-bgp-router)# do show running-config router bgp
router bgp
 local-as 65002
 capability as4-enable
 fast-external-fallover
 neighbor spine-group peer-group
 neighbor spine-group remote-as 64512
 neighbor spine-group description To Spine
 neighbor spine-group bfd
 neighbor 10.10.10.41 peer-group spine-group
 neighbor 10.10.10.43 peer-group spine-group
 neighbor 10.20.20.16 remote-as 65002
 neighbor 10.20.20.16 next-hop-self
 neighbor 10.20.20.16 bfd
 address-family ipv4 unicast
  network 172.31.254.110/32
  maximum-paths 8
  graceful-restart
 !
 address-family ipv6 unicast
 !
 address-family l2vpn evpn
  graceful-restart
  neighbor spine-group encapsulation vxlan
  neighbor spine-group next-hop-unchanged
  neighbor spine-group enable-peer-as-check
  neighbor spine-group activate
 !
!
NH-Leaf2(config-bgp-router)# no  neighbor 10.10.10.41 peer-group spine-group
%Warning: Clean up BGP routes for peer

10.20.246.5
NHF-Leaf1# show bgp evpn summary
  BGP4 Summary
  Router ID: 172.31.254.156   Local AS Number: 65001
  Confederation Identifier: not configured
  Confederation Peers:
  Maximum Number of IP ECMP Paths Supported for Load Sharing: 1
  Number of Neighbors Configured: 2, UP: 2
  Number of Routes Installed: 5, Uses 830 bytes
  Number of Routes Advertising to All Neighbors: 2 (1 entries), Uses 76 bytes
  Number of Attribute Entries Installed: 4, Uses 764 bytes
  d: Dynamically created based on a listen range command
  Dynamically created neighbors: 0/100(max)
  A: Auto Discovered Neighbors using LLDP
  Auto Neighbors Count: 0
  '+': Data in InQueue '>': Data in OutQueue '-': Clearing
  '*': Update Policy 'c': Group change 'p': Group change Pending
  'r': Restarting 's': Stale '^': Up before Restart '<': EOR waiting
  '$': Learning-Phase (for Delayed Route Calculation)
  '#': RIB-in Phase
  'D': Dampening enabled
  Neighbor Address  AS#         State     Time     Rt:Accepted Filtered Sent     ToSend
  10.10.10.32       64512       ESTAB   0h4m31s       2        0        1        0
  10.10.10.34       64512       ESTAB   0h39m28s      2        0        1        0
NHF-Leaf1# conf t
Entering configuration mode terminal
NHF-Leaf1(config)# do show running-config router bgp
router bgp
 local-as 65001
 capability as4-enable
 fast-external-fallover
 neighbor spine-group peer-group
 neighbor spine-group remote-as 64512
 neighbor spine-group description To Spine
 neighbor spine-group bfd
 neighbor 10.10.10.32 peer-group spine-group
 neighbor 10.10.10.34 peer-group spine-group
 neighbor 10.20.20.14 remote-as 65001
 neighbor 10.20.20.14 next-hop-self
 neighbor 10.20.20.14 bfd
 address-family ipv4 unicast
  network 172.31.254.210/32
  maximum-paths 8
  graceful-restart
 !
 address-family ipv6 unicast
 !
 address-family l2vpn evpn
  graceful-restart
  neighbor spine-group encapsulation vxlan
  neighbor spine-group next-hop-unchanged
  neighbor spine-group enable-peer-as-check
  neighbor spine-group activate
 !
!
NHF-Leaf1(config)# router bgp
NHF-Leaf1(config-bgp-router)# no neighbor 10.10.10.32 peer-group spine-group
%Warning: Clean up BGP routes for peer



(efa:user)user@dev-server:~$ efa fabric show --name fab3

Fabric Name: fab3, Fabric Description: , Fabric Stage: 3, Fabric Type: clos, Fabric Status: configure-success, Fabric Health: Black
+-------------+-----+-----------+-------+-------+--------------+---------------+-------------------+-----------------+---------+-------+
| IP ADDRESS  | POD | HOST NAME |  ASN  | ROLE  | DEVICE STATE |   APP STATE   | CONFIG GEN REASON | PENDING CONFIGS | VTLB ID | LB ID |
+-------------+-----+-----------+-------+-------+--------------+---------------+-------------------+-----------------+---------+-------+
| 10.20.246.1 |     | NH-1      | 64512 | spine | provisioned  | cfg in-sync   | NA                | NA              | NA      | 1     |
| 10.20.246.2 |     | NH-2      | 64512 | spine | provisioned  | cfg in-sync   | NA                | NA              | NA      | 1     |
| 10.20.246.3 |     | NH-Leaf1  | 65002 | leaf  | provisioned  | cfg in-sync   | NA                | NA              | 2       | 1     |
| 10.20.246.4 |     | NH-Leaf2  | 65002 | leaf  | provisioned  | cfg refreshed | BGPU              | BGP-C,INTIP-C   | 2       | 1     |
| 10.20.246.5 |     | NHF-Leaf1 | 65001 | leaf  | provisioned  | cfg refreshed | BGPU              | BGP-C           | 2       | 1     |
| 10.20.246.6 |     | NHF-Leaf2 | 65001 | leaf  | provisioned  | cfg in-sync   | NA                | NA              | 2       | 1     |
+-------------+-----+-----------+-------+-------+--------------+---------------+-------------------+-----------------+---------+-------+

CONFIG GEN REASON:
LA/LD - Link Add/Delete, IA/ID/IU - Interface Add/Delete/Update, PLC/PLD/PLU - IPPrefixList Create/Delete/Update
MD/MU - MCT Delete/Update, OD/OU - Overlay Gateway Delete/Update, EU/ED - Evpn Delete/Update, PC/PD/PU - RouterPim Create/Delete/Update
DD - Dependent Device Update, DA/DR - Device Add/ReAdd, ASN - Asn Update, SYS - System Properties Update
MD5 - BGP MD5 Password, BGPU - Router BGP Update, BGPLL - BGP Listen Limit, POU - Port Channel Update, NA - Not Applicable

PENDING CONFIGS:
MCT - MCT Cluster, O - Overlay Gateway, SYSP - System Properties, INTIP - Interface IP, BGP - Router BGP
C/D/U - Create/Delete/Update, PA/PD - Port Add/Port Delete

For App or Device Error/Failure reason, run "efa fabric error show" for details
For config refresh reason, run "efa fabric debug config-gen-reason" for details

--- Time Elapsed: 148.017748ms ---
(efa:user)user@dev-server:~$ efa fabric health show --name fab3
===============================================================================================================================================================
Fabric Name                             :  fab3
Fabric Type                             :  clos
Fabric Health                           :  Black
 Fabric Status                          :  configure-success
 Fabric Level Physical Topology Health  :  Green
Fabric Device Health
+-------------+-------+---------------------+-------------------+---------------+
| IP ADDRESS  | ROLE  | CONFIG STATE HEALTH | OPER STATE HEALTH | DEVICE HEALTH |
+-------------+-------+---------------------+-------------------+---------------+
| 10.20.246.6 | Leaf  | Green               | Green             | Green         |
| 10.20.246.5 | Leaf  | Red                 | Black             | Black         |
| 10.20.246.1 | Spine | Green               | Black             | Black         |
| 10.20.246.2 | Spine | Green               | Green             | Green         |
| 10.20.246.4 | Leaf  | Red                 | Black             | Black         |
| 10.20.246.3 | Leaf  | Green               | Green             | Green         |
+-------------+-------+---------------------+-------------------+---------------+

===============================================================================================================================================================
--- Time Elapsed: 38.149955ms ---


(efa:user)user@dev-server:~$ efa fabric health show --name fab3 --detail
===============================================================================================================================================================
Fabric Name                              :  fab3
Fabric Type                              :  clos
Fabric Health                            :  Black
 Fabric Status                           :  configure-success
 Fabric Level Physical Topology Health   :  Green
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Fabric Device Health

 Device IP [Role]                       :  10.20.246.6 [Leaf]
  Device Health                         :  Green
  Configuration State Health            :  Green
    Dev State                           :  provisioned
    App State                           :  cfg in-sync
  Operational State Health              :  Green
    Cluster Health                      :  Green
    Physical Topology Device Health     :  Green
    Underlay Topology Device Health     :  Green
 --------------------------------------------------------
 Device IP [Role]                       :  10.20.246.5 [Leaf]
  Device Health                         :  Black
  Configuration State Health            :  Red
    Dev State                           :  provisioned
    App State                           :  cfg refreshed
  Operational State Health              :  Black
    Cluster Health                      :  Green
    Physical Topology Device Health     :  Green
    Underlay Topology Device Health     :  Black
    Device underlay topology errors
+------------------+-----------------------+-------------------------+-------------+-------------------+------------------------+-------------+--------------------+---------------+----------------+-------------------------+
| SOURCE DEVICE IP | DESTINATION DEVICE IP | SOURCE DEVICE ROUTER ID | NEIGHBOR IP | SOURCE DEVICE ASN | DESTINATION DEVICE ASN |     VRF     | NEIGHBOR AFI STATE | NEIGHBOR SAFI | UNDERLAY STATE |          ERROR          |
+------------------+-----------------------+-------------------------+-------------+-------------------+------------------------+-------------+--------------------+---------------+----------------+-------------------------+
| 10.20.246.5      | 10.20.246.1           | 172.31.254.156          | 10.10.10.32 | 65001             | 64512                  | default-vrf | l2vpn              | evpn          |                | neighbor_not_configured |
| 10.20.246.5      | 10.20.246.1           | 172.31.254.156          | 10.10.10.32 | 65001             | 64512                  | default-vrf | ipv4               | unicast       |                | neighbor_not_configured |
+------------------+-----------------------+-------------------------+-------------+-------------------+------------------------+-------------+--------------------+---------------+----------------+-------------------------+
 --------------------------------------------------------
 Device IP [Role]                       :  10.20.246.1 [Spine]
  Device Health                         :  Black
  Configuration State Health            :  Green
    Dev State                           :  provisioned
    App State                           :  cfg in-sync
  Operational State Health              :  Black
    Physical Topology Device Health     :  Green
    Underlay Topology Device Health     :  Black
    Device underlay topology errors
+------------------+-----------------------+-------------------------+-------------+-------------------+------------------------+-------------+--------------------+---------------+----------------+-------------------------+
| SOURCE DEVICE IP | DESTINATION DEVICE IP | SOURCE DEVICE ROUTER ID | NEIGHBOR IP | SOURCE DEVICE ASN | DESTINATION DEVICE ASN |     VRF     | NEIGHBOR AFI STATE | NEIGHBOR SAFI | UNDERLAY STATE |          ERROR          |
+------------------+-----------------------+-------------------------+-------------+-------------------+------------------------+-------------+--------------------+---------------+----------------+-------------------------+
| 10.20.246.1      | 10.20.246.5           | 172.31.254.144          | 10.10.10.33 | 64512             | 65001                  | default-vrf | ipv4               | unicast       | ACTIV          | session_not_established |
| 10.20.246.1      | 10.20.246.5           | 172.31.254.144          | 10.10.10.33 | 64512             | 65001                  | default-vrf | l2vpn              | evpn          | ACTIV          | session_not_established |
| 10.20.246.1      | 10.20.246.4           | 172.31.254.144          | 10.10.10.40 | 64512             | 65002                  | default-vrf | ipv4               | unicast       | CONN           | session_not_established |
| 10.20.246.1      | 10.20.246.4           | 172.31.254.144          | 10.10.10.40 | 64512             | 65002                  | default-vrf | l2vpn              | evpn          | CONN           | session_not_established |
+------------------+-----------------------+-------------------------+-------------+-------------------+------------------------+-------------+--------------------+---------------+----------------+-------------------------+
 --------------------------------------------------------
 Device IP [Role]                       :  10.20.246.2 [Spine]
  Device Health                         :  Green
  Configuration State Health            :  Green
    Dev State                           :  provisioned
    App State                           :  cfg in-sync
  Operational State Health              :  Green
    Physical Topology Device Health     :  Green
    Underlay Topology Device Health     :  Green
 --------------------------------------------------------
 Device IP [Role]                       :  10.20.246.4 [Leaf]
  Device Health                         :  Black
  Configuration State Health            :  Red
    Dev State                           :  provisioned
    App State                           :  cfg refreshed
  Operational State Health              :  Black
    Cluster Health                      :  Green
    Physical Topology Device Health     :  Green
    Underlay Topology Device Health     :  Black
    Device underlay topology errors
+------------------+-----------------------+-------------------------+-------------+-------------------+------------------------+-------------+--------------------+---------------+----------------+-------------------------+
| SOURCE DEVICE IP | DESTINATION DEVICE IP | SOURCE DEVICE ROUTER ID | NEIGHBOR IP | SOURCE DEVICE ASN | DESTINATION DEVICE ASN |     VRF     | NEIGHBOR AFI STATE | NEIGHBOR SAFI | UNDERLAY STATE |          ERROR          |
+------------------+-----------------------+-------------------------+-------------+-------------------+------------------------+-------------+--------------------+---------------+----------------+-------------------------+
| 10.20.246.4      | 10.20.246.1           | 172.31.254.2            | 10.10.10.41 | 65002             | 64512                  | default-vrf | l2vpn              | evpn          |                | neighbor_not_configured |
| 10.20.246.4      | 10.20.246.1           | 172.31.254.2            | 10.10.10.41 | 65002             | 64512                  | default-vrf | ipv4               | unicast       |                | neighbor_not_configured |
+------------------+-----------------------+-------------------------+-------------+-------------------+------------------------+-------------+--------------------+---------------+----------------+-------------------------+
 --------------------------------------------------------
 Device IP [Role]                       :  10.20.246.3 [Leaf]
  Device Health                         :  Green
  Configuration State Health            :  Green
    Dev State                           :  provisioned
    App State                           :  cfg in-sync
  Operational State Health              :  Green
    Cluster Health                      :  Green
    Physical Topology Device Health     :  Green
    Underlay Topology Device Health     :  Green
---------------------------------------------------------------------------------------------------------------------------------------------------------------

===============================================================================================================================================================
--- Time Elapsed: 44.977239ms ---