diff options
author | Xiao Liang <shaw.leon@gmail.com> | 2022-09-07 11:14:02 +0200 |
---|---|---|
committer | Xiao Liang <shaw.leon@gmail.com> | 2022-09-07 11:52:09 +0200 |
commit | d61e157a4703dacaaa6ff8f02430f9b3911c5f00 (patch) | |
tree | 3f44abe7ffd8d48eccf49abe36435ff0aef1db4d /zebra/zebra_vrf.c | |
parent | Merge pull request #11911 from mruprich/ospf-api (diff) | |
download | frr-d61e157a4703dacaaa6ff8f02430f9b3911c5f00.tar.xz frr-d61e157a4703dacaaa6ff8f02430f9b3911c5f00.zip |
zebra: Reconfiguring netns for vrf is not a failure
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>
Diffstat (limited to '')
-rw-r--r-- | zebra/zebra_vrf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_vrf.c b/zebra/zebra_vrf.c index 6624f0beb..a2844ca95 100644 --- a/zebra/zebra_vrf.c +++ b/zebra/zebra_vrf.c @@ -595,7 +595,7 @@ int zebra_vrf_netns_handler_create(struct vty *vty, struct vrf *vrf, 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); |