diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-11-16 07:00:52 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-01 17:25:56 +0100 |
commit | 0b84f294904959a4be58db6fe0e89d71b2c1f401 (patch) | |
tree | f52c765644294f314ede33506f29b6888439b904 /lib/workqueue.c | |
parent | Merge branch 'stable/2.0' (diff) | |
download | frr-0b84f294904959a4be58db6fe0e89d71b2c1f401.tar.xz frr-0b84f294904959a4be58db6fe0e89d71b2c1f401.zip |
*: make DEFUN installations file-local
This moves all install_element calls into the file where the DEFUNs are
located. This fixes several small related bugs:
- ospf6d wasn't installing a "no interface FOO" command
- zebra had a useless copy of "interface FOO"
- pimd's copy of "interface FOO" was not setting qobj_index, which means
"description LINE" commands would fail with an error
The next commit will do the actual act of making "foo_cmd" static.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/workqueue.c')
-rw-r--r-- | lib/workqueue.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/workqueue.c b/lib/workqueue.c index 549bb2360..51017b34e 100644 --- a/lib/workqueue.c +++ b/lib/workqueue.c @@ -222,6 +222,12 @@ DEFUN (show_work_queues, return CMD_SUCCESS; } +void +workqueue_cmd_init (void) +{ + install_element (VIEW_NODE, &show_work_queues_cmd); +} + /* 'plug' a queue: Stop it from being scheduled, * ie: prevent the queue from draining. */ |