summaryrefslogtreecommitdiffstats
path: root/lib/ns.h
diff options
context:
space:
mode:
authorChristophe Gouault <christophe.gouault@6wind.com>2020-08-24 18:01:15 +0200
committerChristophe Gouault <christophe.gouault@6wind.com>2020-09-21 10:17:35 +0200
commit1eb92f06c4e39a47a82ae585cfb276497843de6c (patch)
tree17ee7490850320dc573b80d0668da464cec41526 /lib/ns.h
parentzebra: always display vrf in show ip route json (diff)
downloadfrr-1eb92f06c4e39a47a82ae585cfb276497843de6c.tar.xz
frr-1eb92f06c4e39a47a82ae585cfb276497843de6c.zip
vrf: VRF_DEFAULT must be 0, remove useless code
Code was added in the past to support a value of VRF_DEFAULT different from 0. This option was abandoned, the default vrf id is always 0. Remove this code, this will simplify the code and improve performance (use a constant value instead of a function that performs tests). Signed-off-by: Christophe Gouault <christophe.gouault@6wind.com>
Diffstat (limited to 'lib/ns.h')
-rw-r--r--lib/ns.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/ns.h b/lib/ns.h
index 286ff5b29..93a3781c1 100644
--- a/lib/ns.h
+++ b/lib/ns.h
@@ -161,10 +161,7 @@ extern ns_id_t ns_map_nsid_with_external(ns_id_t ns_id, bool map);
*/
extern void ns_init(void);
-/* API to retrieve default NS */
-extern ns_id_t ns_get_default_id(void);
-
-#define NS_DEFAULT ns_get_default_id()
+#define NS_DEFAULT 0
/* API that can be used to change from NS */
extern int ns_switchback_to_initial(void);