*: fix some malformed CLI docstrings

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2022-10-04 15:18:29 +02:00
parent 3df5764499
commit a0dfca37b5
7 changed files with 28 additions and 22 deletions

View File

@ -5773,7 +5773,7 @@ ALIAS_HIDDEN(neighbor_remove_private_as_all,
"neighbor <A.B.C.D|X:X::X:X|WORD> remove-private-AS all",
NEIGHBOR_STR NEIGHBOR_ADDR_STR2
"Remove private ASNs in outbound updates\n"
"Apply to all AS numbers")
"Apply to all AS numbers\n")
DEFUN (neighbor_remove_private_as_replace_as,
neighbor_remove_private_as_replace_as_cmd,

View File

@ -246,7 +246,7 @@ DEFPY (ldp_allow_broken_lsps,
"[no] install allow-broken-lsps",
NO_STR
"install lsps\n"
"if no remote-label install with imp-null")
"if no remote-label install with imp-null\n")
{
return (ldp_vty_allow_broken_lsp(vty, no));
}

View File

@ -761,8 +761,8 @@ DEFPY (log_immediate_mode,
log_immediate_mode_cmd,
"[no] log immediate-mode",
NO_STR
"Logging control"
"Output immediately, without buffering")
"Logging control\n"
"Output immediately, without buffering\n")
{
zlog_set_immediate(!no);
return CMD_SUCCESS;

View File

@ -2997,9 +2997,9 @@ DEFPY(gm_debug_show,
"debug show mld interface IFNAME",
DEBUG_STR
SHOW_STR
"MLD"
MLD_STR
INTERFACE_STR
"interface name")
"interface name\n")
{
struct interface *ifp;
struct pim_interface *pim_ifp;

View File

@ -5437,7 +5437,7 @@ DEFPY(no_ip_msdp_mesh_group,
IP_STR
CFG_MSDP_STR
"Delete MSDP mesh-group\n"
"Mesh group name")
"Mesh group name\n")
{
const char *vrfname;
char xpath_value[XPATH_MAXLEN];

View File

@ -121,7 +121,7 @@ DEFPY_YANG(vrrp_priority,
VRRP_STR
VRRP_VRID_STR
VRRP_PRIORITY_STR
"Priority value")
"Priority value\n")
{
nb_cli_enqueue_change(vty, "./priority", NB_OP_MODIFY, priority_str);
@ -138,7 +138,7 @@ DEFPY_YANG(no_vrrp_priority,
VRRP_STR
VRRP_VRID_STR
VRRP_PRIORITY_STR
"Priority value")
"Priority value\n")
{
nb_cli_enqueue_change(vty, "./priority", NB_OP_MODIFY, NULL);
@ -162,7 +162,7 @@ DEFPY_YANG(vrrp_advertisement_interval,
vrrp_advertisement_interval_cmd,
"vrrp (1-255)$vrid advertisement-interval (10-40950)",
VRRP_STR VRRP_VRID_STR VRRP_ADVINT_STR
"Advertisement interval in milliseconds; must be multiple of 10")
"Advertisement interval in milliseconds; must be multiple of 10\n")
{
char val[20];
@ -183,7 +183,7 @@ DEFPY_YANG(no_vrrp_advertisement_interval,
no_vrrp_advertisement_interval_cmd,
"no vrrp (1-255)$vrid advertisement-interval [(10-40950)]",
NO_STR VRRP_STR VRRP_VRID_STR VRRP_ADVINT_STR
"Advertisement interval in milliseconds; must be multiple of 10")
"Advertisement interval in milliseconds; must be multiple of 10\n")
{
nb_cli_enqueue_change(vty, "./advertisement-interval", NB_OP_MODIFY,
NULL);

View File

@ -1841,12 +1841,15 @@ DEFUN (clear_zebra_fpm_stats,
/*
* update fpm connection information
*/
DEFUN ( fpm_remote_ip,
DEFUN (fpm_remote_ip,
fpm_remote_ip_cmd,
"fpm connection ip A.B.C.D port (1-65535)",
"fpm connection remote ip and port\n"
"Remote fpm server ip A.B.C.D\n"
"Enter ip ")
"fpm connection ip A.B.C.D port (1-65535)",
"Forwarding Path Manager\n"
"Configure FPM connection\n"
"Connect to IPv4 address\n"
"Connect to IPv4 address\n"
"TCP port number\n"
"TCP port number\n")
{
in_addr_t fpm_server;
@ -1867,13 +1870,16 @@ DEFUN ( fpm_remote_ip,
return CMD_SUCCESS;
}
DEFUN ( no_fpm_remote_ip,
DEFUN (no_fpm_remote_ip,
no_fpm_remote_ip_cmd,
"no fpm connection ip A.B.C.D port (1-65535)",
"fpm connection remote ip and port\n"
"Connection\n"
"Remote fpm server ip A.B.C.D\n"
"Enter ip ")
"no fpm connection ip A.B.C.D port (1-65535)",
NO_STR
"Forwarding Path Manager\n"
"Remove configured FPM connection\n"
"Connect to IPv4 address\n"
"Connect to IPv4 address\n"
"TCP port number\n"
"TCP port number\n")
{
if (zfpm_g->fpm_server != inet_addr(argv[4]->arg)
|| zfpm_g->fpm_port != atoi(argv[6]->arg))