mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 11:50:21 +00:00
Merge pull request #7538 from ton31337/fix/zebra_set_src_7.4
zebra: [7.4] Allow `set src X` to work on startup
This commit is contained in:
commit
507bf79cd6
@ -1455,11 +1455,14 @@ int lib_route_map_entry_set_action_source_v4_modify(
|
||||
if (pif != NULL)
|
||||
break;
|
||||
}
|
||||
if (pif == NULL) {
|
||||
zlog_warn("%s: is not a local adddress: %s", __func__,
|
||||
yang_dnode_get_string(args->dnode, NULL));
|
||||
return NB_ERR_VALIDATION;
|
||||
}
|
||||
/*
|
||||
* On startup the local address *may* not have come up
|
||||
* yet. We need to allow startup configuration of
|
||||
* set src or we are fudged. Log it for future fun
|
||||
*/
|
||||
if (pif == NULL)
|
||||
zlog_warn("set src %pI4 is not a local address",
|
||||
&p.u.prefix4);
|
||||
return NB_OK;
|
||||
case NB_EV_PREPARE:
|
||||
case NB_EV_ABORT:
|
||||
@ -1521,11 +1524,14 @@ int lib_route_map_entry_set_action_source_v6_modify(
|
||||
if (pif != NULL)
|
||||
break;
|
||||
}
|
||||
if (pif == NULL) {
|
||||
zlog_warn("%s: is not a local adddress: %s", __func__,
|
||||
yang_dnode_get_string(args->dnode, NULL));
|
||||
return NB_ERR_VALIDATION;
|
||||
}
|
||||
/*
|
||||
* On startup the local address *may* not have come up
|
||||
* yet. We need to allow startup configuration of
|
||||
* set src or we are fudged. Log it for future fun
|
||||
*/
|
||||
if (pif == NULL)
|
||||
zlog_warn("set src %pI6 is not a local address",
|
||||
&p.u.prefix6);
|
||||
return NB_OK;
|
||||
case NB_EV_PREPARE:
|
||||
case NB_EV_ABORT:
|
||||
|
Loading…
Reference in New Issue
Block a user