diff options
author | Christophe Gouault <christophe.gouault@6wind.com> | 2020-08-24 18:01:15 +0200 |
---|---|---|
committer | Christophe Gouault <christophe.gouault@6wind.com> | 2020-09-21 10:17:35 +0200 |
commit | 1eb92f06c4e39a47a82ae585cfb276497843de6c (patch) | |
tree | 17ee7490850320dc573b80d0668da464cec41526 /lib/netns_other.c | |
parent | zebra: always display vrf in show ip route json (diff) | |
download | frr-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/netns_other.c')
-rw-r--r-- | lib/netns_other.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/netns_other.c b/lib/netns_other.c index 740d2b621..dc6bbbe47 100644 --- a/lib/netns_other.c +++ b/lib/netns_other.c @@ -110,13 +110,6 @@ void ns_init(void) { } -/* API to retrieve default NS */ -ns_id_t ns_get_default_id(void) -{ - return NS_UNKNOWN; -} - - /* API that can be used to change from NS */ int ns_switchback_to_initial(void) { |