When using namespace VRF backend, and frr.conf contains:
vrf test
netns /run/netns/test
exit-vrf
FRR fails to start:
line 11: Failure to communicate[13] to zebra, line: netns /run/netns/test
Fix this by returning CMD_WARNING rather than CMD_WARNING_CONFIG_FAILED
when the same netns path is configured.
Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
zlog_info(
"VRF %u already configured with NETNS %s",
vrf->vrf_id, ns->name);
- return CMD_WARNING_CONFIG_FAILED;
+ return CMD_WARNING;
}
}
ns = ns_lookup_name(pathname);