mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 04:40:21 +00:00
bgpd: Modify bgp_label to use flog_warn
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
286425133e
commit
01c4f23c0e
@ -145,6 +145,12 @@ static struct log_ref ferr_bgp_warn[] = {
|
||||
.description = "BGP has received a local ESI for deletion but when attempting to find the stored data internally was unable to find the information for deletion",
|
||||
.suggestion = "Gather logging and open an Issue",
|
||||
},
|
||||
{
|
||||
.code = BGP_WARN_INVALID_LABEL_STACK,
|
||||
.title = "BGP has received a label stack in a NLRI that does not have the BOS marked",
|
||||
.description = "BGP when it receives a NLRI with a label stack should have the BOS marked, this received packet does not have this",
|
||||
.suggestion = "Gather log information from here and remote peer and open an Issue",
|
||||
},
|
||||
{
|
||||
.code = END_FERR,
|
||||
}
|
||||
|
@ -92,6 +92,7 @@ enum bgp_log_refs {
|
||||
BGP_WARN_EVPN_PMSI_PRESENT,
|
||||
BGP_WARN_EVPN_VPN_VNI,
|
||||
BGP_WARN_EVPN_ESI,
|
||||
BGP_WARN_INVALID_LABEL_STACK,
|
||||
};
|
||||
|
||||
extern void bgp_error_init(void);
|
||||
|
@ -187,11 +187,12 @@ static int bgp_nlri_get_labels(struct peer *peer, uint8_t *pnt, uint8_t plen,
|
||||
/* If we RX multiple labels we will end up keeping only the last
|
||||
* one. We do not yet support a label stack greater than 1. */
|
||||
if (label_depth > 1)
|
||||
zlog_warn("%s rcvd UPDATE with label stack %d deep", peer->host,
|
||||
zlog_info("%s rcvd UPDATE with label stack %d deep", peer->host,
|
||||
label_depth);
|
||||
|
||||
if (!(bgp_is_withdraw_label(label) || label_bos(label)))
|
||||
zlog_warn(
|
||||
flog_warn(
|
||||
BGP_WARN_INVALID_LABEL_STACK,
|
||||
"%s rcvd UPDATE with invalid label stack - no bottom of stack",
|
||||
peer->host);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user