Revision 4116db18 proto/static/config.Y

View differences:

proto/static/config.Y
18 18
CF_DECLS
19 19

  
20 20
CF_KEYWORDS(STATIC, ROUTE, VIA, DROP, REJECT, PROHIBIT, PREFERENCE, CHECK, LINK)
21
CF_KEYWORDS(MULTIPATH, WEIGHT)
21
CF_KEYWORDS(MULTIPATH, WEIGHT, RECURSIVE, IGP, TABLE)
22 22

  
23 23

  
24 24
CF_GRAMMAR
......
35 35
   static_proto_start proto_name '{'
36 36
 | static_proto proto_item ';'
37 37
 | static_proto CHECK LINK bool ';' { STATIC_CFG->check_link = $4; }
38
 | static_proto IGP TABLE rtable ';' { STATIC_CFG->igp_table = $4; }
38 39
 | static_proto stat_route ';'
39 40
 ;
40 41

  
......
79 80
 | stat_route0 MULTIPATH stat_multipath {
80 81
      this_srt->dest = RTD_MULTIPATH;
81 82
   }
83
 | stat_route0 RECURSIVE ipa {
84
      this_srt->dest = RTDX_RECURSIVE;
85
      this_srt->via = $3;
86
   }
82 87
 | stat_route0 DROP { this_srt->dest = RTD_BLACKHOLE; }
83 88
 | stat_route0 REJECT { this_srt->dest = RTD_UNREACHABLE; }
84 89
 | stat_route0 PROHIBIT { this_srt->dest = RTD_PROHIBIT; }

Also available in: Unified diff