summaryrefslogtreecommitdiff
path: root/lib/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 /lib/ns.h
parent78dd30b263948ffb1d5c22592ef2d70b331bf071 (diff)
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 'lib/ns.h')
-rw-r--r--lib/ns.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ns.h b/lib/ns.h
index 79b4cab04d..fab3e19368 100644
--- a/lib/ns.h
+++ b/lib/ns.h
@@ -49,6 +49,9 @@ struct ns {
/* Master list of interfaces belonging to this NS */
struct list *iflist;
+ /* Back Pointer to VRF */
+ void *vrf_ctxt;
+
/* User data */
void *info;
};
@@ -89,5 +92,6 @@ extern void ns_terminate(void);
/* Create a socket serving for the given NS */
extern int ns_socket(int, int, int, ns_id_t);
+extern void ns_cmd_init(void);
#endif /*_ZEBRA_NS_H*/