mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 04:47:05 +00:00
BGP: enable deterministic-med by default
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-8006
This commit is contained in:
parent
c4a24efd88
commit
1475ac872b
@ -1637,8 +1637,12 @@ DEFUN (bgp_deterministic_med,
|
|||||||
struct bgp *bgp;
|
struct bgp *bgp;
|
||||||
|
|
||||||
bgp = vty->index;
|
bgp = vty->index;
|
||||||
bgp_flag_set (bgp, BGP_FLAG_DETERMINISTIC_MED);
|
|
||||||
bgp_recalculate_all_bestpaths (bgp);
|
if (!bgp_flag_check(bgp, BGP_FLAG_DETERMINISTIC_MED))
|
||||||
|
{
|
||||||
|
bgp_flag_set (bgp, BGP_FLAG_DETERMINISTIC_MED);
|
||||||
|
bgp_recalculate_all_bestpaths (bgp);
|
||||||
|
}
|
||||||
|
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
@ -1653,8 +1657,12 @@ DEFUN (no_bgp_deterministic_med,
|
|||||||
struct bgp *bgp;
|
struct bgp *bgp;
|
||||||
|
|
||||||
bgp = vty->index;
|
bgp = vty->index;
|
||||||
bgp_flag_unset (bgp, BGP_FLAG_DETERMINISTIC_MED);
|
|
||||||
bgp_recalculate_all_bestpaths (bgp);
|
if (bgp_flag_check(bgp, BGP_FLAG_DETERMINISTIC_MED))
|
||||||
|
{
|
||||||
|
bgp_flag_unset (bgp, BGP_FLAG_DETERMINISTIC_MED);
|
||||||
|
bgp_recalculate_all_bestpaths (bgp);
|
||||||
|
}
|
||||||
|
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -2816,6 +2816,7 @@ bgp_create (as_t *as, const char *name)
|
|||||||
bgp_flag_set (bgp, BGP_FLAG_IMPORT_CHECK);
|
bgp_flag_set (bgp, BGP_FLAG_IMPORT_CHECK);
|
||||||
bgp_flag_set (bgp, BGP_FLAG_SHOW_HOSTNAME);
|
bgp_flag_set (bgp, BGP_FLAG_SHOW_HOSTNAME);
|
||||||
bgp_flag_set (bgp, BGP_FLAG_LOG_NEIGHBOR_CHANGES);
|
bgp_flag_set (bgp, BGP_FLAG_LOG_NEIGHBOR_CHANGES);
|
||||||
|
bgp_flag_set (bgp, BGP_FLAG_DETERMINISTIC_MED);
|
||||||
|
|
||||||
bgp->as = *as;
|
bgp->as = *as;
|
||||||
|
|
||||||
@ -6931,8 +6932,8 @@ bgp_config_write (struct vty *vty)
|
|||||||
vty_out (vty, " bgp enforce-first-as%s", VTY_NEWLINE);
|
vty_out (vty, " bgp enforce-first-as%s", VTY_NEWLINE);
|
||||||
|
|
||||||
/* BGP deterministic-med. */
|
/* BGP deterministic-med. */
|
||||||
if (bgp_flag_check (bgp, BGP_FLAG_DETERMINISTIC_MED))
|
if (!bgp_flag_check (bgp, BGP_FLAG_DETERMINISTIC_MED))
|
||||||
vty_out (vty, " bgp deterministic-med%s", VTY_NEWLINE);
|
vty_out (vty, " no bgp deterministic-med%s", VTY_NEWLINE);
|
||||||
|
|
||||||
/* BGP update-delay. */
|
/* BGP update-delay. */
|
||||||
bgp_config_write_update_delay (vty, bgp);
|
bgp_config_write_update_delay (vty, bgp);
|
||||||
|
Loading…
Reference in New Issue
Block a user