diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2020-10-08 18:42:01 +0300 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2020-10-08 23:14:54 +0300 |
| commit | 733c4db58726a54ac0fe46b1a18def9dbe133cbc (patch) | |
| tree | 2213c53a44b04c8757a9cae3a9ad4e389900bf00 | |
| parent | 0405eff37ad6d7dde7b1976aa38d2088df4929a2 (diff) | |
isisd: add missing rollback if config is invalid
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
| -rw-r--r-- | isisd/isis_csm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/isisd/isis_csm.c b/isisd/isis_csm.c index 929b4c26e8..c848ed2638 100644 --- a/isisd/isis_csm.c +++ b/isisd/isis_csm.c @@ -152,6 +152,7 @@ isis_csm_state_change(int event, struct isis_circuit *circuit, void *arg) case IF_UP_FROM_Z: isis_circuit_if_add(circuit, (struct interface *)arg); if (isis_circuit_up(circuit) != ISIS_OK) { + isis_circuit_if_del(circuit, (struct interface *)arg); flog_err( EC_ISIS_CONFIG, "Could not bring up %s because of invalid config.", |
