mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 15:30:02 +00:00
lib: Remove warning about script not found
Signed-off-by: Donald Lee <dlqs@gmx.com>
This commit is contained in:
parent
9d6204020d
commit
596b44af8a
@ -2430,12 +2430,11 @@ DEFUN(script,
|
||||
(void)str2prefix("1.2.3.4/24", &p);
|
||||
struct frrscript *fs = frrscript_new(argv[1]->arg);
|
||||
|
||||
if (fs == NULL) {
|
||||
vty_out(vty, "Script '/etc/frr/scripts/%s.lua' not found\n",
|
||||
argv[1]->arg);
|
||||
if (frrscript_load(fs, argv[2]->arg, NULL)) {
|
||||
vty_out(vty,
|
||||
"/etc/frr/scripts%s.lua or function '/%s' not found\n",
|
||||
argv[1]->arg, argv[2]->arg);
|
||||
}
|
||||
if (frrscript_load(fs, argv[2]->arg, NULL))
|
||||
vty_out(vty, "Script function '/%s' not found\n", argv[2]->arg);
|
||||
|
||||
int ret = frrscript_call(fs, argv[2]->arg, ("p", &p));
|
||||
char buf[40];
|
||||
|
Loading…
Reference in New Issue
Block a user