mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 04:40:21 +00:00
Merge pull request #5059 from mjstapp/fix_dplane_config_handler_7_2
[7.2] zebra: add dataplane variables to show run
This commit is contained in:
commit
1e65094740
@ -2498,6 +2498,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
|
||||
*/
|
||||
|
@ -452,6 +452,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.
|
||||
|
@ -2651,6 +2651,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