mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 18:04:03 +00:00
zebra: cancel vrf creation if netns activation failed
To keep configuration consistent, vrf that have not been able to be associated with netns are removed. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
06a5959f10
commit
73899a2f81
@ -105,6 +105,7 @@ static void zebra_ns_notify_create_context_from_entry_name(const char *name)
|
|||||||
if (ret != CMD_SUCCESS) {
|
if (ret != CMD_SUCCESS) {
|
||||||
zlog_warn("NS notify : failed to create NS %s", netnspath);
|
zlog_warn("NS notify : failed to create NS %s", netnspath);
|
||||||
ns_map_nsid_with_external(ns_id, false);
|
ns_map_nsid_with_external(ns_id, false);
|
||||||
|
vrf_delete(vrf);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
zlog_info("NS notify : created VRF %s NS %s", name, netnspath);
|
zlog_info("NS notify : created VRF %s NS %s", name, netnspath);
|
||||||
|
Loading…
Reference in New Issue
Block a user