]> git.puffer.fish Git - mirror/frr.git/commitdiff
doc: Improve Zebra set src documentation. (IPv6) 6384/head
authorTim Bray <tim@kooky.org>
Tue, 12 May 2020 10:41:13 +0000 (11:41 +0100)
committerTim Bray <tim@kooky.org>
Tue, 12 May 2020 21:49:33 +0000 (22:49 +0100)
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 <tim@kooky.org>
doc/user/zebra.rst

index 9dfd08f733f6c480ca6cb3aedd63213afcf0cfa2..f3b4ca7d035aadcae2fb03918876d379447f44ee 100644 (file)
@@ -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: