diff options
| author | Russ White <russ@riw.us> | 2018-06-19 07:19:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-19 07:19:39 -0400 |
| commit | 0ddc9a2d9dbb3c49441b137aadbda4d3ddbcf337 (patch) | |
| tree | 49ceaf0d8003aa422d05784e75f188ccd7b0baa8 /zebra/interface.c | |
| parent | f071d8b36a612c72cc598ed457279b5b8a42b121 (diff) | |
| parent | 65a6617b6402e2bd8874285be6eca1734dd5b96c (diff) | |
Merge pull request #2479 from dslicenc/zebra-vrf-statics
zebra: re-install static routes needed vrf when the vrf intf comes up
Diffstat (limited to 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index 7de18d683c..6125ff9a16 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -934,6 +934,12 @@ void if_up(struct interface *ifp) /* Install connected routes to the kernel. */ if_install_connected(ifp); + /* Install any static routes using this vrf interface */ + if (IS_ZEBRA_IF_VRF(ifp)) { + static_fixup_vrf_ids(zvrf); + static_config_install_delayed_routes(zvrf); + } + if (IS_ZEBRA_DEBUG_RIB_DETAILED) zlog_debug("%u: IF %s up, scheduling RIB processing", ifp->vrf_id, ifp->name); |
