[PATCH 3/3] Align preference syntax for static routes and filters.

Kenth Eriksson kenth.eriksson at infinera.com
Thu May 2 11:29:05 CEST 2019


Setting preference value for filters and static routes is done using the
following syntax: preference = value.

Signed-off-by: Kenth Eriksson <kenth.eriksson at infinera.com>
---
 proto/static/config.Y | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/proto/static/config.Y b/proto/static/config.Y
index 32eba0fe..0526a8cd 100644
--- a/proto/static/config.Y
+++ b/proto/static/config.Y
@@ -135,8 +135,8 @@ stat_route:
 
 stat_route_item:
    cmd { *this_srt_last_cmd = $1; this_srt_last_cmd = &($1->next); }
- | PREFERENCE expr ';' { this_srt->preference = $2; check_u16($2); }
- | DISTANCE expr ';' { this_srt->preference = $2; check_u16($2); }
+ | PREFERENCE '=' expr ';' { this_srt->preference = $3; check_u16($3); }
+ | DISTANCE '=' expr ';' { this_srt->preference = $3; check_u16($3); }
  ;
 
 stat_route_opts:
-- 
2.21.0



More information about the Bird-users mailing list