diff options
Diffstat (limited to 'staticd/static_vrf.c')
| -rw-r--r-- | staticd/static_vrf.c | 7 | 
1 files changed, 2 insertions, 5 deletions
diff --git a/staticd/static_vrf.c b/staticd/static_vrf.c index 710827a9ff..78bc30500b 100644 --- a/staticd/static_vrf.c +++ b/staticd/static_vrf.c @@ -51,10 +51,8 @@ struct static_vrf *static_vrf_alloc(const char *name)  	for (afi = AFI_IP; afi <= AFI_IP6; afi++) {  		for (safi = SAFI_UNICAST; safi <= SAFI_MULTICAST; safi++) { -			if (afi == AFI_IP6) -				table = srcdest_table_init(); -			else -				table = route_table_init(); +			table = srcdest_table_init(); +			table->cleanup = zebra_stable_node_cleanup;  			info = XCALLOC(MTYPE_STATIC_RTABLE_INFO,  				       sizeof(struct stable_info)); @@ -63,7 +61,6 @@ struct static_vrf *static_vrf_alloc(const char *name)  			info->safi = safi;  			route_table_set_info(table, info); -			table->cleanup = zebra_stable_node_cleanup;  			svrf->stable[afi][safi] = table;  		}  	}  | 
