diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2017-03-17 15:48:09 +0100 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2017-03-17 15:48:32 +0100 |
commit | 3c74416465d77c0e79eeaaeb988e471663484b5d (patch) | |
tree | 44f84dccd613fd36700729972d9329369275d785 /proto/static/config.Y | |
parent | a5d2a34497853a02692a0b8ea812f44d6820a399 (diff) |
Nexthop: Fixed recursive route mpls label merging
Diffstat (limited to 'proto/static/config.Y')
-rw-r--r-- | proto/static/config.Y | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/proto/static/config.Y b/proto/static/config.Y index 86fcedec..cd8bfcec 100644 --- a/proto/static/config.Y +++ b/proto/static/config.Y @@ -75,8 +75,7 @@ stat_nexthop: this_snh->iface = if_get_by_name($2); } | stat_nexthop MPLS label_stack { - this_snh->label_count = $3[0]; - this_snh->label_stack = &($3[1]); + this_snh->mls = $3; } | stat_nexthop WEIGHT expr { this_snh->weight = $3 - 1; @@ -111,8 +110,7 @@ stat_route: | 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]); + this_srt->mls = $5; } | stat_route0 DROP { this_srt->dest = RTD_BLACKHOLE; } | stat_route0 REJECT { this_srt->dest = RTD_UNREACHABLE; } |