summaryrefslogtreecommitdiffstats
path: root/src/parser_bison.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r--src/parser_bison.y8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y
index dcabb464..a3d93bf3 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -879,7 +879,13 @@ rename_cmd : CHAIN chain_spec identifier
}
;
-export_cmd : export_format
+export_cmd : RULESET export_format
+ {
+ struct handle h = { .family = NFPROTO_UNSPEC };
+ struct export *export = export_alloc($2);
+ $$ = cmd_alloc(CMD_EXPORT, CMD_OBJ_EXPORT, &h, &@$, export);
+ }
+ | export_format
{
struct handle h = { .family = NFPROTO_UNSPEC };
struct export *export = export_alloc($1);