zebra: handle config write for dataplane values

Add the (single) dataplane config value to the output of
config write, 'show run' - missed this during dplane development.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
Mark Stapp 2019-09-25 14:05:50 -04:00
parent 16296beaa5
commit f26730e17e
3 changed files with 17 additions and 0 deletions

View File

@ -2510,6 +2510,18 @@ int dplane_show_provs_helper(struct vty *vty, bool detailed)
return CMD_SUCCESS;
}
/*
* Helper for 'show run' etc.
*/
int dplane_config_write_helper(struct vty *vty)
{
if (zdplane_info.dg_max_queued_updates != DPLANE_DEFAULT_MAX_QUEUED)
vty_out(vty, "zebra dplane limit %u\n",
zdplane_info.dg_max_queued_updates);
return 0;
}
/*
* Provider registration
*/

View File

@ -455,6 +455,7 @@ uint32_t dplane_get_in_queue_len(void);
*/
int dplane_show_helper(struct vty *vty, bool detailed);
int dplane_show_provs_helper(struct vty *vty, bool detailed);
int dplane_config_write_helper(struct vty *vty);
/*
* Dataplane providers: modules that process or consume dataplane events.

View File

@ -2655,6 +2655,10 @@ static int config_write_protocol(struct vty *vty)
== MCAST_MIX_DISTANCE
? "lower-distance"
: "longer-prefix");
/* Include dataplane info */
dplane_config_write_helper(vty);
return 1;
}