]> git.proxmox.com Git - mirror_frr.git/commit
lib: add hook for preprocessing commands
authorQuentin Young <qlyoung@cumulusnetworks.com>
Sun, 13 May 2018 00:09:08 +0000 (20:09 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 6 Jun 2018 16:15:34 +0000 (16:15 +0000)
commit01e24c4a69767eb12d3c23c9f8b58063cb04f4e1
treeab66dfaeceb36fabb656d18f20105144de821f84
parentfe011935cdeda14b61297e72bc30eae46ccd4f55
lib: add hook for preprocessing commands

This patch adds a hook point intended to allow subscribers to modify the
raw text of a CLI command before it is passed to the rest of the CLI
pipeline. To give access to the raw text of the command, a new function
for executing CLI has been defined whose only difference from
`cmd_execute_command` is that it accepts the command to execute as a
string rather than as a string vector.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/command.c
lib/command.h