conf ch -> kill bird
Mikhail Mayorov
mm at tagan.ru
Fri Oct 20 16:30:58 CEST 2017
bird ~ # birdc
BIRD 1.6.3 ready.
bird> configure check
Reading configuration from /usr/local/etc/bird/bird.conf
Configuration OK
bird> configure
Connection closed by server
Can't catch an error in a configuration file. In testing, everything OK.
But when you apply all the bad and the bird just falls. In log file I got:
Oct 20 17:10:42 bird bird[19609]: Reconfiguring
Oct 20 17:10:42 bird bird[19609]: Unknown instruction 8574 in same (~)
After start I got:
Oct 20 17:10:44 bird bird[19675]: Graceful restart started
Oct 20 17:10:44 bird bird[19675]: Started
Oct 20 17:10:44 bird bird[19675]: filters, line 11: ~ applied on unknown
type pair
Oct 20 17:10:44 bird bird[19675]: filters, line 11: ~ applied on unknown
type pair
Oct 20 17:10:44 bird bird[19675]: filters, line 11: ~ applied on unknown
type pair
Oct 20 17:10:44 bird bird[19675]: filters, line 11: ~ applied on unknown
type pair
Oct 20 17:10:44 bird bird[19675]: filters, line 11: ~ applied on unknown
type pair
Oct 20 17:10:44 bird bird[19675]: ...
Oct 20 17:10:56 bird bird[19675]: I/O loop cycle took 11494 ms for 13
events
Oct 20 17:10:56 bird bird[19675]: Kernel dropped some netlink messages,
will resync on next scan.
Oct 20 17:10:56 bird bird[19675]: papa_ipv4: Received: Cease
Oct 20 17:10:56 bird bird[19675]: Kernel dropped some netlink messages,
will resync on next scan.
Oct 20 17:10:56 bird bird[19675]: blockhole_rfc7999_ipv4_bgpin: set
RTD_BLACKHOLE for 194.85.16.6/32 from 193.232.140.100
Oct 20 17:10:58 bird bird[19675]: filters, line 11: ~ applied on unknown
type pair
Oct 20 17:10:58 bird bird[19675]: filters, line 11: ~ applied on unknown
type pair
Oct 20 17:10:58 bird bird[19675]: filters, line 11: ~ applied on unknown
type pair
Oct 20 17:10:58 bird bird[19675]: filters, line 11: ~ applied on unknown
type pair
Oct 20 17:10:58 bird bird[19675]: filters, line 11: ~ applied on unknown
type pair
Oct 20 17:10:59 bird bird[19675]: ...
Oct 20 17:10:59 bird bird[19675]: Kernel dropped some netlink messages,
will resync on next scan.
I suspect that the error in the file bird-all.functions function tier1.
My configuration:
BIRD.rndbird bird # cat bird.conf
include "bird-all.conf";
include "bird-ipv4.functions";
include "bird-roa4.conf";
[skip]
BIRD.rndbird bird # cat bird-all.functions
function clear_my_comm()
pair set my_comm;
{
my_comm = [ (49037, *) ];
bgp_community = delete( bgp_community, my_comm );
}
function tier1(bgppath cp)
{
if cp ~ [= * 1 * =] then return true; # Level 3 Communications
if cp ~ [= * 209 * =] then return true; # CenturyLink
if cp ~ [= * 286 * =] then return true; # KPN International
if cp ~ [= * 701 * =] then return true; # Verizon Enterprise
Solutions
if cp ~ [= * 702 * =] then return true; # Verizon Enterprise
Solutions
if cp ~ [= * 703 * =] then return true; # Verizon Enterprise
Solutions
if cp ~ [= * 1239 * =] then return true; # Sprint
if cp ~ [= * 1299 * =] then return true; # Telia Carrier
if cp ~ [= * 2828 * =] then return true; # Verizon Enterprise
Solutions
if cp ~ [= * 2914 * =] then return true; # NTT Communications
if cp ~ [= * 3257 * =] then return true; # Global Telecom &
Technology (GTT)
if cp ~ [= * 3320 * =] then return true; # Deutsche Telekom AG
(ICSS)
if cp ~ [= * 3356 * =] then return true; # Level 3 Communications
if cp ~ [= * 3549 * =] then return true; # Level 3 Communications
if cp ~ [= * 3561 * =] then return true; # CenturyLink
if cp ~ [= * 4436 * =] then return true; # Global Telecom &
Technology (GTT)
if cp ~ [= * 5511 * =] then return true; # Orange
if cp ~ [= * 6453 * =] then return true; # Tata Communications
(INDIA)
if cp ~ [= * 6461 * =] then return true; # Zayo Group
if cp ~ [= * 6762 * =] then return true; # Telecom Italia
Sparkle (Seabone)
if cp ~ [= * 6830 * =] then return true; # Liberty Global
if cp ~ [= * 7018 * =] then return true; # AT&T
if cp ~ [= * 12956 * =] then return true; # Telefonica Global
Solutions
return false;
}
function aggroute()
{
if tier1(bgp_path) then return true;
return false;
}
--
Regards,
Mikhail V. Majorov
Megalink Company, Director of engineering
318, Chehova street, Taganrog, Russia, 347932
tel work: +7 8634 431431 (ext 101)
tel mobile: +7 918 5565520
sip: 000101 at tagan.ru
www.tagan.ru
More information about the Bird-users
mailing list