diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2019-08-06 16:45:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-06 16:45:56 +0200 |
| commit | c8ec87df6e2bc4de3988bd540d369d3589bdeab6 (patch) | |
| tree | f963fbb2e12512e142a63582a418508431c43693 /zebra/zebra_ns.c | |
| parent | 7040d52aafca16fb0048c1712a919d8209c54dc9 (diff) | |
| parent | c7975431e633c88ff9a728aba514f97638d4f51a (diff) | |
all: remove logical-router functionality (#4774)
all: remove logical-router functionality
Diffstat (limited to 'zebra/zebra_ns.c')
| -rw-r--r-- | zebra/zebra_ns.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/zebra/zebra_ns.c b/zebra/zebra_ns.c index db4f9d0015..94918365a3 100644 --- a/zebra/zebra_ns.c +++ b/zebra/zebra_ns.c @@ -23,7 +23,6 @@ #include "lib/ns.h" #include "lib/vrf.h" -#include "lib/logicalrouter.h" #include "lib/prefix.h" #include "lib/memory.h" @@ -45,7 +44,6 @@ DEFINE_MTYPE(ZEBRA, ZEBRA_NS, "Zebra Name Space") static struct zebra_ns *dzns; -static int logicalrouter_config_write(struct vty *vty); static int zebra_ns_disable_internal(struct zebra_ns *zns, bool complete); struct zebra_ns *zebra_ns_lookup(ns_id_t ns_id) @@ -188,8 +186,6 @@ int zebra_ns_init(const char *optional_default_name) ns_id_external = ns_map_nsid_with_external(ns_id, true); ns_init_management(ns_id_external, ns_id); - logicalrouter_init(logicalrouter_config_write); - /* Do any needed per-NS data structure allocation. */ dzns->if_table = route_table_init(); @@ -215,21 +211,6 @@ int zebra_ns_init(const char *optional_default_name) return 0; } -static int logicalrouter_config_write(struct vty *vty) -{ - struct ns *ns; - int write = 0; - - RB_FOREACH (ns, ns_head, &ns_tree) { - if (ns->ns_id == NS_DEFAULT || ns->name == NULL) - continue; - vty_out(vty, "logical-router %u netns %s\n", ns->ns_id, - ns->name); - write = 1; - } - return write; -} - int zebra_ns_config_write(struct vty *vty, struct ns *ns) { if (ns && ns->name != NULL) |
