mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 10:37:29 +00:00
*: remove tabs from log messages
Some logging systems are, er, "allergic" to tabs in log messages. (RFC5424: "The syslog application SHOULD avoid octet values below 32") Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
0a8138dc74
commit
d6951e5ef9
@ -178,7 +178,7 @@ static int parse_peer_config(struct json_object *jo, struct bfd_peer_cfg *bpc)
|
|||||||
int family_type = (bpc->bpc_ipv4) ? AF_INET : AF_INET6;
|
int family_type = (bpc->bpc_ipv4) ? AF_INET : AF_INET6;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
|
|
||||||
log_debug("\tpeer: %s", bpc->bpc_ipv4 ? "ipv4" : "ipv6");
|
log_debug(" peer: %s", bpc->bpc_ipv4 ? "ipv4" : "ipv6");
|
||||||
|
|
||||||
JSON_FOREACH (jo, joi, join) {
|
JSON_FOREACH (jo, joi, join) {
|
||||||
key = json_object_iter_peek_name(&joi);
|
key = json_object_iter_peek_name(&joi);
|
||||||
@ -186,7 +186,7 @@ static int parse_peer_config(struct json_object *jo, struct bfd_peer_cfg *bpc)
|
|||||||
|
|
||||||
if (strcmp(key, "multihop") == 0) {
|
if (strcmp(key, "multihop") == 0) {
|
||||||
bpc->bpc_mhop = json_object_get_boolean(jo_val);
|
bpc->bpc_mhop = json_object_get_boolean(jo_val);
|
||||||
log_debug("\tmultihop: %s",
|
log_debug(" multihop: %s",
|
||||||
bpc->bpc_mhop ? "true" : "false");
|
bpc->bpc_mhop ? "true" : "false");
|
||||||
} else if (strcmp(key, "peer-address") == 0) {
|
} else if (strcmp(key, "peer-address") == 0) {
|
||||||
sval = json_object_get_string(jo_val);
|
sval = json_object_get_string(jo_val);
|
||||||
@ -197,7 +197,7 @@ static int parse_peer_config(struct json_object *jo, struct bfd_peer_cfg *bpc)
|
|||||||
__func__, __LINE__, sval);
|
__func__, __LINE__, sval);
|
||||||
error++;
|
error++;
|
||||||
}
|
}
|
||||||
log_debug("\tpeer-address: %s", sval);
|
log_debug(" peer-address: %s", sval);
|
||||||
} else if (strcmp(key, "local-address") == 0) {
|
} else if (strcmp(key, "local-address") == 0) {
|
||||||
sval = json_object_get_string(jo_val);
|
sval = json_object_get_string(jo_val);
|
||||||
if (strtosa(sval, &bpc->bpc_local) != 0
|
if (strtosa(sval, &bpc->bpc_local) != 0
|
||||||
@ -208,18 +208,19 @@ static int parse_peer_config(struct json_object *jo, struct bfd_peer_cfg *bpc)
|
|||||||
__func__, __LINE__, sval);
|
__func__, __LINE__, sval);
|
||||||
error++;
|
error++;
|
||||||
}
|
}
|
||||||
log_debug("\tlocal-address: %s", sval);
|
log_debug(" local-address: %s", sval);
|
||||||
} else if (strcmp(key, "local-interface") == 0) {
|
} else if (strcmp(key, "local-interface") == 0) {
|
||||||
bpc->bpc_has_localif = true;
|
bpc->bpc_has_localif = true;
|
||||||
sval = json_object_get_string(jo_val);
|
sval = json_object_get_string(jo_val);
|
||||||
if (strlcpy(bpc->bpc_localif, sval,
|
if (strlcpy(bpc->bpc_localif, sval,
|
||||||
sizeof(bpc->bpc_localif))
|
sizeof(bpc->bpc_localif))
|
||||||
> sizeof(bpc->bpc_localif)) {
|
> sizeof(bpc->bpc_localif)) {
|
||||||
log_debug("\tlocal-interface: %s (truncated)",
|
log_debug(
|
||||||
sval);
|
" local-interface: %s (truncated)",
|
||||||
|
sval);
|
||||||
error++;
|
error++;
|
||||||
} else {
|
} else {
|
||||||
log_debug("\tlocal-interface: %s", sval);
|
log_debug(" local-interface: %s", sval);
|
||||||
}
|
}
|
||||||
} else if (strcmp(key, "vrf-name") == 0) {
|
} else if (strcmp(key, "vrf-name") == 0) {
|
||||||
bpc->bpc_has_vrfname = true;
|
bpc->bpc_has_vrfname = true;
|
||||||
@ -227,43 +228,44 @@ static int parse_peer_config(struct json_object *jo, struct bfd_peer_cfg *bpc)
|
|||||||
if (strlcpy(bpc->bpc_vrfname, sval,
|
if (strlcpy(bpc->bpc_vrfname, sval,
|
||||||
sizeof(bpc->bpc_vrfname))
|
sizeof(bpc->bpc_vrfname))
|
||||||
> sizeof(bpc->bpc_vrfname)) {
|
> sizeof(bpc->bpc_vrfname)) {
|
||||||
log_debug("\tvrf-name: %s (truncated)", sval);
|
log_debug(" vrf-name: %s (truncated)",
|
||||||
|
sval);
|
||||||
error++;
|
error++;
|
||||||
} else {
|
} else {
|
||||||
log_debug("\tvrf-name: %s", sval);
|
log_debug(" vrf-name: %s", sval);
|
||||||
}
|
}
|
||||||
} else if (strcmp(key, "detect-multiplier") == 0) {
|
} else if (strcmp(key, "detect-multiplier") == 0) {
|
||||||
bpc->bpc_detectmultiplier =
|
bpc->bpc_detectmultiplier =
|
||||||
json_object_get_int64(jo_val);
|
json_object_get_int64(jo_val);
|
||||||
bpc->bpc_has_detectmultiplier = true;
|
bpc->bpc_has_detectmultiplier = true;
|
||||||
log_debug("\tdetect-multiplier: %u",
|
log_debug(" detect-multiplier: %u",
|
||||||
bpc->bpc_detectmultiplier);
|
bpc->bpc_detectmultiplier);
|
||||||
} else if (strcmp(key, "receive-interval") == 0) {
|
} else if (strcmp(key, "receive-interval") == 0) {
|
||||||
bpc->bpc_recvinterval = json_object_get_int64(jo_val);
|
bpc->bpc_recvinterval = json_object_get_int64(jo_val);
|
||||||
bpc->bpc_has_recvinterval = true;
|
bpc->bpc_has_recvinterval = true;
|
||||||
log_debug("\treceive-interval: %llu",
|
log_debug(" receive-interval: %llu",
|
||||||
bpc->bpc_recvinterval);
|
bpc->bpc_recvinterval);
|
||||||
} else if (strcmp(key, "transmit-interval") == 0) {
|
} else if (strcmp(key, "transmit-interval") == 0) {
|
||||||
bpc->bpc_txinterval = json_object_get_int64(jo_val);
|
bpc->bpc_txinterval = json_object_get_int64(jo_val);
|
||||||
bpc->bpc_has_txinterval = true;
|
bpc->bpc_has_txinterval = true;
|
||||||
log_debug("\ttransmit-interval: %llu",
|
log_debug(" transmit-interval: %llu",
|
||||||
bpc->bpc_txinterval);
|
bpc->bpc_txinterval);
|
||||||
} else if (strcmp(key, "echo-interval") == 0) {
|
} else if (strcmp(key, "echo-interval") == 0) {
|
||||||
bpc->bpc_echointerval = json_object_get_int64(jo_val);
|
bpc->bpc_echointerval = json_object_get_int64(jo_val);
|
||||||
bpc->bpc_has_echointerval = true;
|
bpc->bpc_has_echointerval = true;
|
||||||
log_debug("\techo-interval: %llu",
|
log_debug(" echo-interval: %llu",
|
||||||
bpc->bpc_echointerval);
|
bpc->bpc_echointerval);
|
||||||
} else if (strcmp(key, "create-only") == 0) {
|
} else if (strcmp(key, "create-only") == 0) {
|
||||||
bpc->bpc_createonly = json_object_get_boolean(jo_val);
|
bpc->bpc_createonly = json_object_get_boolean(jo_val);
|
||||||
log_debug("\tcreate-only: %s",
|
log_debug(" create-only: %s",
|
||||||
bpc->bpc_createonly ? "true" : "false");
|
bpc->bpc_createonly ? "true" : "false");
|
||||||
} else if (strcmp(key, "shutdown") == 0) {
|
} else if (strcmp(key, "shutdown") == 0) {
|
||||||
bpc->bpc_shutdown = json_object_get_boolean(jo_val);
|
bpc->bpc_shutdown = json_object_get_boolean(jo_val);
|
||||||
log_debug("\tshutdown: %s",
|
log_debug(" shutdown: %s",
|
||||||
bpc->bpc_shutdown ? "true" : "false");
|
bpc->bpc_shutdown ? "true" : "false");
|
||||||
} else if (strcmp(key, "echo-mode") == 0) {
|
} else if (strcmp(key, "echo-mode") == 0) {
|
||||||
bpc->bpc_echo = json_object_get_boolean(jo_val);
|
bpc->bpc_echo = json_object_get_boolean(jo_val);
|
||||||
log_debug("\techo-mode: %s",
|
log_debug(" echo-mode: %s",
|
||||||
bpc->bpc_echo ? "true" : "false");
|
bpc->bpc_echo ? "true" : "false");
|
||||||
} else if (strcmp(key, "label") == 0) {
|
} else if (strcmp(key, "label") == 0) {
|
||||||
bpc->bpc_has_label = true;
|
bpc->bpc_has_label = true;
|
||||||
@ -271,10 +273,11 @@ static int parse_peer_config(struct json_object *jo, struct bfd_peer_cfg *bpc)
|
|||||||
if (strlcpy(bpc->bpc_label, sval,
|
if (strlcpy(bpc->bpc_label, sval,
|
||||||
sizeof(bpc->bpc_label))
|
sizeof(bpc->bpc_label))
|
||||||
> sizeof(bpc->bpc_label)) {
|
> sizeof(bpc->bpc_label)) {
|
||||||
log_debug("\tlabel: %s (truncated)", sval);
|
log_debug(" label: %s (truncated)",
|
||||||
|
sval);
|
||||||
error++;
|
error++;
|
||||||
} else {
|
} else {
|
||||||
log_debug("\tlabel: %s", sval);
|
log_debug(" label: %s", sval);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sval = json_object_get_string(jo_val);
|
sval = json_object_get_string(jo_val);
|
||||||
@ -309,7 +312,7 @@ static int parse_peer_label_config(struct json_object *jo,
|
|||||||
if (pl == NULL)
|
if (pl == NULL)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
log_debug("\tpeer-label: %s", sval);
|
log_debug(" peer-label: %s", sval);
|
||||||
|
|
||||||
/* Translate the label into BFD address keys. */
|
/* Translate the label into BFD address keys. */
|
||||||
bs_to_bpc(pl->pl_bs, bpc);
|
bs_to_bpc(pl->pl_bs, bpc);
|
||||||
|
@ -345,8 +345,7 @@ void isis_circuit_del_addr(struct isis_circuit *circuit,
|
|||||||
} else {
|
} else {
|
||||||
prefix2str(connected->address, buf, sizeof(buf));
|
prefix2str(connected->address, buf, sizeof(buf));
|
||||||
zlog_warn(
|
zlog_warn(
|
||||||
"Nonexistent ip address %s removal attempt from \
|
"Nonexistent ip address %s removal attempt from circuit %s",
|
||||||
circuit %s",
|
|
||||||
buf, circuit->interface->name);
|
buf, circuit->interface->name);
|
||||||
zlog_warn("Current ip addresses on %s:",
|
zlog_warn("Current ip addresses on %s:",
|
||||||
circuit->interface->name);
|
circuit->interface->name);
|
||||||
@ -394,8 +393,7 @@ void isis_circuit_del_addr(struct isis_circuit *circuit,
|
|||||||
if (!found) {
|
if (!found) {
|
||||||
prefix2str(connected->address, buf, sizeof(buf));
|
prefix2str(connected->address, buf, sizeof(buf));
|
||||||
zlog_warn(
|
zlog_warn(
|
||||||
"Nonexistent ip address %s removal attempt from \
|
"Nonexistent ip address %s removal attempt from circuit %s",
|
||||||
circuit %s",
|
|
||||||
buf, circuit->interface->name);
|
buf, circuit->interface->name);
|
||||||
zlog_warn("Current ip addresses on %s:",
|
zlog_warn("Current ip addresses on %s:",
|
||||||
circuit->interface->name);
|
circuit->interface->name);
|
||||||
|
@ -631,27 +631,15 @@ void ospf_route_table_dump(struct route_table *rt)
|
|||||||
{
|
{
|
||||||
struct route_node *rn;
|
struct route_node *rn;
|
||||||
struct ospf_route * or ;
|
struct ospf_route * or ;
|
||||||
char buf1[BUFSIZ];
|
|
||||||
char buf2[BUFSIZ];
|
|
||||||
struct listnode *pnode;
|
struct listnode *pnode;
|
||||||
struct ospf_path *path;
|
struct ospf_path *path;
|
||||||
|
|
||||||
#if 0
|
|
||||||
zlog_debug ("Type Dest Area Path Type Cost Next Adv.");
|
|
||||||
zlog_debug (" Hop(s) Router(s)");
|
|
||||||
#endif /* 0 */
|
|
||||||
|
|
||||||
zlog_debug("========== OSPF routing table ==========");
|
zlog_debug("========== OSPF routing table ==========");
|
||||||
for (rn = route_top(rt); rn; rn = route_next(rn))
|
for (rn = route_top(rt); rn; rn = route_next(rn))
|
||||||
if ((or = rn->info) != NULL) {
|
if ((or = rn->info) != NULL) {
|
||||||
if (or->type == OSPF_DESTINATION_NETWORK) {
|
if (or->type == OSPF_DESTINATION_NETWORK) {
|
||||||
zlog_debug("N %s/%d\t%s\t%s\t%d",
|
zlog_debug("N %-18pFX %-15pI4 %s %d", &rn->p,
|
||||||
inet_ntop(AF_INET, &rn->p.u.prefix4,
|
&or->u.std.area_id,
|
||||||
buf1, BUFSIZ),
|
|
||||||
rn->p.prefixlen,
|
|
||||||
inet_ntop(AF_INET,
|
|
||||||
& or->u.std.area_id, buf2,
|
|
||||||
BUFSIZ),
|
|
||||||
ospf_path_type_str[or->path_type],
|
ospf_path_type_str[or->path_type],
|
||||||
or->cost);
|
or->cost);
|
||||||
for (ALL_LIST_ELEMENTS_RO(or->paths, pnode,
|
for (ALL_LIST_ELEMENTS_RO(or->paths, pnode,
|
||||||
@ -659,12 +647,9 @@ void ospf_route_table_dump(struct route_table *rt)
|
|||||||
zlog_debug(" -> %s",
|
zlog_debug(" -> %s",
|
||||||
inet_ntoa(path->nexthop));
|
inet_ntoa(path->nexthop));
|
||||||
} else
|
} else
|
||||||
zlog_debug("R %s\t%s\t%s\t%d",
|
zlog_debug("R %-18pI4 %-15pI4 %s %d",
|
||||||
inet_ntop(AF_INET, &rn->p.u.prefix4,
|
&rn->p.u.prefix4,
|
||||||
buf1, BUFSIZ),
|
&or->u.std.area_id,
|
||||||
inet_ntop(AF_INET,
|
|
||||||
& or->u.std.area_id, buf2,
|
|
||||||
BUFSIZ),
|
|
||||||
ospf_path_type_str[or->path_type],
|
ospf_path_type_str[or->path_type],
|
||||||
or->cost);
|
or->cost);
|
||||||
}
|
}
|
||||||
|
@ -1401,13 +1401,13 @@ static int ospf_spf_calculate_timer(struct thread *thread)
|
|||||||
|
|
||||||
if (IS_DEBUG_OSPF_EVENT) {
|
if (IS_DEBUG_OSPF_EVENT) {
|
||||||
zlog_info("SPF Processing Time(usecs): %ld", total_spf_time);
|
zlog_info("SPF Processing Time(usecs): %ld", total_spf_time);
|
||||||
zlog_info("\t SPF Time: %ld", spf_time);
|
zlog_info(" SPF Time: %ld", spf_time);
|
||||||
zlog_info("\t InterArea: %ld", ia_time);
|
zlog_info(" InterArea: %ld", ia_time);
|
||||||
zlog_info("\t Prune: %ld", prune_time);
|
zlog_info(" Prune: %ld", prune_time);
|
||||||
zlog_info("\tRouteInstall: %ld", rt_time);
|
zlog_info(" RouteInstall: %ld", rt_time);
|
||||||
if (IS_OSPF_ABR(ospf))
|
if (IS_OSPF_ABR(ospf))
|
||||||
zlog_info("\t ABR: %ld (%d areas)", abr_time,
|
zlog_info(" ABR: %ld (%d areas)",
|
||||||
areas_processed);
|
abr_time, areas_processed);
|
||||||
zlog_info("Reason(s) for SPF: %s", rbuf);
|
zlog_info("Reason(s) for SPF: %s", rbuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1780,7 +1780,7 @@ static uint16_t show_vty_link_subtlv_unrsv_bw(struct vty *vty,
|
|||||||
i, fval1, i + 1, fval2);
|
i, fval1, i + 1, fval2);
|
||||||
else
|
else
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
" [%d]: %g (Bytes/sec),\t[%d]: %g (Bytes/sec)",
|
" [%d]: %g (Bytes/sec), [%d]: %g (Bytes/sec)",
|
||||||
i, fval1, i + 1, fval2);
|
i, fval1, i + 1, fval2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -353,7 +353,7 @@ static int sharp_debug_nexthops(struct zapi_route *api)
|
|||||||
case NEXTHOP_TYPE_IPV4_IFINDEX:
|
case NEXTHOP_TYPE_IPV4_IFINDEX:
|
||||||
case NEXTHOP_TYPE_IPV4:
|
case NEXTHOP_TYPE_IPV4:
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\tNexthop %s, type: %d, ifindex: %d, vrf: %d, label_num: %d",
|
" Nexthop %s, type: %d, ifindex: %d, vrf: %d, label_num: %d",
|
||||||
inet_ntop(AF_INET, &znh->gate.ipv4.s_addr, buf,
|
inet_ntop(AF_INET, &znh->gate.ipv4.s_addr, buf,
|
||||||
sizeof(buf)),
|
sizeof(buf)),
|
||||||
znh->type, znh->ifindex, znh->vrf_id,
|
znh->type, znh->ifindex, znh->vrf_id,
|
||||||
@ -362,18 +362,18 @@ static int sharp_debug_nexthops(struct zapi_route *api)
|
|||||||
case NEXTHOP_TYPE_IPV6_IFINDEX:
|
case NEXTHOP_TYPE_IPV6_IFINDEX:
|
||||||
case NEXTHOP_TYPE_IPV6:
|
case NEXTHOP_TYPE_IPV6:
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\tNexthop %s, type: %d, ifindex: %d, vrf: %d, label_num: %d",
|
" Nexthop %s, type: %d, ifindex: %d, vrf: %d, label_num: %d",
|
||||||
inet_ntop(AF_INET6, &znh->gate.ipv6, buf,
|
inet_ntop(AF_INET6, &znh->gate.ipv6, buf,
|
||||||
sizeof(buf)),
|
sizeof(buf)),
|
||||||
znh->type, znh->ifindex, znh->vrf_id,
|
znh->type, znh->ifindex, znh->vrf_id,
|
||||||
znh->label_num);
|
znh->label_num);
|
||||||
break;
|
break;
|
||||||
case NEXTHOP_TYPE_IFINDEX:
|
case NEXTHOP_TYPE_IFINDEX:
|
||||||
zlog_debug("\tNexthop IFINDEX: %d, ifindex: %d",
|
zlog_debug(" Nexthop IFINDEX: %d, ifindex: %d",
|
||||||
znh->type, znh->ifindex);
|
znh->type, znh->ifindex);
|
||||||
break;
|
break;
|
||||||
case NEXTHOP_TYPE_BLACKHOLE:
|
case NEXTHOP_TYPE_BLACKHOLE:
|
||||||
zlog_debug("\tNexthop blackhole");
|
zlog_debug(" Nexthop blackhole");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -268,7 +268,7 @@ void redistribute_delete(const struct prefix *p, const struct prefix *src_p,
|
|||||||
/* Add DISTANCE_INFINITY check. */
|
/* Add DISTANCE_INFINITY check. */
|
||||||
if (old_re && (old_re->distance == DISTANCE_INFINITY)) {
|
if (old_re && (old_re->distance == DISTANCE_INFINITY)) {
|
||||||
if (IS_ZEBRA_DEBUG_RIB)
|
if (IS_ZEBRA_DEBUG_RIB)
|
||||||
zlog_debug("\tSkipping due to Infinite Distance");
|
zlog_debug(" Skipping due to Infinite Distance");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2676,7 +2676,7 @@ static int netlink_macfdb_change(struct nlmsghdr *h, int len, ns_id_t ns_id)
|
|||||||
|
|
||||||
if (filter_vlan && vid != filter_vlan) {
|
if (filter_vlan && vid != filter_vlan) {
|
||||||
if (IS_ZEBRA_DEBUG_KERNEL)
|
if (IS_ZEBRA_DEBUG_KERNEL)
|
||||||
zlog_debug("\tFiltered due to filter vlan: %d",
|
zlog_debug(" Filtered due to filter vlan: %d",
|
||||||
filter_vlan);
|
filter_vlan);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -2690,8 +2690,9 @@ static int netlink_macfdb_change(struct nlmsghdr *h, int len, ns_id_t ns_id)
|
|||||||
/* Drop "permanent" entries. */
|
/* Drop "permanent" entries. */
|
||||||
if (ndm->ndm_state & NUD_PERMANENT) {
|
if (ndm->ndm_state & NUD_PERMANENT) {
|
||||||
if (IS_ZEBRA_DEBUG_KERNEL)
|
if (IS_ZEBRA_DEBUG_KERNEL)
|
||||||
zlog_debug("\tDropping entry because of NUD_PERMANENT");
|
zlog_debug(
|
||||||
return 0;
|
" Dropping entry because of NUD_PERMANENT");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_ZEBRA_IF_VXLAN(ifp))
|
if (IS_ZEBRA_IF_VXLAN(ifp))
|
||||||
|
@ -1411,7 +1411,7 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
|
|||||||
if (!ifp) {
|
if (!ifp) {
|
||||||
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\t%s: Onlink and interface: %u[%u] does not exist",
|
" %s: Onlink and interface: %u[%u] does not exist",
|
||||||
__func__, nexthop->ifindex,
|
__func__, nexthop->ifindex,
|
||||||
nexthop->vrf_id);
|
nexthop->vrf_id);
|
||||||
return 0;
|
return 0;
|
||||||
@ -1422,14 +1422,14 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
|
|||||||
|
|
||||||
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\t%s: Onlink and interface %s is not operative",
|
" %s: Onlink and interface %s is not operative",
|
||||||
__func__, ifp->name);
|
__func__, ifp->name);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (!if_is_operative(ifp)) {
|
if (!if_is_operative(ifp)) {
|
||||||
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\t%s: Interface %s is not unnumbered",
|
" %s: Interface %s is not unnumbered",
|
||||||
__func__, ifp->name);
|
__func__, ifp->name);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -1441,7 +1441,7 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
|
|||||||
&& memcmp(&nexthop->gate.ipv6, &top->p.u.prefix6, 16) == 0)) {
|
&& memcmp(&nexthop->gate.ipv6, &top->p.u.prefix6, 16) == 0)) {
|
||||||
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\t:%s: Attempting to install a max prefixlength route through itself",
|
" :%s: Attempting to install a max prefixlength route through itself",
|
||||||
__func__);
|
__func__);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -1469,7 +1469,7 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
|
|||||||
zvrf = zebra_vrf_lookup_by_id(nexthop->vrf_id);
|
zvrf = zebra_vrf_lookup_by_id(nexthop->vrf_id);
|
||||||
if (!table || !zvrf) {
|
if (!table || !zvrf) {
|
||||||
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
||||||
zlog_debug("\t%s: Table not found", __func__);
|
zlog_debug(" %s: Table not found", __func__);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1487,7 +1487,7 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
|
|||||||
|| ((afi == AFI_IP6) && (rn->p.prefixlen != 128))) {
|
|| ((afi == AFI_IP6) && (rn->p.prefixlen != 128))) {
|
||||||
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\t%s: Matched against ourself and prefix length is not max bit length",
|
" %s: Matched against ourself and prefix length is not max bit length",
|
||||||
__func__);
|
__func__);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -1500,7 +1500,7 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
|
|||||||
&& !rnh_resolve_via_default(zvrf, p.family)) {
|
&& !rnh_resolve_via_default(zvrf, p.family)) {
|
||||||
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\t:%s: Resolved against default route",
|
" :%s: Resolved against default route",
|
||||||
__func__);
|
__func__);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -1552,8 +1552,9 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
|
|||||||
re->nexthop_mtu = match->mtu;
|
re->nexthop_mtu = match->mtu;
|
||||||
|
|
||||||
if (!resolved && IS_ZEBRA_DEBUG_RIB_DETAILED)
|
if (!resolved && IS_ZEBRA_DEBUG_RIB_DETAILED)
|
||||||
zlog_debug("\t%s: Recursion failed to find",
|
zlog_debug(
|
||||||
__func__);
|
" %s: Recursion failed to find",
|
||||||
|
__func__);
|
||||||
return resolved;
|
return resolved;
|
||||||
} else if (re->type == ZEBRA_ROUTE_STATIC) {
|
} else if (re->type == ZEBRA_ROUTE_STATIC) {
|
||||||
resolved = 0;
|
resolved = 0;
|
||||||
@ -1574,24 +1575,25 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
|
|||||||
|
|
||||||
if (!resolved && IS_ZEBRA_DEBUG_RIB_DETAILED)
|
if (!resolved && IS_ZEBRA_DEBUG_RIB_DETAILED)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\t%s: Static route unable to resolve",
|
" %s: Static route unable to resolve",
|
||||||
__func__);
|
__func__);
|
||||||
return resolved;
|
return resolved;
|
||||||
} else {
|
} else {
|
||||||
if (IS_ZEBRA_DEBUG_RIB_DETAILED) {
|
if (IS_ZEBRA_DEBUG_RIB_DETAILED) {
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\t%s: Route Type %s has not turned on recursion",
|
" %s: Route Type %s has not turned on recursion",
|
||||||
__func__, zebra_route_string(re->type));
|
__func__, zebra_route_string(re->type));
|
||||||
if (re->type == ZEBRA_ROUTE_BGP
|
if (re->type == ZEBRA_ROUTE_BGP
|
||||||
&& !CHECK_FLAG(re->flags, ZEBRA_FLAG_IBGP))
|
&& !CHECK_FLAG(re->flags, ZEBRA_FLAG_IBGP))
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\tEBGP: see \"disable-ebgp-connected-route-check\" or \"disable-connected-check\"");
|
" EBGP: see \"disable-ebgp-connected-route-check\" or \"disable-connected-check\"");
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
||||||
zlog_debug("\t%s: Nexthop did not lookup in table", __func__);
|
zlog_debug(" %s: Nexthop did not lookup in table",
|
||||||
|
__func__);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1683,8 +1685,9 @@ static unsigned nexthop_active_check(struct route_node *rn,
|
|||||||
}
|
}
|
||||||
if (!CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE)) {
|
if (!CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE)) {
|
||||||
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
||||||
zlog_debug("\t%s: Unable to find a active nexthop",
|
zlog_debug(
|
||||||
__func__);
|
" %s: Unable to find a active nexthop",
|
||||||
|
__func__);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1713,7 +1716,7 @@ static unsigned nexthop_active_check(struct route_node *rn,
|
|||||||
zvrf = zebra_vrf_lookup_by_id(nexthop->vrf_id);
|
zvrf = zebra_vrf_lookup_by_id(nexthop->vrf_id);
|
||||||
if (!zvrf) {
|
if (!zvrf) {
|
||||||
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
||||||
zlog_debug("\t%s: zvrf is NULL", __func__);
|
zlog_debug(" %s: zvrf is NULL", __func__);
|
||||||
return CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE);
|
return CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -471,7 +471,7 @@ zebra_rnh_resolve_import_entry(struct zebra_vrf *zvrf, afi_t afi,
|
|||||||
*prn = rn;
|
*prn = rn;
|
||||||
|
|
||||||
if (!re && IS_ZEBRA_DEBUG_NHT_DETAILED)
|
if (!re && IS_ZEBRA_DEBUG_NHT_DETAILED)
|
||||||
zlog_debug("\tRejected due to removed or is a bgp route");
|
zlog_debug(" Rejected due to removed or is a bgp route");
|
||||||
|
|
||||||
return re;
|
return re;
|
||||||
}
|
}
|
||||||
@ -656,7 +656,7 @@ zebra_rnh_resolve_nexthop_entry(struct zebra_vrf *zvrf, afi_t afi,
|
|||||||
&& !rnh_resolve_via_default(zvrf, rn->p.family)) {
|
&& !rnh_resolve_via_default(zvrf, rn->p.family)) {
|
||||||
if (IS_ZEBRA_DEBUG_NHT_DETAILED)
|
if (IS_ZEBRA_DEBUG_NHT_DETAILED)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\tNot allowed to resolve through default prefix");
|
" Not allowed to resolve through default prefix");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -665,7 +665,7 @@ zebra_rnh_resolve_nexthop_entry(struct zebra_vrf *zvrf, afi_t afi,
|
|||||||
if (CHECK_FLAG(re->status, ROUTE_ENTRY_REMOVED)) {
|
if (CHECK_FLAG(re->status, ROUTE_ENTRY_REMOVED)) {
|
||||||
if (IS_ZEBRA_DEBUG_NHT_DETAILED)
|
if (IS_ZEBRA_DEBUG_NHT_DETAILED)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\tRoute Entry %s removed",
|
" Route Entry %s removed",
|
||||||
zebra_route_string(re->type));
|
zebra_route_string(re->type));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -673,7 +673,7 @@ zebra_rnh_resolve_nexthop_entry(struct zebra_vrf *zvrf, afi_t afi,
|
|||||||
!CHECK_FLAG(re->flags, ZEBRA_FLAG_FIB_OVERRIDE)) {
|
!CHECK_FLAG(re->flags, ZEBRA_FLAG_FIB_OVERRIDE)) {
|
||||||
if (IS_ZEBRA_DEBUG_NHT_DETAILED)
|
if (IS_ZEBRA_DEBUG_NHT_DETAILED)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\tRoute Entry %s !selected",
|
" Route Entry %s !selected",
|
||||||
zebra_route_string(re->type));
|
zebra_route_string(re->type));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -681,7 +681,7 @@ zebra_rnh_resolve_nexthop_entry(struct zebra_vrf *zvrf, afi_t afi,
|
|||||||
if (CHECK_FLAG(re->status, ROUTE_ENTRY_QUEUED)) {
|
if (CHECK_FLAG(re->status, ROUTE_ENTRY_QUEUED)) {
|
||||||
if (IS_ZEBRA_DEBUG_NHT_DETAILED)
|
if (IS_ZEBRA_DEBUG_NHT_DETAILED)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\tRoute Entry %s queued",
|
" Route Entry %s queued",
|
||||||
zebra_route_string(re->type));
|
zebra_route_string(re->type));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -697,7 +697,7 @@ zebra_rnh_resolve_nexthop_entry(struct zebra_vrf *zvrf, afi_t afi,
|
|||||||
if (nexthop == NULL) {
|
if (nexthop == NULL) {
|
||||||
if (IS_ZEBRA_DEBUG_NHT_DETAILED)
|
if (IS_ZEBRA_DEBUG_NHT_DETAILED)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\tRoute Entry %s no nexthops",
|
" Route Entry %s no nexthops",
|
||||||
zebra_route_string(re->type));
|
zebra_route_string(re->type));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -732,7 +732,7 @@ zebra_rnh_resolve_nexthop_entry(struct zebra_vrf *zvrf, afi_t afi,
|
|||||||
else {
|
else {
|
||||||
if (IS_ZEBRA_DEBUG_NHT_DETAILED)
|
if (IS_ZEBRA_DEBUG_NHT_DETAILED)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\tNexthop must be connected, cannot recurse up");
|
" Nexthop must be connected, cannot recurse up");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3059,7 +3059,7 @@ static int zvni_local_neigh_update(zebra_vni_t *zvni,
|
|||||||
zvrf = vrf_info_lookup(zvni->vxlan_if->vrf_id);
|
zvrf = vrf_info_lookup(zvni->vxlan_if->vrf_id);
|
||||||
if (!zvrf) {
|
if (!zvrf) {
|
||||||
if (IS_ZEBRA_DEBUG_VXLAN)
|
if (IS_ZEBRA_DEBUG_VXLAN)
|
||||||
zlog_debug("\tUnable to find vrf for: %d",
|
zlog_debug(" Unable to find vrf for: %d",
|
||||||
zvni->vxlan_if->vrf_id);
|
zvni->vxlan_if->vrf_id);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -3094,7 +3094,7 @@ static int zvni_local_neigh_update(zebra_vni_t *zvni,
|
|||||||
if (!mac_different && is_router == cur_is_router) {
|
if (!mac_different && is_router == cur_is_router) {
|
||||||
if (IS_ZEBRA_DEBUG_VXLAN)
|
if (IS_ZEBRA_DEBUG_VXLAN)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\tIgnoring entry mac is the same and is_router == cur_is_router");
|
" Ignoring entry mac is the same and is_router == cur_is_router");
|
||||||
n->ifindex = ifp->ifindex;
|
n->ifindex = ifp->ifindex;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -3126,7 +3126,7 @@ static int zvni_local_neigh_update(zebra_vni_t *zvni,
|
|||||||
else {
|
else {
|
||||||
if (IS_ZEBRA_DEBUG_VXLAN)
|
if (IS_ZEBRA_DEBUG_VXLAN)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\tNeighbor active and frozen");
|
" Neighbor active and frozen");
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -3271,7 +3271,7 @@ static int zvni_local_neigh_update(zebra_vni_t *zvni,
|
|||||||
n->flags, n->loc_seq);
|
n->flags, n->loc_seq);
|
||||||
} else {
|
} else {
|
||||||
if (IS_ZEBRA_DEBUG_VXLAN)
|
if (IS_ZEBRA_DEBUG_VXLAN)
|
||||||
zlog_debug("\tNeighbor on hold not sending");
|
zlog_debug(" Neighbor on hold not sending");
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -8034,7 +8034,7 @@ int zebra_vxlan_local_mac_add_update(struct interface *ifp,
|
|||||||
if (!zvni) {
|
if (!zvni) {
|
||||||
if (IS_ZEBRA_DEBUG_VXLAN)
|
if (IS_ZEBRA_DEBUG_VXLAN)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\tAdd/Update %sMAC %s intf %s(%u) VID %u, could not find VNI",
|
" Add/Update %sMAC %s intf %s(%u) VID %u, could not find VNI",
|
||||||
sticky ? "sticky " : "",
|
sticky ? "sticky " : "",
|
||||||
prefix_mac2str(macaddr, buf, sizeof(buf)),
|
prefix_mac2str(macaddr, buf, sizeof(buf)),
|
||||||
ifp->name, ifp->ifindex, vid);
|
ifp->name, ifp->ifindex, vid);
|
||||||
@ -8044,7 +8044,7 @@ int zebra_vxlan_local_mac_add_update(struct interface *ifp,
|
|||||||
if (!zvni->vxlan_if) {
|
if (!zvni->vxlan_if) {
|
||||||
if (IS_ZEBRA_DEBUG_VXLAN)
|
if (IS_ZEBRA_DEBUG_VXLAN)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\tVNI %u hash %p doesn't have intf upon local MAC ADD",
|
" VNI %u hash %p doesn't have intf upon local MAC ADD",
|
||||||
zvni->vni, zvni);
|
zvni->vni, zvni);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -8052,7 +8052,7 @@ int zebra_vxlan_local_mac_add_update(struct interface *ifp,
|
|||||||
zvrf = vrf_info_lookup(zvni->vxlan_if->vrf_id);
|
zvrf = vrf_info_lookup(zvni->vxlan_if->vrf_id);
|
||||||
if (!zvrf) {
|
if (!zvrf) {
|
||||||
if (IS_ZEBRA_DEBUG_VXLAN)
|
if (IS_ZEBRA_DEBUG_VXLAN)
|
||||||
zlog_debug("\tNo Vrf found for vrf_id: %d",
|
zlog_debug(" No Vrf found for vrf_id: %d",
|
||||||
zvni->vxlan_if->vrf_id);
|
zvni->vxlan_if->vrf_id);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -8105,7 +8105,7 @@ int zebra_vxlan_local_mac_add_update(struct interface *ifp,
|
|||||||
&& mac->fwd_info.local.vid == vid) {
|
&& mac->fwd_info.local.vid == vid) {
|
||||||
if (IS_ZEBRA_DEBUG_VXLAN)
|
if (IS_ZEBRA_DEBUG_VXLAN)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"\tAdd/Update %sMAC %s intf %s(%u) VID %u -> VNI %u, "
|
" Add/Update %sMAC %s intf %s(%u) VID %u -> VNI %u, "
|
||||||
"entry exists and has not changed ",
|
"entry exists and has not changed ",
|
||||||
sticky ? "sticky " : "",
|
sticky ? "sticky " : "",
|
||||||
prefix_mac2str(macaddr, buf,
|
prefix_mac2str(macaddr, buf,
|
||||||
|
Loading…
Reference in New Issue
Block a user