diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-10-22 01:17:40 +0300 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-11-22 20:47:23 +0300 | 
| commit | 096f7609f9168ad1a2503acad31d3afc8f00f9e5 (patch) | |
| tree | 7acf9cbf0f944b032da6a796fcf8d7f6a06fe90a /eigrpd | |
| parent | d32c92a4c0fcee71a8a6d02cb9ff84607cfdcc07 (diff) | |
*: cleanup ifp->vrf_id
Since f60a1188 we store a pointer to the VRF in the interface structure.
There's no need anymore to store a separate vrf_id field.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'eigrpd')
| -rw-r--r-- | eigrpd/eigrp_filter.c | 2 | ||||
| -rw-r--r-- | eigrpd/eigrp_network.c | 2 | ||||
| -rw-r--r-- | eigrpd/eigrp_northbound.c | 4 | 
3 files changed, 4 insertions, 4 deletions
diff --git a/eigrpd/eigrp_filter.c b/eigrpd/eigrp_filter.c index bb0cf51bd8..69c0d22aea 100644 --- a/eigrpd/eigrp_filter.c +++ b/eigrpd/eigrp_filter.c @@ -215,7 +215,7 @@ void eigrp_distribute_update_interface(struct interface *ifp)  	struct distribute *dist;  	struct eigrp *eigrp; -	eigrp = eigrp_lookup(ifp->vrf_id); +	eigrp = eigrp_lookup(ifp->vrf->vrf_id);  	if (!eigrp)  		return;  	dist = distribute_lookup(eigrp->distribute_ctx, ifp->name); diff --git a/eigrpd/eigrp_network.c b/eigrpd/eigrp_network.c index 9a5fbc52b4..6b3a0afc12 100644 --- a/eigrpd/eigrp_network.c +++ b/eigrpd/eigrp_network.c @@ -288,7 +288,7 @@ void eigrp_if_update(struct interface *ifp)  	 * we need to check eac one and add the interface as approperate  	 */  	for (ALL_LIST_ELEMENTS(eigrp_om->eigrp, node, nnode, eigrp)) { -		if (ifp->vrf_id != eigrp->vrf_id) +		if (ifp->vrf->vrf_id != eigrp->vrf_id)  			continue;  		/* EIGRP must be on and Router-ID must be configured. */ diff --git a/eigrpd/eigrp_northbound.c b/eigrpd/eigrp_northbound.c index 3ad711164b..a0f8452c94 100644 --- a/eigrpd/eigrp_northbound.c +++ b/eigrpd/eigrp_northbound.c @@ -1135,7 +1135,7 @@ static int lib_interface_eigrp_instance_create(struct nb_cb_create_args *args)  		}  		eigrp = eigrp_get(yang_dnode_get_uint16(args->dnode, "./asn"), -				  ifp->vrf_id); +				  ifp->vrf->vrf_id);  		eif = eigrp_interface_lookup(eigrp, ifp->name);  		if (eif == NULL)  			return NB_ERR_INCONSISTENCY; @@ -1147,7 +1147,7 @@ static int lib_interface_eigrp_instance_create(struct nb_cb_create_args *args)  	case NB_EV_APPLY:  		ifp = nb_running_get_entry(args->dnode, NULL, true);  		eigrp = eigrp_get(yang_dnode_get_uint16(args->dnode, "./asn"), -				  ifp->vrf_id); +				  ifp->vrf->vrf_id);  		eif = eigrp_interface_lookup(eigrp, ifp->name);  		if (eif == NULL)  			return NB_ERR_INCONSISTENCY;  | 
