diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2017-12-06 12:03:59 +0100 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-02-27 11:11:24 +0100 |
| commit | b95c18833a36bcf03b7a72c110be24873a65420d (patch) | |
| tree | a4e87d33219f1adf263657ad916455260fcab42d /lib/ns.h | |
| parent | 78dd30b263948ffb1d5c22592ef2d70b331bf071 (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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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*/ |
