summaryrefslogtreecommitdiff
path: root/zebra/zebra_ns.c
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 /zebra/zebra_ns.c
parentd58b6f7568dab83e07fe144915b7c33e093a8abd (diff)
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 'zebra/zebra_ns.c')
-rw-r--r--zebra/zebra_ns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_ns.c b/zebra/zebra_ns.c
index 6462daf687..e9ff3fcc08 100644
--- a/zebra/zebra_ns.c
+++ b/zebra/zebra_ns.c
@@ -199,7 +199,7 @@ int zebra_ns_init(const char *optional_default_name)
if (ns)
ns->relative_default_ns = ns_id;
- default_ns = ns_lookup(ns_get_default_id());
+ default_ns = ns_lookup(NS_DEFAULT);
if (!default_ns) {
flog_err(EC_ZEBRA_NS_NO_DEFAULT,
"%s: failed to find default ns", __func__);