mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 10:09:25 +00:00
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:
parent
16296beaa5
commit
f26730e17e
@ -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
|
||||
*/
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user