diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-01-22 09:38:45 +0100 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-01-22 14:58:02 +0100 |
| commit | 90ac32c209129ea0ce65a43e64a398216360e415 (patch) | |
| tree | 8514df442479eec760e851ab3187e16dab33be86 /zebra/zebra_static.c | |
| parent | 2fcdb1b2d17703c3cbd152c37a9e221a92f644c7 (diff) | |
zebra: replace 0 value on zebra with VRF_DEFAULT
On some places of code, the VRF_DEFAULT define was not used. This commit
is ensuring that the macros is well used.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/zebra_static.c')
| -rw-r--r-- | zebra/zebra_static.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_static.c b/zebra/zebra_static.c index 751ea08a38..3dd5378f22 100644 --- a/zebra/zebra_static.c +++ b/zebra/zebra_static.c @@ -156,7 +156,7 @@ void static_install_route(afi_t afi, safi_t safi, struct prefix *p, re->mtu = 0; re->vrf_id = si->vrf_id; re->table = - si->vrf_id + (si->vrf_id != VRF_DEFAULT) ? (zebra_vrf_lookup_by_id(si->vrf_id))->table_id : zebrad.rtm_table_default; re->nexthop_num = 0; |
