aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/node.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-08-27 22:43:23 +0200
committerDamjan Marion <damarion@cisco.com>2018-08-28 11:11:24 +0200
commit69abe4442bfd74976adc7371b35917cdee0d4274 (patch)
tree18d6f749729ab08ff293dde1cb6951dc9128b818 /src/vlib/node.c
parent57791ad4decd925bfe6c90f57ad628b1afbfcdac (diff)
vlib: add 'show node' and 'set node function' CLI
Change-Id: I084d7c9e34329f10b5fe45e0b157c4defe0f2811 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/node.c')
-rw-r--r--src/vlib/node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vlib/node.c b/src/vlib/node.c
index 805c69e4f8b..ed474eb5311 100644
--- a/src/vlib/node.c
+++ b/src/vlib/node.c
@@ -349,6 +349,7 @@ register_node (vlib_main_t * vm, vlib_node_registration_t * r)
n = clib_mem_alloc_no_fail (sizeof (n[0]));
memset (n, 0, sizeof (n[0]));
n->index = vec_len (nm->nodes);
+ n->node_fn_registrations = r->node_fn_registrations;
vec_add1 (nm->nodes, n);