summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_vty.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index eae9db5a61..9e81831ac7 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -159,10 +159,8 @@ static const char *get_afi_safi_vty_str(afi_t afi, safi_t safi)
return "IPv6 Flowspec";
else if (afi == AFI_L2VPN && safi == SAFI_EVPN)
return "L2VPN EVPN";
- else {
- flog_err(EC_LIB_DEVELOPMENT, "New afi/safi that needs to be taken care of?");
+ else
return "Unknown";
- }
}
/*
@@ -199,10 +197,8 @@ static const char *get_afi_safi_json_str(afi_t afi, safi_t safi)
return "ipv6Flowspec";
else if (afi == AFI_L2VPN && safi == SAFI_EVPN)
return "l2VpnEvpn";
- else {
- flog_err(EC_LIB_DEVELOPMENT, "New afi/safi that needs to be taken care of?");
+ else
return "Unknown";
- }
}
/* Utility function to get address family from current node. */