diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-07-20 01:54:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-20 01:54:10 -0400 |
| commit | dc7f5a78b5d72a3699ecdf82073b5cdebbb079a7 (patch) | |
| tree | c4f8f65de158fcfebdb4492791ebefe9382d3dce /zebra/zebra_netns_notify.c | |
| parent | 461302049efabac7e90d61750a46d5aa5df4d642 (diff) | |
| parent | 73899a2f811e85d1fc373648480e19e5201088e6 (diff) | |
Merge pull request #2688 from pguibert6WIND/vrf_delete_on_netns_fail
zebra: cancel vrf creation if netns activation failed
Diffstat (limited to 'zebra/zebra_netns_notify.c')
| -rw-r--r-- | zebra/zebra_netns_notify.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_netns_notify.c b/zebra/zebra_netns_notify.c index 60b72298a1..2dd686fd0d 100644 --- a/zebra/zebra_netns_notify.c +++ b/zebra/zebra_netns_notify.c @@ -105,6 +105,7 @@ static void zebra_ns_notify_create_context_from_entry_name(const char *name) if (ret != CMD_SUCCESS) { zlog_warn("NS notify : failed to create NS %s", netnspath); ns_map_nsid_with_external(ns_id, false); + vrf_delete(vrf); return; } zlog_info("NS notify : created VRF %s NS %s", name, netnspath); |
