From: David Lamparter Date: Tue, 13 Apr 2021 21:34:34 +0000 (+0200) Subject: vtysh: fix extract.pl for commands with "_cmd" X-Git-Tag: base_8.0~132^2~5 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=5a4ee981d0f7e503c8dc8fee16d9e9d01e3e2f54;p=matthieu%2Ffrr.git vtysh: fix extract.pl for commands with "_cmd" If the command includes `_cmd`, hilarity ensues ;) Signed-off-by: David Lamparter --- diff --git a/vtysh/extract.pl.in b/vtysh/extract.pl.in index 4855c23f4b..5e2189aadf 100755 --- a/vtysh/extract.pl.in +++ b/vtysh/extract.pl.in @@ -269,7 +269,7 @@ EOF foreach (sort keys %odefun) { my ($node, $str) = (split (/,/)); $cmd = $ocmd{$_}; - $cmd =~ s/_cmd/_cmd_vtysh/; + $cmd =~ s/_cmd$/_cmd_vtysh/; printf " install_element ($node, &$cmd);\n"; }