summaryrefslogtreecommitdiff
path: root/proto/static/config.Y
diff options
context:
space:
mode:
authorJan Moskyto Matejka <mq@ucw.cz>2016-08-09 14:47:51 +0200
committerJan Moskyto Matejka <mq@ucw.cz>2016-12-22 21:38:33 +0100
commitd47c3d64b2733baea756f1bb37ef09f10d7f9644 (patch)
tree8812e0275fb076e0a0b3cf53b876b651ca29e7d7 /proto/static/config.Y
parentd14f8c3c45f7e33a7e54ebc0d45bdb0295d70301 (diff)
MPLS: Label stack concatenation for recursive routes
Diffstat (limited to 'proto/static/config.Y')
-rw-r--r--proto/static/config.Y7
1 files changed, 6 insertions, 1 deletions
diff --git a/proto/static/config.Y b/proto/static/config.Y
index a461bd27..2fb54448 100644
--- a/proto/static/config.Y
+++ b/proto/static/config.Y
@@ -105,7 +105,12 @@ stat_route:
this_srt->dest = RTDX_RECURSIVE;
this_srt->via = $3;
}
-
+ | stat_route0 RECURSIVE ipa MPLS label_stack {
+ this_srt->dest = RTDX_RECURSIVE;
+ this_srt->via = $3;
+ this_srt->label_count = $5[0];
+ this_srt->label_stack = &($5[1]);
+ }
| stat_route0 DROP { this_srt->dest = RTD_BLACKHOLE; }
| stat_route0 REJECT { this_srt->dest = RTD_UNREACHABLE; }
| stat_route0 BLACKHOLE { this_srt->dest = RTD_BLACKHOLE; }