]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Allow DEFPY_HIDDEN to exist in vtysh
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 21 Feb 2019 00:02:02 +0000 (19:02 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 21 Feb 2019 00:26:15 +0000 (19:26 -0500)
The DEFPY_HIDDEN commands were not being picked up
into vtysh.  Fix this issue.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/command.h

index 0faaa426ac2356859488d0c3d0facefc16884c53..a5f9616dbf3c74a9989d02fed021bd3a4690c3eb 100644 (file)
@@ -318,6 +318,9 @@ struct cmd_node {
 
 #define DEFPY_ATTR(funcname, cmdname, cmdstr, helpstr, attr)                   \
        DEFUN_ATTR(funcname, cmdname, cmdstr, helpstr, attr)
+
+#define DEFPY_HIDDEN(funcname, cmdname, cmdstr, helpstr)                       \
+       DEFUN_HIDDEN(funcname, cmdname, cmdstr, helpstr)
 #endif /* VTYSH_EXTRACT_PL */
 
 /* Some macroes */