summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_ns.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2017-12-06 12:03:59 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-02-27 11:11:24 +0100
commitb95c18833a36bcf03b7a72c110be24873a65420d (patch)
treea4e87d33219f1adf263657ad916455260fcab42d /zebra/zebra_ns.h
parentzebra: add a runtime flag to enable vrf with netns (diff)
downloadfrr-b95c18833a36bcf03b7a72c110be24873a65420d.tar.xz
frr-b95c18833a36bcf03b7a72c110be24873a65420d.zip
zebra: copy logical-router-command under vrf subnode
a vty command is added: in addition to this command ( kept for future usage): - [no] logical-router-id <ID> netns <NETNSNAME> a new command is being placed under vrf subnode - vrf <NAME> [no] netns <NETNSNAME> exit This command permits to map a VRF with a Netnamespace. The commit only handles the relationship between vrf and ns structures. It adds 2 attributes to vrf structure: - one defines the kind of vrf ( mapped under netns or vrf from kernel) - the other is the opaque pointer to ns The show running-config is handled by zebra daemon. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/zebra_ns.h')
-rw-r--r--zebra/zebra_ns.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_ns.h b/zebra/zebra_ns.h
index 765f2c689..99e498416 100644
--- a/zebra/zebra_ns.h
+++ b/zebra/zebra_ns.h
@@ -82,4 +82,5 @@ extern struct route_table *zebra_ns_find_table(struct zebra_ns *zns,
extern struct route_table *zebra_ns_get_table(struct zebra_ns *zns,
struct zebra_vrf *zvrf,
uint32_t tableid, afi_t afi);
+int zebra_ns_config_write(struct vty *vty, struct ns *ns);
#endif