From 1d0372dd8fb8026c0cb677163b8e5d0b740ad489 Mon Sep 17 00:00:00 2001 From: Tim Bray Date: Tue, 12 May 2020 11:41:13 +0100 Subject: [PATCH] doc: Improve Zebra set src documentation. (IPv6) Include an IPv6 example for set src And a note that the IP address has to exist. This is to try and make people aware to avoid things like issue #4249 https://github.com/FRRouting/frr/issues/4249 Signed-off-by: Tim Bray --- doc/user/zebra.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/user/zebra.rst b/doc/user/zebra.rst index 9dfd08f733..f3b4ca7d03 100644 --- a/doc/user/zebra.rst +++ b/doc/user/zebra.rst @@ -708,6 +708,24 @@ that sets the preferred source address, and applies the route-map to all ip protocol rip route-map RM1 +IPv6 example for OSPFv3. + +.. code-block:: frr + + ipv6 prefix-list ANY seq 10 permit any + route-map RM6 permit 10 + match ipv6 address prefix-list ANY + set src 2001:db8:425:1000::3 + + ipv6 protocol ospf6 route-map RM6 + + +.. note:: + + For both IPv4 and IPv6, the IP address has to exist at the point the + route-map is created. Be wary of race conditions if the interface is + not created at startup. On Debian, FRR might start before ifupdown + completes. Consider a reboot test. .. _zebra-fib-push-interface: -- 2.39.5