diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2018-11-29 17:06:22 -0200 | 
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2018-12-03 13:47:58 -0200 | 
| commit | d682d365a561697118d0e52c0190241ddc3fd598 (patch) | |
| tree | 9eb7591d560204d8820dac4f43dab948bf2df288 /ripd/rip_cli.c | |
| parent | a3d29c6a4981027159d594297e466d9b92ab6b1b (diff) | |
ripd: fix minor issues from the northbound conversion
* Always apply the mask of IPv4 prefixes (user data) in the
  northbound callbacks, we shouldn't assume the northbound plugins
  will do that for us.
* Fix a bug in the "distance" command introduced by commit a6233bfcb3b.
* Remove unnecessary check in the
  ripd_instance_redistribute_route_map_delete() function and
  reset the route-map's map pointer for safety as well.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ripd/rip_cli.c')
| -rw-r--r-- | ripd/rip_cli.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/ripd/rip_cli.c b/ripd/rip_cli.c index e0e5d95895..5bb81ef157 100644 --- a/ripd/rip_cli.c +++ b/ripd/rip_cli.c @@ -210,7 +210,8 @@ DEFPY (rip_distance_source,  {  	if (!no) {  		nb_cli_enqueue_change(vty, ".", NB_OP_CREATE, NULL); -		nb_cli_enqueue_change(vty, "./distance", NB_OP_MODIFY, NULL); +		nb_cli_enqueue_change(vty, "./distance", NB_OP_MODIFY, +				      distance_str);  		nb_cli_enqueue_change(vty, "./access-list",  				      acl ? NB_OP_MODIFY : NB_OP_DELETE, acl);  	} else  | 
