config.Y grammar for a new protocol
Ondrej Zajicek
santiago at crfreenet.org
Fri May 21 15:35:28 CEST 2021
On Fri, May 21, 2021 at 04:57:07AM +0000, Vinod Padmanabhan wrote:
> Hi,
>
> I would like to know how to add a config.Y file for any new protocol in Bird2.0. For example, if my config file looks like:
>
> ipv4 table xyz;
>
> protocol new {
> ipv4 {
> table xyz;
> import all;
> export where source = RTS_BGP;
> };
> }
> How will the corresponding grammar look like?
Hi
Just check some simple protocol like perf (proto/perf/config.Y).
Most of the 'ipv4 { ... }' grammar is hidden in proto_channel.
--
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."
More information about the Bird-users
mailing list