]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_nht.c
bgpd: Abstract bgp_static retrieving/setting from info pointer
[mirror_frr.git] / bgpd / bgp_nht.c
index 8b6ff3fa222312f5e36a5c92a7eca15b7c7bd12a..3d2a4ee0dde9db8b1b1995d5ec758f6042214d1e 100644 (file)
@@ -38,6 +38,7 @@
 #include "bgpd/bgp_attr.h"
 #include "bgpd/bgp_nexthop.h"
 #include "bgpd/bgp_debug.h"
+#include "bgpd/bgp_errors.h"
 #include "bgpd/bgp_nht.h"
 #include "bgpd/bgp_fsm.h"
 #include "bgpd/bgp_zebra.h"
@@ -343,7 +344,8 @@ void bgp_parse_nexthop_update(int command, vrf_id_t vrf_id)
 
        bgp = bgp_lookup_by_vrf_id(vrf_id);
        if (!bgp) {
-               zlog_err(
+               flog_err(
+                       EC_BGP_NH_UPD,
                        "parse nexthop update: instance not found for vrf_id %u",
                        vrf_id);
                return;
@@ -590,7 +592,8 @@ static void sendmsg_zebra_rnh(struct bgp_nexthop_cache *bnc, int command)
                               bnc->bgp->vrf_id);
        /* TBD: handle the failure */
        if (ret < 0)
-               zlog_warn("sendmsg_nexthop: zclient_send_message() failed");
+               flog_warn(EC_BGP_ZEBRA_SEND,
+                         "sendmsg_nexthop: zclient_send_message() failed");
 
        if ((command == ZEBRA_NEXTHOP_REGISTER)
            || (command == ZEBRA_IMPORT_ROUTE_REGISTER))