summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_ns.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-02-14 04:38:47 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-02-23 13:08:36 +0100
commitae825b8bf07764dc77248c83249c57a26ba2fd2b (patch)
treee2a3772f8b5f9ed746c35b961235b7dc964e3678 /zebra/zebra_ns.h
parentzebra: Allow table creation for tables greater than 252 (diff)
downloadfrr-ae825b8bf07764dc77248c83249c57a26ba2fd2b.tar.xz
frr-ae825b8bf07764dc77248c83249c57a26ba2fd2b.zip
zebra: Add code to display interesting tables
With the ability of zebra to handle random tables, add code to display those tables via the show <ip|ipv6> route table (1-...) [json] command. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_ns.h')
-rw-r--r--zebra/zebra_ns.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_ns.h b/zebra/zebra_ns.h
index 29905ccad..765f2c689 100644
--- a/zebra/zebra_ns.h
+++ b/zebra/zebra_ns.h
@@ -77,6 +77,8 @@ int zebra_ns_init(void);
int zebra_ns_enable(ns_id_t ns_id, void **info);
int zebra_ns_disable(ns_id_t ns_id, void **info);
+extern struct route_table *zebra_ns_find_table(struct zebra_ns *zns,
+ uint32_t tableid, afi_t afi);
extern struct route_table *zebra_ns_get_table(struct zebra_ns *zns,
struct zebra_vrf *zvrf,
uint32_t tableid, afi_t afi);