From c3bffa92777060bd5ae48d8dc347e600ba086249 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Sat, 30 Nov 2024 17:16:37 +0200 Subject: [PATCH 1/2] doc: remove no-op "netns NAMESPACE" command from the docs Signed-off-by: Igor Ryzhov --- doc/user/zebra.rst | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/doc/user/zebra.rst b/doc/user/zebra.rst index b862ba9f505c..9b9298c1cd99 100644 --- a/doc/user/zebra.rst +++ b/doc/user/zebra.rst @@ -526,16 +526,6 @@ commands in relationship to VRF. Here is an extract of some of those commands: The network administrator can however decide to provision this command in configuration file to provide more clarity about the intended configuration. -.. clicmd:: netns NAMESPACE - - This command is based on VRF configuration mode. This command is available - when *Zebra* is run in :option:`-n` mode. This command reflects which *Linux - network namespace* is to be mapped with *Zebra* VRF. It is to be noted that - *Zebra* creates and detects added/suppressed VRFs from the Linux environment - (in fact, those managed with iproute2). The network administrator can however - decide to provision this command in configuration file to provide more clarity - about the intended configuration. - .. clicmd:: show ip route vrf VRF The show command permits dumping the routing table associated to the VRF. If From e51c6dd2568dae7ce9276228e94ae0872d3375a3 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Sat, 7 Dec 2024 17:01:43 +0200 Subject: [PATCH 2/2] zebra: add deprecation notice for no-op netns command Signed-off-by: Igor Ryzhov --- zebra/zebra_cli.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zebra/zebra_cli.c b/zebra/zebra_cli.c index 6ee0fdbb8d90..ca53eb2eb34d 100644 --- a/zebra/zebra_cli.c +++ b/zebra/zebra_cli.c @@ -2252,6 +2252,9 @@ static void lib_vrf_mpls_fec_nexthop_resolution_cli_write( } } +#if CONFDATE > 20251207 +CPP_NOTICE("Remove no-op netns command") +#endif DEFPY_YANG (vrf_netns, vrf_netns_cmd, "[no] netns ![NAME$netns_name]",