diff --git a/lib/node.c b/lib/node.c index 8f43da263..7b03c5317 100644 --- a/lib/node.c +++ b/lib/node.c @@ -35,7 +35,7 @@ static int node_direction_init(struct node_direction *nd, struct node *n) { - nd->enabled = 1; + nd->enabled = 0; nd->vectorize = 1; nd->builtin = 1; @@ -98,12 +98,14 @@ static int node_direction_parse(struct node_direction *nd, struct node *n, json_ json_t *json_signals = NULL; nd->cfg = cfg; + nd->enabled = 1; - ret = json_unpack_ex(cfg, &err, 0, "{ s?: o, s?: o, s?: i, s?: b }", + ret = json_unpack_ex(cfg, &err, 0, "{ s?: o, s?: o, s?: i, s?: b, s?: b }", "hooks", &json_hooks, "signals", &json_signals, "vectorize", &nd->vectorize, - "builtin", &nd->builtin + "builtin", &nd->builtin, + "enabled", &nd->enabled ); if (ret) jerror(&err, "Failed to parse node '%s'", node_name(n));