]> git.proxmox.com Git - mirror_frr.git/commit
shaprd: install route supports nexthop-seg6local (step1)
authorHiroki Shirokura <slank.dev@gmail.com>
Sun, 6 Dec 2020 00:10:33 +0000 (09:10 +0900)
committerMark Stapp <mjs@voltanet.io>
Wed, 2 Jun 2021 14:24:47 +0000 (10:24 -0400)
commitdc3883cffef8b995ee3f36f52cd75673304e2cf9
tree79883962b5f07e5fb8057ddedfa3e82715c81afd
parentc27b47d7916d0abd558fed46ba2c6e11d2573b3f
shaprd: install route supports nexthop-seg6local (step1)

In this patch, we can install seg6local routes from shapd cli. New sub
command "sharp install route $PREFIX nexthop-seg6local" is added to
install seg6local routes via ZEBRA_ROUTE_ADD. This is for the behaviour
test(topotest) to ensure SRv6 ZAPI is working fine.

NEW-CLI:
sharp install routes 1::1 nexthop-seg6local dum0 End 1
sharp install routes 2::1 nexthop-seg6local dum0 End_X 2001::1 1
sharp install routes 3::1 nexthop-seg6local dum0 End_T 10 1
sharp install routes 4::1 nexthop-seg6local dum0 End_DX4 10.0.0.1 1

SRv6 routes are installed as NEXTHOP_IFINDEX routes because of seg6local
specification. seg6local routes depends the output device status instead
of routing-nexthop.

FYI:
In seg6local implementation, kernel don't care RTA_OIF on the nexthop
deeply but some requirement are exist as follow.
(a) DEV isn't loopback interface
(b) DEV's ipv6 status is enabled
(c) DEV's enslaving status is the same with target-route

Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
sharpd/sharp_vty.c