Revision 6cf72d7a proto/bgp/config.Y

View differences:

proto/bgp/config.Y
38 38
     BGP_CFG->remote_port = BGP_PORT;
39 39
     BGP_CFG->multihop = -1;	/* undefined */
40 40
     BGP_CFG->hold_time = 240;
41
     BGP_CFG->connect_retry_time = 120;
42 41
     BGP_CFG->initial_hold_time = 240;
43 42
     BGP_CFG->compare_path_lengths = 1;
44 43
     BGP_CFG->igp_metric = 1;
45
     BGP_CFG->start_delay_time = 5;
44
     BGP_CFG->connect_delay_time = 5;
45
     BGP_CFG->connect_retry_time = 120;
46 46
     BGP_CFG->error_amnesia_time = 300;
47 47
     BGP_CFG->error_delay_time_min = 60;
48 48
     BGP_CFG->error_delay_time_max = 300;
......
81 81
 | bgp_proto RS CLIENT ';' { BGP_CFG->rs_client = 1; }
82 82
 | bgp_proto HOLD TIME expr ';' { BGP_CFG->hold_time = $4; }
83 83
 | bgp_proto STARTUP HOLD TIME expr ';' { BGP_CFG->initial_hold_time = $5; }
84
 | bgp_proto CONNECT RETRY TIME expr ';' { BGP_CFG->connect_retry_time = $5; }
85
 | bgp_proto KEEPALIVE TIME expr ';' { BGP_CFG->keepalive_time = $4; }
86 84
 | bgp_proto DIRECT ';' { BGP_CFG->multihop = 0; }
87 85
 | bgp_proto MULTIHOP ';' { BGP_CFG->multihop = 64; }
88 86
 | bgp_proto MULTIHOP expr ';' { BGP_CFG->multihop = $3; if (($3<1) || ($3>255)) cf_error("Multihop must be in range 1-255"); }
......
101 99
 | bgp_proto DEFAULT BGP_MED expr ';' { BGP_CFG->default_med = $4; }
102 100
 | bgp_proto DEFAULT BGP_LOCAL_PREF expr ';' { BGP_CFG->default_local_pref = $4; }
103 101
 | bgp_proto SOURCE ADDRESS ipa ';' { BGP_CFG->source_addr = $4; }
104
 | bgp_proto START DELAY TIME expr ';' { BGP_CFG->start_delay_time = $5; }
102
 | bgp_proto START DELAY TIME expr ';' { BGP_CFG->connect_delay_time = $5; log(L_WARN "%s: Start delay time option is deprecated, use connect delay time", this_proto->name); }
103
 | bgp_proto CONNECT DELAY TIME expr ';' { BGP_CFG->connect_delay_time = $5; }
104
 | bgp_proto CONNECT RETRY TIME expr ';' { BGP_CFG->connect_retry_time = $5; }
105
 | bgp_proto KEEPALIVE TIME expr ';' { BGP_CFG->keepalive_time = $4; }
105 106
 | bgp_proto ERROR FORGET TIME expr ';' { BGP_CFG->error_amnesia_time = $5; }
106 107
 | bgp_proto ERROR WAIT TIME expr ',' expr ';' { BGP_CFG->error_delay_time_min = $5; BGP_CFG->error_delay_time_max = $7; }
107 108
 | bgp_proto DISABLE AFTER ERROR bool ';' { BGP_CFG->disable_after_error = $5; }
......
114 115
     this_proto->in_limit = cfg_allocz(sizeof(struct proto_limit));
115 116
     this_proto->in_limit->limit = $4;
116 117
     this_proto->in_limit->action = PLA_RESTART;
118
     log(L_WARN "%s: Route limit option is deprecated, use import limit", this_proto->name);
117 119
   }
118 120
 | bgp_proto PASSIVE bool ';' { BGP_CFG->passive = $3; }
119 121
 | bgp_proto INTERPRET COMMUNITIES bool ';' { BGP_CFG->interpret_communities = $4; }

Also available in: Unified diff