Revision 3b3b0910 proto/babel/config.Y

View differences:

proto/babel/config.Y
2 2
 *	BIRD -- Babel Configuration
3 3
 *
4 4
 *	Copyright (c) 2015-2016 Toke Hoiland-Jorgensen
5
 * 	(c) 2016--2017 Ondrej Zajicek <santiago@crfreenet.org>
6
 *	(c) 2016--2017 CZ.NIC z.s.p.o.
5 7
 *
6 8
 *	Can be freely distributed and used under the terms of the GNU GPL.
7 9
 */
......
32 34
{
33 35
  this_proto = proto_config_new(&proto_babel, $1);
34 36
  init_list(&BABEL_CFG->iface_list);
37
  BABEL_CFG->hold_time = 1 S_;
35 38
};
36 39

  
37 40
babel_proto_item:
......
84 87
  if (!BABEL_IFACE->update_interval)
85 88
    BABEL_IFACE->update_interval = MIN_(BABEL_IFACE->hello_interval*BABEL_UPDATE_INTERVAL_FACTOR, BABEL_MAX_INTERVAL);
86 89
  BABEL_IFACE->ihu_interval = MIN_(BABEL_IFACE->hello_interval*BABEL_IHU_INTERVAL_FACTOR, BABEL_MAX_INTERVAL);
90

  
91
  BABEL_CFG->hold_time = MAX_(BABEL_CFG->hold_time, BABEL_IFACE->update_interval*BABEL_HOLD_TIME_FACTOR);
87 92
};
88 93

  
89 94

  
......
131 136
CF_CLI(SHOW BABEL ENTRIES, optsym opttext, [<name>], [[Show information about Babel prefix entries]])
132 137
{ babel_show_entries(proto_get_named($4, &proto_babel)); };
133 138

  
139
CF_CLI(SHOW BABEL ROUTES, optsym opttext, [<name>], [[Show information about Babel route entries]])
140
{ babel_show_routes(proto_get_named($4, &proto_babel)); };
141

  
134 142
CF_CODE
135 143

  
136 144
CF_END

Also available in: Unified diff