]> git.puffer.fish Git - matthieu/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:42:54 +0000 (05:42 +0200)
commita3358cacb8ea549599198bf821acf8a3a462df73
tree46c18c730f2926ee29eedcf6560a6250b8fb453b
parent7569827e30cd02e35b7ca1d0e1fae7daa55f6c58
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