mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	BGP: Link check just for single-hop
This commit is contained in:
		@@ -1621,6 +1621,10 @@ bgp_postconfig(struct proto_config *CF)
 | 
				
			|||||||
  if (cf->multihop < 0)
 | 
					  if (cf->multihop < 0)
 | 
				
			||||||
    cf->multihop = internal ? 64 : 0;
 | 
					    cf->multihop = internal ? 64 : 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  /* Link check for single-hop BGP by default */
 | 
				
			||||||
 | 
					  if (cf->check_link < 0)
 | 
				
			||||||
 | 
					    cf->check_link = !cf->multihop;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!cf->local_as)
 | 
					  if (!cf->local_as)
 | 
				
			||||||
    cf_error("Local AS number must be set");
 | 
					    cf_error("Local AS number must be set");
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -58,7 +58,7 @@ bgp_proto_start: proto_start BGP {
 | 
				
			|||||||
     BGP_CFG->gr_mode = BGP_GR_AWARE;
 | 
					     BGP_CFG->gr_mode = BGP_GR_AWARE;
 | 
				
			||||||
     BGP_CFG->gr_time = 120;
 | 
					     BGP_CFG->gr_time = 120;
 | 
				
			||||||
     BGP_CFG->setkey = 1;
 | 
					     BGP_CFG->setkey = 1;
 | 
				
			||||||
     BGP_CFG->check_link = 1;
 | 
					     BGP_CFG->check_link = -1;
 | 
				
			||||||
   }
 | 
					   }
 | 
				
			||||||
 ;
 | 
					 ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user