mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 07:59:35 +00:00
isisd: add missing rollback if config is invalid
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
0405eff37a
commit
733c4db587
@ -152,6 +152,7 @@ isis_csm_state_change(int event, struct isis_circuit *circuit, void *arg)
|
|||||||
case IF_UP_FROM_Z:
|
case IF_UP_FROM_Z:
|
||||||
isis_circuit_if_add(circuit, (struct interface *)arg);
|
isis_circuit_if_add(circuit, (struct interface *)arg);
|
||||||
if (isis_circuit_up(circuit) != ISIS_OK) {
|
if (isis_circuit_up(circuit) != ISIS_OK) {
|
||||||
|
isis_circuit_if_del(circuit, (struct interface *)arg);
|
||||||
flog_err(
|
flog_err(
|
||||||
EC_ISIS_CONFIG,
|
EC_ISIS_CONFIG,
|
||||||
"Could not bring up %s because of invalid config.",
|
"Could not bring up %s because of invalid config.",
|
||||||
|
Loading…
Reference in New Issue
Block a user