*: 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 <A.B.C.D|X:X::X:X|WORD> remove-private-AS all",
NEIGHBOR_STR NEIGHBOR_ADDR_STR2 NEIGHBOR_STR NEIGHBOR_ADDR_STR2
"Remove private ASNs in outbound updates\n" "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, DEFUN (neighbor_remove_private_as_replace_as,
neighbor_remove_private_as_replace_as_cmd, neighbor_remove_private_as_replace_as_cmd,

View File

@ -246,7 +246,7 @@ DEFPY (ldp_allow_broken_lsps,
"[no] install allow-broken-lsps", "[no] install allow-broken-lsps",
NO_STR NO_STR
"install lsps\n" "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)); return (ldp_vty_allow_broken_lsp(vty, no));
} }

View File

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

View File

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

View File

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

View File

@ -121,7 +121,7 @@ DEFPY_YANG(vrrp_priority,
VRRP_STR VRRP_STR
VRRP_VRID_STR VRRP_VRID_STR
VRRP_PRIORITY_STR VRRP_PRIORITY_STR
"Priority value") "Priority value\n")
{ {
nb_cli_enqueue_change(vty, "./priority", NB_OP_MODIFY, priority_str); nb_cli_enqueue_change(vty, "./priority", NB_OP_MODIFY, priority_str);
@ -138,7 +138,7 @@ DEFPY_YANG(no_vrrp_priority,
VRRP_STR VRRP_STR
VRRP_VRID_STR VRRP_VRID_STR
VRRP_PRIORITY_STR VRRP_PRIORITY_STR
"Priority value") "Priority value\n")
{ {
nb_cli_enqueue_change(vty, "./priority", NB_OP_MODIFY, NULL); nb_cli_enqueue_change(vty, "./priority", NB_OP_MODIFY, NULL);
@ -162,7 +162,7 @@ DEFPY_YANG(vrrp_advertisement_interval,
vrrp_advertisement_interval_cmd, vrrp_advertisement_interval_cmd,
"vrrp (1-255)$vrid advertisement-interval (10-40950)", "vrrp (1-255)$vrid advertisement-interval (10-40950)",
VRRP_STR VRRP_VRID_STR VRRP_ADVINT_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")
{ {
char val[20]; char val[20];
@ -183,7 +183,7 @@ DEFPY_YANG(no_vrrp_advertisement_interval,
no_vrrp_advertisement_interval_cmd, no_vrrp_advertisement_interval_cmd,
"no vrrp (1-255)$vrid advertisement-interval [(10-40950)]", "no vrrp (1-255)$vrid advertisement-interval [(10-40950)]",
NO_STR VRRP_STR VRRP_VRID_STR VRRP_ADVINT_STR 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, nb_cli_enqueue_change(vty, "./advertisement-interval", NB_OP_MODIFY,
NULL); NULL);

View File

@ -1844,9 +1844,12 @@ DEFUN (clear_zebra_fpm_stats,
DEFUN (fpm_remote_ip, DEFUN (fpm_remote_ip,
fpm_remote_ip_cmd, fpm_remote_ip_cmd,
"fpm connection ip A.B.C.D port (1-65535)", "fpm connection ip A.B.C.D port (1-65535)",
"fpm connection remote ip and port\n" "Forwarding Path Manager\n"
"Remote fpm server ip A.B.C.D\n" "Configure FPM connection\n"
"Enter ip ") "Connect to IPv4 address\n"
"Connect to IPv4 address\n"
"TCP port number\n"
"TCP port number\n")
{ {
in_addr_t fpm_server; in_addr_t fpm_server;
@ -1870,10 +1873,13 @@ DEFUN ( fpm_remote_ip,
DEFUN (no_fpm_remote_ip, DEFUN (no_fpm_remote_ip,
no_fpm_remote_ip_cmd, no_fpm_remote_ip_cmd,
"no fpm connection ip A.B.C.D port (1-65535)", "no fpm connection ip A.B.C.D port (1-65535)",
"fpm connection remote ip and port\n" NO_STR
"Connection\n" "Forwarding Path Manager\n"
"Remote fpm server ip A.B.C.D\n" "Remove configured FPM connection\n"
"Enter ip ") "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) if (zfpm_g->fpm_server != inet_addr(argv[4]->arg)
|| zfpm_g->fpm_port != atoi(argv[6]->arg)) || zfpm_g->fpm_port != atoi(argv[6]->arg))