diff options
| author | Hiroki Shirokura <slank.dev@gmail.com> | 2020-12-09 18:52:17 +0900 | 
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2021-06-02 10:24:47 -0400 | 
| commit | 6e68a08484bf8f5c79f041ce8c103ce42abc2e7f (patch) | |
| tree | fe15369c2c80eb9db7c125098f910272b5012291 /zebra/main.c | |
| parent | f2867068e679900582aeb263d1723f8d7c3aa0ed (diff) | |
zebra: ZAPI add new api to manipulate srv6-locator (step2)
This commit is a part of #5853 works that add new ZAPI to
configure SRv6 locator which manages chunk prefix for
SRv6 SID IPv6 address for each routing protocol daemons.
NEW-ZAPIs:
* ZEBRA_SRV6_LOCATOR_ADD
* ZEBRA_SRV6_LOCATOR_DELETE
* ZEBRA_SRV6_MANAGER_CONNECT
* ZEBRA_SRV6_MANAGER_GET_LOCATOR_CHUNK
* ZEBRA_SRV6_MANAGER_RELEASE_LOCATOR_CHUNK
Zclient can connect to zebra's srv6-manager with
ZEBRA_SRV6_MANAGER_CONNECT api like a label-manager.
Then zclient uses ZEBRA_SRV6_MANAGER_GET_LOCATOR_CHUNK to
allocated dedicated locator chunk for it's routing protocol.
Zebra works for only prefix reservation and distribute
the ownership of the locator chunks for zcliens.
Then, zclient installs SRv6 function with
ZEBRA_ROUTE_ADD api with nh_seg6local_* fields.
This feature is already implemented by another PR(#7680).
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
Diffstat (limited to 'zebra/main.c')
| -rw-r--r-- | zebra/main.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/main.c b/zebra/main.c index 259c70d0df..e36af51005 100644 --- a/zebra/main.c +++ b/zebra/main.c @@ -57,6 +57,7 @@  #include "zebra/zebra_nb.h"  #include "zebra/zebra_opaque.h"  #include "zebra/zebra_srte.h" +#include "zebra/zebra_srv6.h"  #include "zebra/zebra_srv6_vty.h"  #define ZEBRA_PTM_SUPPORT @@ -419,6 +420,7 @@ int main(int argc, char **argv)  	zebra_pbr_init();  	zebra_opaque_init();  	zebra_srte_init(); +	zebra_srv6_init();  	zebra_srv6_vty_init();  	/* For debug purpose. */  | 
