]> git.puffer.fish Git - matthieu/frr.git/commitdiff
vtysh: fix extract.pl for commands with "_cmd"
authorDavid Lamparter <equinox@diac24.net>
Tue, 13 Apr 2021 21:34:34 +0000 (23:34 +0200)
committerDavid Lamparter <equinox@diac24.net>
Tue, 13 Apr 2021 21:57:14 +0000 (23:57 +0200)
If the command includes `_cmd`, hilarity ensues ;)

Signed-off-by: David Lamparter <equinox@diac24.net>
vtysh/extract.pl.in

index 4855c23f4b15ab837b37614c9b2278bb1a981c5a..5e2189aadfe1eb242d74b3048dd7289d2dfde616 100755 (executable)
@@ -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";
 }