config.Y grammar for a new protocol
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? Thanks, Vinod
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@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 -
Vinod Padmanabhan