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:
Donald Sharp 2019-09-25 16:48:02 -04:00 committed by GitHub
commit 1e65094740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 0 deletions

View File

@ -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
*/

View File

@ -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.

View File

@ -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;
}