mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-06 17:50:57 +00:00
lib: Add function name to script command
Signed-off-by: Donald Lee <dlqs@gmx.com>
This commit is contained in:
parent
1da9c4bdbb
commit
8be973f5c2
@ -2419,11 +2419,10 @@ DEFUN(find,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(DEV_BUILD) && defined(HAVE_SCRIPTING)
|
#if defined(DEV_BUILD) && defined(HAVE_SCRIPTING)
|
||||||
DEFUN(script,
|
DEFUN(script, script_cmd, "script SCRIPT FUNCTION",
|
||||||
script_cmd,
|
"Test command - execute a function in a script\n"
|
||||||
"script SCRIPT",
|
"Script name (same as filename in /etc/frr/scripts/)\n"
|
||||||
"Test command - execute a script\n"
|
"Function name (in the script)\n")
|
||||||
"Script name (same as filename in /etc/frr/scripts/\n")
|
|
||||||
{
|
{
|
||||||
struct prefix p;
|
struct prefix p;
|
||||||
|
|
||||||
@ -2432,7 +2431,7 @@ DEFUN(script,
|
|||||||
|
|
||||||
if (frrscript_load(fs, argv[2]->arg, NULL)) {
|
if (frrscript_load(fs, argv[2]->arg, NULL)) {
|
||||||
vty_out(vty,
|
vty_out(vty,
|
||||||
"/etc/frr/scripts%s.lua or function '/%s' not found\n",
|
"/etc/frr/scripts/%s.lua or function '%s' not found\n",
|
||||||
argv[1]->arg, argv[2]->arg);
|
argv[1]->arg, argv[2]->arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user