[prev in list] [next in list] [prev in thread] [next in thread]
List: bird-users
Subject: Re: Infer BGP 'source address' value dynamically
From: Eric Cables <ecables () gmail ! com>
Date: 2014-07-09 16:12:52
Message-ID: CAB287vUTMVL-8xKzH_NNUSOf2RW9bS1-VX=jB8PfCohiUGkWqQ () mail ! gmail ! com
[Download RAW message or body]
Freddy,
That's exactly what I've done, but I was hoping this kind of configuration
data could just be defined as a local variable. Perhaps I could define a
variable that called a local script, which scraped ifconfig for the data
I'm looking for? I haven't done this before, but expect BIRD is capable of
such a construct.
Has anyone done anything like the above (call a local shell script to
populate a variable), or have an example of doing something similar?
-- Eric Cables
On Wed, Jul 9, 2014 at 5:29 AM, Frederik Kriewitz <frederik@kriewitz.eu>
wrote:
> > On Tue, Jun 10, 2014 at 1:44 PM, Eric Cables <ecables@gmail.com> wrote:
> >> Any thoughts? The goal is to make this configuration as dynamic as
> >> possible, so that it can be deployed to a number of systems without
> manual
> >> changes on each.
>
> You might want to split your config in multiple files (e.g. a common
> one and a router specific one) and include them.
> E.g. each of our bird config files contains a line like this:
> include "/etc/bird/bird.conf.local";
> In that file we specify the router id and a couple of variables used
> in otherwise common configurations.
>
> Best Regards,
> Freddy
>
[Attachment #3 (text/html)]
<div dir="ltr">Freddy,<div><br></div><div>That's exactly what I've done, but \
I was hoping this kind of configuration data could just be defined as a local \
variable. Perhaps I could define a variable that called a local script, which scraped \
ifconfig for the data I'm looking for? I haven't done this before, but expect \
BIRD is capable of such a construct.</div>
<div><br></div><div>Has anyone done anything like the above (call a local shell \
script to populate a variable), or have an example of doing something \
similar?</div></div><div class="gmail_extra"><br \
clear="all"><div><br>
-- Eric Cables</div>
<br><br><div class="gmail_quote">On Wed, Jul 9, 2014 at 5:29 AM, Frederik Kriewitz \
<span dir="ltr"><<a href="mailto:frederik@kriewitz.eu" \
target="_blank">frederik@kriewitz.eu</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">
<div class="">> On Tue, Jun 10, 2014 at 1:44 PM, Eric Cables <<a \
href="mailto:ecables@gmail.com">ecables@gmail.com</a>> wrote:<br> </div><div \
class="">>> Any thoughts? The goal is to make this configuration as dynamic \
as<br> >> possible, so that it can be deployed to a number of systems without \
manual<br> >> changes on each.<br>
<br>
</div>You might want to split your config in multiple files (e.g. a common<br>
one and a router specific one) and include them.<br>
E.g. each of our bird config files contains a line like this:<br>
include "/etc/bird/bird.conf.local";<br>
In that file we specify the router id and a couple of variables used<br>
in otherwise common configurations.<br>
<br>
Best Regards,<br>
Freddy<br>
</blockquote></div><br></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic