diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-09-11 13:36:55 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-11 13:36:55 -0400 | 
| commit | 51678b65047b7c3d2e663491b08398aa354491b8 (patch) | |
| tree | 518515f7d999960334d8d5ff8268dab780433dea /staticd/static_routes.c | |
| parent | fa0ebe5a8a27fde0ecaf9f52c6621368c785ad8c (diff) | |
| parent | 9c0bcd0d974b216ca8302abd6849a87d5f4d0420 (diff) | |
Merge pull request #4722 from ak503/static
staticd: correct update static route when specify nexthop-vrf
Diffstat (limited to 'staticd/static_routes.c')
| -rw-r--r-- | staticd/static_routes.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/staticd/static_routes.c b/staticd/static_routes.c index 34f58a98e2..a8a5ca523a 100644 --- a/staticd/static_routes.c +++ b/staticd/static_routes.c @@ -100,7 +100,8 @@ int static_add_route(afi_t afi, safi_t safi, uint8_t type, struct prefix *p,  			     && IPV4_ADDR_SAME(&gate->ipv4, &si->addr.ipv4))  			    || (afi == AFI_IP6  				&& IPV6_ADDR_SAME(gate, &si->addr.ipv6)))) -		    && (!strcmp(ifname ? ifname : "", si->ifname))) { +		    && (!strcmp(ifname ? ifname : "", si->ifname)) +		    && nh_svrf->vrf->vrf_id == si->nh_vrf_id) {  			if ((distance == si->distance) && (tag == si->tag)  			    && (table_id == si->table_id)  			    && !memcmp(&si->snh_label, snh_label,  | 
