Error after I add RTS_OSPF_EXT in filter
I change filter from filter import_exclude_default { if ( source != RTS_BGP && net != 0.0.0.0/0 ) then { print "net accepted:", net; ospf_metric1 = 60; accept; } reject; } to filter import_exclude_default { if ( source = RTS_OSPF_INT && net != 0.0.0.0/0 ) then { print "net accepted:", net; ospf_metric1 = 60; accept; } reject; } after 'configure soft' I see error bird> configure soft Reading configuration from /etc/bird.conf /etc/bird.conf, line 167: RTS_OSPF_INT: variable expected. bird>
On Wed, Jul 14, 2010 at 04:41:12PM +0400, ????????? ?????? wrote:
filter import_exclude_default { if ( source = RTS_OSPF_INT && net != 0.0.0.0/0 ) then {
...
what protocol has told me about this route. Possible values: RTS_DUMMY, RTS_STATIC, RTS_INHERIT, RTS_DEVICE, RTS_STATIC_DEVICE, RTS_REDIRECT, RTS_RIP, RTS_OSPF, RTS_OSPF_IA, RTS_OSPF_EXT, RTS_BGP, RTS_PIPE.
Why I receive error?
Because the values are RTS_OSPF, RTS_OSPF_IA and RTS_OSPF_EXT, not RTS_OSPF_INT. RTS_OSPF is for plain, intra-area OSPF routes. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
Ok. I have changed filter. Now he is if ( source = RTS_OSPF_EXT && net != 0.0.0.0/0 ) bird> configure soft Reading configuration from /etc/bird.conf /etc/bird.conf, line 167: RTS_OSPF_EXT: variable expected. bird> bird> Error again. I have checked all from possible values: RTS_DUMMY, RTS_STATIC, RTS_INHERIT, RTS_DEVICE, RTS_STATIC_DEVICE, RTS_REDIRECT, RTS_RIP, RTS_OSPF, RTS_OSPF_IA, RTS_OSPF_EXT, RTS_BGP, RTS_PIPE. Only RTS_OSPF_EXT don't work. PS RTS_OSPF_INT - It is my carelessness Vladislav Grishin -----Original Message----- From: owner-bird-users@atrey.karlin.mff.cuni.cz [mailto:owner-bird-users@atrey.karlin.mff.cuni.cz] On Behalf Of Ondrej Zajicek Sent: Wednesday, July 14, 2010 5:27 PM To: ????????? ?????? Cc: bird-users@trubka.network.cz Subject: Re: Error after I add RTS_OSPF_EXT in filter On Wed, Jul 14, 2010 at 04:41:12PM +0400, ????????? ?????? wrote:
filter import_exclude_default { if ( source = RTS_OSPF_INT && net != 0.0.0.0/0 ) then {
...
what protocol has told me about this route. Possible values: RTS_DUMMY, RTS_STATIC, RTS_INHERIT, RTS_DEVICE, RTS_STATIC_DEVICE, RTS_REDIRECT, RTS_RIP, RTS_OSPF, RTS_OSPF_IA, RTS_OSPF_EXT, RTS_BGP, RTS_PIPE.
Why I receive error?
Because the values are RTS_OSPF, RTS_OSPF_IA and RTS_OSPF_EXT, not RTS_OSPF_INT. RTS_OSPF is for plain, intra-area OSPF routes. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
On Wed, Jul 14, 2010 at 05:39:12PM +0400, ????????? ?????? wrote:
Ok.
I have changed filter. Now he is
if ( source = RTS_OSPF_EXT && net != 0.0.0.0/0 )
bird> configure soft Reading configuration from /etc/bird.conf /etc/bird.conf, line 167: RTS_OSPF_EXT: variable expected.
I have checked all from possible values: RTS_DUMMY, RTS_STATIC, RTS_INHERIT, RTS_DEVICE, RTS_STATIC_DEVICE, RTS_REDIRECT, RTS_RIP, RTS_OSPF, RTS_OSPF_IA, RTS_OSPF_EXT, RTS_BGP, RTS_PIPE.
Only RTS_OSPF_EXT don't work.
Sorry, this is a (just discovered) bug in the documentation. Proper values are RTS_OSPF_EXT1 and RTS_OSPF_EXT2 (for external OSPF routes with type 1 metric and with type 2 metric). -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (2)
-
Ondrej Zajicek -
Владислав Гришин