aboutsummaryrefslogtreecommitdiffstats
path: root/filter/config.Y
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2021-02-24 18:03:33 +0900
committerKazuki Yamaguchi <k@rhe.jp>2023-10-11 17:53:28 +0900
commitb0b7f14398e868417eb80a7a7ebd31aed94297ac (patch)
tree106920bf374a761f891e3a624fe386900f475862 /filter/config.Y
parent0e1fbaa5b21db8e5c64a732dbaf0b8afe707a147 (diff)
downloadbird-ky/bgp-attach-aggregator.tar.gz
Filter: Allow manually setting AGGREGATOR attributeky/bgp-attach-aggregator
Uhm this is not a great way, but works.
Diffstat (limited to 'filter/config.Y')
-rw-r--r--filter/config.Y2
1 files changed, 2 insertions, 0 deletions
diff --git a/filter/config.Y b/filter/config.Y
index f3ed2dc5..5bdef72e 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -371,6 +371,7 @@ CF_KEYWORDS(FUNCTION, PRINT, PRINTN, UNSET, RETURN,
EMPTY,
FILTER, WHERE, EVAL, ATTRIBUTE,
FROM_HEX,
+ ATTACH_BGP_AGGREGATOR,
BT_ASSERT, BT_TEST_SUITE, BT_CHECK_ASSIGN, BT_TEST_SAME, FORMAT)
%nonassoc THEN
@@ -1070,6 +1071,7 @@ cmd:
}
| BT_ASSERT '(' get_cf_position term get_cf_position ')' ';' { $$ = assert_done($4, $3 + 1, $5 - 1); }
| BT_CHECK_ASSIGN '(' get_cf_position lvalue get_cf_position ',' term ')' ';' { $$ = assert_assign(&$4, $7, $3 + 1, $5 - 1); }
+ | ATTACH_BGP_AGGREGATOR '(' term ',' term ')' ';' { $$ = f_new_inst(FI_ATTACH_BGP_AGGREGATOR, $3, $5); }
;
get_cf_position: