Hi,

GoBGP doesn’t have built-in template feature.
However, since GoBGP uses standard format (toml, yaml, json) for its 
configuration file,
I’d recommend to generate a configuration file using any programming languages 
you like.

Thanks,
Wataru

> On Feb 10, 2017, at 7:02 PM, Stefan Plug <s...@ecix.net> wrote:
> 
> Hi guys,
> 
> I'm new to the GoBGP scene so please excuse the following noob question, but 
> I can't seem to find anything for it
> Is there any way to define variables in the config?
> 
> For example in BIRD I would do:
> 
> define RSasn = 1234;
> 
> protocol bgp '123' {
> ...
>    local as RSasn;
> ...
> }
> protocol bgp '567' {
> ...
>    local as RSasn;
> ...
> }
> 
> In GoBGP I would expect something like this to work, but it doesn't:
> 
> [template]
> RSasn = 9032
> 
> [global.config]
>    as = RSasn
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> gobgp-devel mailing list
> gobgp-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gobgp-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
gobgp-devel mailing list
gobgp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gobgp-devel

Reply via email to