mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 15:23:39 +00:00
Merge pull request #7521 from donaldsharp/set_src_future_us
zebra: Allow `set src X` to work on startup
This commit is contained in:
commit
81a8a58b99
@ -1550,12 +1550,14 @@ int lib_route_map_entry_set_action_source_v4_modify(
|
|||||||
if (pif != NULL)
|
if (pif != NULL)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (pif == NULL) {
|
/*
|
||||||
snprintf(args->errmsg, args->errmsg_len,
|
* On startup the local address *may* not have come up
|
||||||
"is not a local address: %s",
|
* yet. We need to allow startup configuration of
|
||||||
yang_dnode_get_string(args->dnode, NULL));
|
* set src or we are fudged. Log it for future fun
|
||||||
return NB_ERR_VALIDATION;
|
*/
|
||||||
}
|
if (pif == NULL)
|
||||||
|
zlog_warn("set src %pI4 is not a local address",
|
||||||
|
&p.u.prefix4);
|
||||||
return NB_OK;
|
return NB_OK;
|
||||||
case NB_EV_PREPARE:
|
case NB_EV_PREPARE:
|
||||||
case NB_EV_ABORT:
|
case NB_EV_ABORT:
|
||||||
@ -1618,12 +1620,14 @@ int lib_route_map_entry_set_action_source_v6_modify(
|
|||||||
if (pif != NULL)
|
if (pif != NULL)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (pif == NULL) {
|
/*
|
||||||
snprintf(args->errmsg, args->errmsg_len,
|
* On startup the local address *may* not have come up
|
||||||
"is not a local adddress: %s",
|
* yet. We need to allow startup configuration of
|
||||||
yang_dnode_get_string(args->dnode, NULL));
|
* set src or we are fudged. Log it for future fun
|
||||||
return NB_ERR_VALIDATION;
|
*/
|
||||||
}
|
if (pif == NULL)
|
||||||
|
zlog_warn("set src %pI6 is not a local address",
|
||||||
|
&p.u.prefix6);
|
||||||
return NB_OK;
|
return NB_OK;
|
||||||
case NB_EV_PREPARE:
|
case NB_EV_PREPARE:
|
||||||
case NB_EV_ABORT:
|
case NB_EV_ABORT:
|
||||||
|
Loading…
Reference in New Issue
Block a user