From 9e44ace3928a19560058dc713fcbff3a8bad3b3c Mon Sep 17 00:00:00 2001 From: Trisha Biswas Date: Fri, 14 Apr 2023 04:28:37 +0200 Subject: BGP: Add 'allow bgp_med' option for EBGP sessions This option allows to treat bgp_med as regular transitive attribute on EBGP sessions (without hacks in filters). Minor changes from committer. --- proto/bgp/config.Y | 1 + 1 file changed, 1 insertion(+) (limited to 'proto/bgp/config.Y') diff --git a/proto/bgp/config.Y b/proto/bgp/config.Y index a2dfa747..013d14af 100644 --- a/proto/bgp/config.Y +++ b/proto/bgp/config.Y @@ -199,6 +199,7 @@ bgp_proto: | bgp_proto ALLOW LOCAL AS ';' { BGP_CFG->allow_local_as = -1; } | bgp_proto ALLOW LOCAL AS expr ';' { BGP_CFG->allow_local_as = $5; } | bgp_proto ALLOW BGP_LOCAL_PREF bool ';' { BGP_CFG->allow_local_pref = $4; } + | bgp_proto ALLOW BGP_MED bool ';' { BGP_CFG->allow_med = $4; } | bgp_proto ALLOW AS SETS bool ';' { BGP_CFG->allow_as_sets = $5; } | bgp_proto GRACEFUL RESTART bool ';' { BGP_CFG->gr_mode = $4; } | bgp_proto GRACEFUL RESTART AWARE ';' { BGP_CFG->gr_mode = BGP_GR_AWARE; } -- cgit v1.2.3