mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-03-22 06:17:04 +00:00
Nest: Update default preference based on Cisco values
This commit is contained in:
parent
668be0ffb3
commit
bf58ebc0bb
@ -483,7 +483,7 @@ channel_config_new(const struct channel_class *cc, const char *name, uint net_ty
|
|||||||
|
|
||||||
cf->net_type = net_type;
|
cf->net_type = net_type;
|
||||||
cf->ra_mode = RA_OPTIMAL;
|
cf->ra_mode = RA_OPTIMAL;
|
||||||
cf->preference = 250 - proto->protocol->preference;
|
cf->preference = proto->protocol->preference;
|
||||||
|
|
||||||
add_tail(&proto->channels, &cf->n);
|
add_tail(&proto->channels, &cf->n);
|
||||||
|
|
||||||
|
11
nest/route.h
11
nest/route.h
@ -666,15 +666,14 @@ extern struct protocol *attr_class_to_protocol[EAP_MAX];
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Default protocol preferences
|
* Default protocol preferences
|
||||||
* (effective values are 250-X of these)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define DEF_PREF_DIRECT 240 /* Directly connected */
|
#define DEF_PREF_DIRECT 0 /* Directly connected */
|
||||||
#define DEF_PREF_STATIC 200 /* Static route */
|
#define DEF_PREF_STATIC 1 /* Static route */
|
||||||
#define DEF_PREF_OSPF 150 /* OSPF intra-area, inter-area and type 1 external routes */
|
#define DEF_PREF_OSPF 110 /* OSPF intra-area, inter-area and type 1 external routes */
|
||||||
#define DEF_PREF_BABEL 130 /* Babel */
|
#define DEF_PREF_BABEL 115 /* Babel */
|
||||||
#define DEF_PREF_RIP 120 /* RIP */
|
#define DEF_PREF_RIP 120 /* RIP */
|
||||||
#define DEF_PREF_BGP 100 /* BGP */
|
#define DEF_PREF_BGP 200 /* BGP */
|
||||||
#define DEF_PREF_RPKI 100 /* RPKI */
|
#define DEF_PREF_RPKI 100 /* RPKI */
|
||||||
#define DEF_PREF_INHERITED 10 /* Routes inherited from other routing daemons */
|
#define DEF_PREF_INHERITED 10 /* Routes inherited from other routing daemons */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user