]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: remove one EC log 12590/head
authoranlan_cs <vic.lan@pica8.com>
Sun, 13 Nov 2022 04:52:09 +0000 (23:52 -0500)
committeranlan_cs <vic.lan@pica8.com>
Wed, 4 Jan 2023 08:49:39 +0000 (03:49 -0500)
When creating one interface "vxlan66" ( ip link add vxlan66 type vxlan ... ),
which initially maintains down status, saw one unexpected EC log:

```
zebra[37906]: [ZAG0W-VSNSD] interface vxlan66 vrf default(0) index 35 becomes active.
zebra[37906]: [HPWGA-Y527W] IFLA_VXLAN_LINK missing from VXLAN IF message
...
zebra[37906]: [W6BZR-YZPAB] RTM_NEWLINK update for vxlan66(35) sl_type 0 master 0 flags 0x1002
zebra[37906]: [MR3ZF-ATDBY] Intf vxlan66(35) has gone DOWN
zebra[37906]: [T44X9-FFNVB] Intf vxlan66(35) L2-VNI 66 is DOWN
zebra[37906]: [KEGYY-K8XVV] Send EVPN_DEL 66 to bgp
zebra[37906]: [HPWGA-Y527W] IFLA_VXLAN_LINK missing from VXLAN IF message
bgpd[37911]: [TV0XP-3WR0A] Rx VNI del VRF default VNI 66 tenant-vrf default SVI ifindex 0
bgpd[37911]: [MDW89-YAXJG][EC 33554497] 0: VNI hash entry for VNI 66 not found at DEL
```

Since commit `6f908ded80eeba40a850e8d1f6246fb3ed31e648` support interfaces
from down to down, and bgpd doesn't know "VNI 66" at all. So, remove this
EC log.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
bgpd/bgp_evpn.c

index 7a8a91b00bde0af203b3be9579f947e665036f63..286f47b2bc8e35faa59da5351eec22a5ac99f20f 100644 (file)
@@ -6436,14 +6436,8 @@ int bgp_evpn_local_vni_del(struct bgp *bgp, vni_t vni)
 
        /* Locate VNI hash */
        vpn = bgp_evpn_lookup_vni(bgp, vni);
-       if (!vpn) {
-               if (bgp_debug_zebra(NULL))
-                       flog_warn(
-                               EC_BGP_EVPN_VPN_VNI,
-                               "%u: VNI hash entry for VNI %u not found at DEL",
-                               bgp->vrf_id, vni);
+       if (!vpn)
                return 0;
-       }
 
        /* Remove all local EVPN routes and schedule for processing (to
         * withdraw from peers).