]> git.ipfire.org Git - thirdparty/bird.git/blobdiff - proto/bgp/bgp.c
BGP: Add option to enforce first AS in AS_PATH
[thirdparty/bird.git] / proto / bgp / bgp.c
index 053016dd2a73683abac65ad32d30a488983dea0b..2a64958a004a92a094c5ed8499fc1a2ab1c3bf1a 100644 (file)
@@ -1936,6 +1936,9 @@ bgp_postconfig(struct proto_config *CF)
   if (!cf->gr_mode && cf->llgr_mode)
     cf_error("Long-lived graceful restart requires basic graceful restart");
 
+  if (internal && cf->enforce_first_as)
+    cf_error("Enforce first AS check is requires EBGP sessions");
+
 
   struct bgp_channel_config *cc;
   WALK_LIST(cc, CF->channels)