Multiple parameters in function

Ondrej Zajicek santiago at crfreenet.org
Mon Dec 12 14:08:50 CET 2011


On Mon, Dec 12, 2011 at 09:29:41PM +0900, Eiichiro Watanabe wrote:
> Hello,
> 
> I'm trying to configure the below using examples from bird wiki.
> (https://git.nic.cz/redmine/projects/bird/wiki/BGP_filtering)
> 
> But it fails when type "configure" on birdc with a following message.
> "bird: /etc/bird.conf, line 16: syntax error"
> 
> It works when I define one parameter in function.
> 
> Are multiple parameters in function supported on 1.3.4?
> Or please correct me if I make any mistakes.

BIRD is OK, the wiki example is buggy - function arguments in BIRD are
separated by semicolon, not by comma. So it should be:

function rt_import(int peer_as; int set peer_asns; prefix set peer_net)
{
  ...
}

-- 
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: santiago at 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."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20111212/7bb18d0c/attachment-0001.asc>


More information about the Bird-users mailing list