]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/netns_linux.c
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / lib / netns_linux.c
index e3170fee1ef43a8b53b42e8cdd45541b4839088f..ef2f5dc95326d7ddc2d8f48511632f757ee445df 100644 (file)
@@ -219,7 +219,7 @@ static int ns_enable_internal(struct ns *ns, void (*func)(ns_id_t, void *))
                }
 
                if (!ns_is_enabled(ns)) {
-                       flog_err_sys(LIB_ERR_SYSTEM_CALL,
+                       flog_err_sys(EC_LIB_SYSTEM_CALL,
                                     "Can not enable NS %u: %s!", ns->ns_id,
                                     safe_strerror(errno));
                        return 0;
@@ -227,9 +227,9 @@ static int ns_enable_internal(struct ns *ns, void (*func)(ns_id_t, void *))
 
                /* Non default NS. leave */
                if (ns->ns_id == NS_UNKNOWN) {
-                       flog_err(LIB_ERR_NS,
-                                 "Can not enable NS %s %u: Invalid NSID",
-                                 ns->name, ns->ns_id);
+                       flog_err(EC_LIB_NS,
+                                "Can not enable NS %s %u: Invalid NSID",
+                                ns->name, ns->ns_id);
                        return 0;
                }
                if (func)
@@ -441,7 +441,7 @@ char *ns_netns_pathname(struct vty *vty, const char *name)
                                pathname,
                                safe_strerror(errno));
                else
-                       flog_warn(LIB_WARN_LINUX_NS,
+                       flog_warn(EC_LIB_LINUX_NS,
                                  "Invalid pathname for %s: %s", pathname,
                                  safe_strerror(errno));
                return NULL;
@@ -452,7 +452,7 @@ char *ns_netns_pathname(struct vty *vty, const char *name)
                        vty_out(vty, "NS name (%s) invalid: too long (>%d)\n",
                                check_base, NS_NAMSIZ - 1);
                else
-                       flog_warn(LIB_WARN_LINUX_NS,
+                       flog_warn(EC_LIB_LINUX_NS,
                                  "NS name (%s) invalid: too long (>%d)",
                                  check_base, NS_NAMSIZ - 1);
                return NULL;
@@ -487,8 +487,8 @@ void ns_init_management(ns_id_t default_ns_id, ns_id_t internal_ns)
        ns_init();
        default_ns = ns_get_created_internal(NULL, NULL, default_ns_id);
        if (!default_ns) {
-               flog_err(LIB_ERR_NS, "%s: failed to create the default NS!",
-                         __func__);
+               flog_err(EC_LIB_NS, "%s: failed to create the default NS!",
+                        __func__);
                exit(1);
        }
        if (have_netns()) {
@@ -505,8 +505,8 @@ void ns_init_management(ns_id_t default_ns_id, ns_id_t internal_ns)
 
        /* Enable the default NS. */
        if (!ns_enable(default_ns, NULL)) {
-               flog_err(LIB_ERR_NS, "%s: failed to enable the default NS!",
-                         __func__);
+               flog_err(EC_LIB_NS, "%s: failed to enable the default NS!",
+                        __func__);
                exit(1);
        }
 }