summaryrefslogtreecommitdiff
path: root/zebra/if_netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/if_netlink.c')
-rw-r--r--zebra/if_netlink.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c
index 26aef2bb0a..e09d30a207 100644
--- a/zebra/if_netlink.c
+++ b/zebra/if_netlink.c
@@ -80,7 +80,7 @@ static void set_ifindex(struct interface *ifp, ifindex_t ifi_index,
if (((oifp = if_lookup_by_index_per_ns(zns, ifi_index)) != NULL)
&& (oifp != ifp)) {
if (ifi_index == IFINDEX_INTERNAL)
- zlog_ferr(
+ flog_err(
LIB_ERR_INTERFACE,
"Netlink is setting interface %s ifindex to reserved internal value %u",
ifp->name, ifi_index);
@@ -90,7 +90,7 @@ static void set_ifindex(struct interface *ifp, ifindex_t ifi_index,
"interface index %d was renamed from %s to %s",
ifi_index, oifp->name, ifp->name);
if (if_is_up(oifp))
- zlog_ferr(
+ flog_err(
LIB_ERR_INTERFACE,
"interface rename detected on up interface: index %d was renamed from %s to %s, results are uncertain!",
ifi_index, oifp->name, ifp->name);
@@ -310,7 +310,7 @@ static void netlink_vrf_change(struct nlmsghdr *h, struct rtattr *tb,
vrf = vrf_get((vrf_id_t)ifi->ifi_index,
name); // It would create vrf
if (!vrf) {
- zlog_ferr(LIB_ERR_INTERFACE, "VRF %s id %u not created",
+ flog_err(LIB_ERR_INTERFACE, "VRF %s id %u not created",
name, ifi->ifi_index);
return;
}
@@ -332,7 +332,7 @@ static void netlink_vrf_change(struct nlmsghdr *h, struct rtattr *tb,
/* Enable the created VRF. */
if (!vrf_enable(vrf)) {
- zlog_ferr(LIB_ERR_INTERFACE,
+ flog_err(LIB_ERR_INTERFACE,
"Failed to enable VRF %s id %u", name,
ifi->ifi_index);
return;
@@ -376,7 +376,7 @@ static int get_iflink_speed(struct interface *interface)
/* use ioctl to get IP address of an interface */
if (zserv_privs.change(ZPRIVS_RAISE))
- zlog_ferr(LIB_ERR_PRIVILEGES, "Can't raise privileges");
+ flog_err(LIB_ERR_PRIVILEGES, "Can't raise privileges");
sd = vrf_socket(PF_INET, SOCK_DGRAM, IPPROTO_IP, interface->vrf_id,
NULL);
if (sd < 0) {
@@ -388,7 +388,7 @@ static int get_iflink_speed(struct interface *interface)
/* Get the current link state for the interface */
rc = vrf_ioctl(interface->vrf_id, sd, SIOCETHTOOL, (char *)&ifdata);
if (zserv_privs.change(ZPRIVS_LOWER))
- zlog_ferr(LIB_ERR_PRIVILEGES, "Can't lower privileges");
+ flog_err(LIB_ERR_PRIVILEGES, "Can't lower privileges");
if (rc < 0) {
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug(
@@ -917,7 +917,7 @@ int netlink_interface_addr(struct nlmsghdr *h, ns_id_t ns_id, int startup)
ifp = if_lookup_by_index_per_ns(zns, ifa->ifa_index);
if (ifp == NULL) {
- zlog_ferr(
+ flog_err(
LIB_ERR_INTERFACE,
"netlink_interface_addr can't find interface by index %d",
ifa->ifa_index);