diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-28 23:23:57 +0200 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-28 23:46:38 +0200 | 
| commit | 15514b6d288d3c46913cd1b79c8b42850bf1c35d (patch) | |
| tree | ce1c605969814bbd3eba4e21c61112c61b842592 /zebra/interface.c | |
| parent | 390081329874c4fd8b4a15ffa2a090275b5fc8ac (diff) | |
lib, mgmtd, zebra: cleanup of zebra conversion to mgmtd
- use `apply_finish` callback when possible to avoid multiple applies per commit
- move table range working to the CLI handler
- remove unnecessary conditional compilation
- remove unnecessary boolean conversion
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 15 | 
1 files changed, 0 insertions, 15 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index cba052dff6..6e33d7ec7d 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -3792,27 +3792,16 @@ void link_param_cmd_set_uint32(struct interface *ifp, uint32_t *field,  	if (IS_PARAM_UNSET(ifp->link_params, type) || *field != value) {  		*field = value;  		SET_PARAM(ifp->link_params, type); - -		/* force protocols to update LINK STATE due to parameters change -		 */ -		if (if_is_operative(ifp)) -			zebra_interface_parameters_update(ifp);  	}  }  void link_param_cmd_set_float(struct interface *ifp, float *field,  			      uint32_t type, float value)  { -  	/* Update field as needed */  	if (IS_PARAM_UNSET(ifp->link_params, type) || *field != value) {  		*field = value;  		SET_PARAM(ifp->link_params, type); - -		/* force protocols to update LINK STATE due to parameters change -		 */ -		if (if_is_operative(ifp)) -			zebra_interface_parameters_update(ifp);  	}  } @@ -3823,10 +3812,6 @@ void link_param_cmd_unset(struct interface *ifp, uint32_t type)  	/* Unset field */  	UNSET_PARAM(ifp->link_params, type); - -	/* force protocols to update LINK STATE due to parameters change */ -	if (if_is_operative(ifp)) -		zebra_interface_parameters_update(ifp);  }  void if_ip_address_install(struct interface *ifp, struct prefix *prefix,  | 
