mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 09:17:42 +00:00
ospfd: Convert ospf_sr.c to use error-card subsystem.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
668e8a1183
commit
dbb93f1b90
@ -1163,7 +1163,8 @@ void ospf_sr_ri_lsa_update(struct ospf_lsa *lsa)
|
||||
/* Check that we collect mandatory parameters */
|
||||
if (srn->algo[0] == SR_ALGORITHM_UNSET || srgb.range_size == 0
|
||||
|| srgb.lower_bound == 0) {
|
||||
zlog_warn("SR (%s): Missing mandatory parameters. Abort!",
|
||||
flog_err(OSPF_ERR_SR_NODE_CREATE,
|
||||
"SR (%s): Missing mandatory parameters. Abort!",
|
||||
__func__);
|
||||
hash_release(OspfSR.neighbors, &(srn->adv_router));
|
||||
XFREE(MTYPE_OSPF_SR_PARAMS, srn);
|
||||
@ -1322,7 +1323,8 @@ void ospf_sr_ext_link_lsa_delete(struct ospf_lsa *lsa)
|
||||
* processing Router Information LSA deletion
|
||||
*/
|
||||
if (srn == NULL) {
|
||||
zlog_warn("SR (%s): Stop! no entry in SRDB for SR Node %s",
|
||||
flog_err(OSPF_ERR_SR_INVALID_DB,
|
||||
"SR (%s): Stop! no entry in SRDB for SR Node %s",
|
||||
__func__, inet_ntoa(lsah->adv_router));
|
||||
return;
|
||||
}
|
||||
@ -1339,7 +1341,7 @@ void ospf_sr_ext_link_lsa_delete(struct ospf_lsa *lsa)
|
||||
listnode_delete(srn->ext_link, srl);
|
||||
XFREE(MTYPE_OSPF_SR_PARAMS, srl);
|
||||
} else {
|
||||
zlog_warn(
|
||||
flog_err(OSPF_ERR_SR_INVALID_DB,
|
||||
"SR (%s): Didn't found corresponding SR Link 8.0.0.%u "
|
||||
"for SR Node %s",
|
||||
__func__, GET_OPAQUE_ID(ntohl(lsah->id.s_addr)),
|
||||
@ -1433,7 +1435,8 @@ void ospf_sr_ext_prefix_lsa_delete(struct ospf_lsa *lsa)
|
||||
* processing Router Information LSA deletion
|
||||
*/
|
||||
if (srn == NULL) {
|
||||
zlog_warn("SR (%s): Stop! no entry in SRDB for SR Node %s",
|
||||
flog_err(OSPF_ERR_SR_INVALID_DB,
|
||||
"SR (%s): Stop! no entry in SRDB for SR Node %s",
|
||||
__func__, inet_ntoa(lsah->adv_router));
|
||||
return;
|
||||
}
|
||||
@ -1449,9 +1452,9 @@ void ospf_sr_ext_prefix_lsa_delete(struct ospf_lsa *lsa)
|
||||
listnode_delete(srn->ext_link, srp);
|
||||
XFREE(MTYPE_OSPF_SR_PARAMS, srp);
|
||||
} else {
|
||||
zlog_warn(
|
||||
"SR (%s): Didn't found corresponding SR Prefix "
|
||||
"7.0.0.%u for SR Node %s",
|
||||
flog_err(
|
||||
OSPF_ERR_SR_INVALID_DB,
|
||||
"SR (%s): Didn't found corresponding SR Prefix 7.0.0.%u for SR Node %s",
|
||||
__func__, GET_OPAQUE_ID(ntohl(lsah->id.s_addr)),
|
||||
inet_ntoa(lsah->adv_router));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user