]> git.proxmox.com Git - mirror_frr.git/commit
zebra: static: update on ifindex changes
authorDavid Lamparter <equinox@opensourcerouting.org>
Sun, 6 Aug 2017 03:14:39 +0000 (05:14 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sun, 6 Aug 2017 03:17:09 +0000 (05:17 +0200)
commitc3c0406378872fa6c8327627279b868285aaae6e
tree9d0e77f63934f1c22ba3dc47985f6b564d4220eb
parent23443030d3a45a4c765cbde5ee68d09ecbc68043
zebra: static: update on ifindex changes

Whenever an interface is created or deleted in the system, we need to
check whether we have static routes referencing that interface by name.
If so, we need to [un]install these routes.

This has the unfortunate side effect of making static routes with
non-existent interfaces disappear from "show ip route", but I think
that's acceptable (and I don't see a "good" fix for that).

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
zebra/interface.c
zebra/zebra_static.c
zebra/zebra_static.h
zebra/zebra_vty.c