summaryrefslogtreecommitdiff
path: root/proto/bgp/config.Y
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2021-01-06 14:44:23 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2021-01-06 14:44:23 +0100
commit4155104c90bc2f3fb680e8041e079ceb3d80a3b1 (patch)
treecc5d40022f46da2baf98b2cff9105889c10c818b /proto/bgp/config.Y
parent21f9acd2a01306af01f19914105985a8a0f9bcba (diff)
BGP: Deprecate 'missing lladdr' option
The option is not implemented since transition to 2.0 and no plan to add it. Also remove some deprecated RTS_* valus from documentation. Thanks to Sébastien Parisot for notification.
Diffstat (limited to 'proto/bgp/config.Y')
-rw-r--r--proto/bgp/config.Y6
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/bgp/config.Y b/proto/bgp/config.Y
index cc83bfc7..18c3560d 100644
--- a/proto/bgp/config.Y
+++ b/proto/bgp/config.Y
@@ -241,15 +241,15 @@ bgp_nh:
| IBGP { $$ = NH_IBGP; }
| EBGP { $$ = NH_EBGP; }
+bgp_lladdr: SELF | DROP | IGNORE;
+
bgp_channel_item:
channel_item
| NEXT HOP ADDRESS ipa { BGP_CC->next_hop_addr = $4; }
| NEXT HOP SELF bgp_nh { BGP_CC->next_hop_self = $4; }
| NEXT HOP KEEP bgp_nh { BGP_CC->next_hop_keep = $4; }
| MANDATORY bool { BGP_CC->mandatory = $2; }
- | MISSING LLADDR SELF { BGP_CC->missing_lladdr = MLL_SELF; }
- | MISSING LLADDR DROP { BGP_CC->missing_lladdr = MLL_DROP; }
- | MISSING LLADDR IGNORE { BGP_CC->missing_lladdr = MLL_IGNORE; }
+ | MISSING LLADDR bgp_lladdr { log(L_WARN "%s.%s: Missing lladdr option is deprecated and ignored, remove it", this_proto->name, this_channel->name); }
| GATEWAY DIRECT { BGP_CC->gw_mode = GW_DIRECT; }
| GATEWAY RECURSIVE { BGP_CC->gw_mode = GW_RECURSIVE; }
| SECONDARY bool { BGP_CC->secondary = $2; }