diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-12-16 17:19:37 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-16 20:42:01 +0100 |
commit | 4d94b2929671e9251e95e6d2f88da8797a1d6e1e (patch) | |
tree | 62f7fbb95edac618a4e4b4520642907004842fac /lib/command_parse.y | |
parent | bgpd: shuffle qobj_init() (diff) | |
download | frr-4d94b2929671e9251e95e6d2f88da8797a1d6e1e.tar.xz frr-4d94b2929671e9251e95e6d2f88da8797a1d6e1e.zip |
lib: parser: move allowrepeat to cmd_token
struct graph_node isn't quite the right place to control matcher
behaviour.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/command_parse.y')
-rw-r--r-- | lib/command_parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command_parse.y b/lib/command_parse.y index 81aa8a04e..43062eb5d 100644 --- a/lib/command_parse.y +++ b/lib/command_parse.y @@ -183,7 +183,7 @@ start: if ((ctx->currnode = add_edge_dedup (ctx->currnode, $3)) != $3) graph_delete_node (ctx->graph, $3); - ctx->currnode->allowrepeat = 1; + ((struct cmd_token *)ctx->currnode->data)->allowrepeat = 1; // adding a node as a child of itself accepts any number // of the same token, which is what we want for variadics |