mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 14:04:32 +00:00
vtysh: fix extract.pl for commands with "_cmd"
If the command includes `_cmd`, hilarity ensues ;) Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
c574670847
commit
5a4ee981d0
@ -269,7 +269,7 @@ EOF
|
|||||||
foreach (sort keys %odefun) {
|
foreach (sort keys %odefun) {
|
||||||
my ($node, $str) = (split (/,/));
|
my ($node, $str) = (split (/,/));
|
||||||
$cmd = $ocmd{$_};
|
$cmd = $ocmd{$_};
|
||||||
$cmd =~ s/_cmd/_cmd_vtysh/;
|
$cmd =~ s/_cmd$/_cmd_vtysh/;
|
||||||
printf " install_element ($node, &$cmd);\n";
|
printf " install_element ($node, &$cmd);\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user