Bird Installation Guide

2017-12-13 Thread Pardeep Sharma
Hi Bird Experts,

Help will be appreciated!!

I have below some queries for BIRD.

1. I am running BIRD in Ubuntu 16.04 first time, So can you please guide me
its installation process. If is there any link/document, please share with
me.

2. Which base operating system is better for BIRD - Linux or Ubuntu?
Actually we have to guide customer over it.

3. If you have any idea how to link IXP manager with BIRD, please share
with that also.

Thanks a lot

-- 
Thanks & Regards
Pardeep


Re: BIRD 2.0.0: RFC8097 extended communities and rpki-light

2017-12-13 Thread Pier Carlo Chiodi
On Wed, Dec 13, 2017 at 04:03:53PM +0100, Ondrej Zajicek wrote:
> Hi
> 
> Here is a patch that should fix it.

I confirm it's working as in 1.6.3 now.

Is there already a scheduled release date for the fixed version?

Thanks,

-- 
Pier Carlo Chiodi
https://pierky.com


Re: birdc 2.0.0 crashes

2017-12-13 Thread Ondrej Zajicek
On Tue, Dec 12, 2017 at 04:52:42PM +0100, Clemens Schrimpe wrote:
> > Note that .birdc_history is created during exit from birdc, not during
> > start of birdc. Do you get .birdc_history if you use new birdc, do some
> > commands and exit from it without crashing it?
> 
> Yes, works fine. And it also appears to be read when I restart birdc, because 
> now I can crash it with ^P or ↑ without having typed a command before.
> (strace confirmed: .birdc_history is read successfully)

You can try attached patch (disables reading of history).

You can also try to build BIRD 1.6.3 in the same way like 2.0.0 and see
if it by chance does not express the same problem.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santi...@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."
diff --git a/client/birdc.c b/client/birdc.c
index f1aea2fe..a682c9fe 100644
--- a/client/birdc.c
+++ b/client/birdc.c
@@ -157,8 +157,8 @@ history_init(void)
 void
 input_init(void)
 {
-  if (interactive)
-history_init();
+//  if (interactive)
+//history_init();
   rl_readline_name = "birdc";
   rl_add_defun("bird-complete", input_complete, '\t');
   rl_add_defun("bird-help", input_help, '?');
@@ -236,7 +236,7 @@ cleanup(void)
 return;
 
   input_hide();
-  if (interactive)
-write_history(history_file);
+//  if (interactive)
+//write_history(history_file);
   rl_callback_handler_remove();
 }


Re: BIRD 2.0.0: RFC8097 extended communities and rpki-light

2017-12-13 Thread Ondrej Zajicek
On Tue, Dec 12, 2017 at 06:47:44PM +0100, Pier Carlo Chiodi wrote:
> Hello,
> 
> while I was running some tests on BIRD 2.0.0 I've noticed that the
> handling of RFC8097 extended communities is different from 1.6.3.
> 
> - when 1.6.3 is used on the route server, BIRD treats the community
>   strictly according to RFC4360:
> 
>If a route has a non-transitivity extended community, then before
>advertising the route across the Autonomous System boundary the
>community SHOULD be removed from the route.
> 
> - when 2.0.0 is used, the community is treated accordingly to
>   draft-ietf-sidrops-route-server-rpki-light-02 and is propagated to the
>   client.

Hi

Here is a patch that should fix it.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santi...@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."
commit d807ea087f8d60e25eaef8c10168a40ca6545c57
Author: Ondrej Zajicek (work) 
Date:   Wed Dec 13 15:57:44 2017 +0100

BGP: Fix non-transitive ext communities

diff --git a/nest/a-set.c b/nest/a-set.c
index a2fb6953..048e522d 100644
--- a/nest/a-set.c
+++ b/nest/a-set.c
@@ -536,6 +536,13 @@ ec_set_sort(struct linpool *pool, struct adata *src)
   return dst;
 }
 
+void
+ec_set_sort_x(struct adata *set)
+{
+  /* Sort in place */
+  qsort(set->data, set->length / 8, 8, ec_set_cmp);
+}
+
 
 static int
 lc_set_cmp(const void *X, const void *Y)
diff --git a/nest/attrs.h b/nest/attrs.h
index f66d4f04..102f378a 100644
--- a/nest/attrs.h
+++ b/nest/attrs.h
@@ -197,4 +197,6 @@ struct adata *int_set_sort(struct linpool *pool, struct adata *src);
 struct adata *ec_set_sort(struct linpool *pool, struct adata *src);
 struct adata *lc_set_sort(struct linpool *pool, struct adata *src);
 
+void ec_set_sort_x(struct adata *set); /* Sort in place */
+
 #endif
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c
index dea3c4a6..fdc981ca 100644
--- a/proto/bgp/attrs.c
+++ b/proto/bgp/attrs.c
@@ -550,10 +550,12 @@ bgp_decode_mp_unreach_nlri(struct bgp_parse_state *s, uint code UNUSED, uint fla
 static void
 bgp_export_ext_community(struct bgp_export_state *s, eattr *a)
 {
+  a->u.ptr = ec_set_del_nontrans(s->pool, a->u.ptr);
+
   if (a->u.ptr->length == 0)
 UNSET(a);
 
-  a->u.ptr = ec_set_sort(s->pool, a->u.ptr);
+  ec_set_sort_x(a->u.ptr);
 }
 
 static void


Re: BIRD Error

2017-12-13 Thread Ondrej Zajicek
On Wed, Dec 13, 2017 at 04:43:12PM +0200, k.abda...@q-ab.com wrote:
> I tried this but " reload "  in birdc shell  , Reload config just  for
> current running  config file , there is no option for reconfig / Reload
> different file 

You mixed up 'reload' command (which does something different) with
'configure' command, which does reconfiguration and allows file path as
argument.

You can use '?' in birdc shell to get brief description of commands.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santi...@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."


Re: BIRD Error

2017-12-13 Thread Andrew

You may just rename configs. Or you should restart bird with new config.

On 13.12.2017 16:43, k.abda...@q-ab.com wrote:


I tried this but “ reload “  in birdc shell  , Reload config just  for 
current running  config file , there is no option for reconfig / 
Reload different file


Regards

*From:*Bird-users [mailto:bird-users-boun...@network.cz] *On Behalf Of 
*Andrew

*Sent:* Wednesday, December 13, 2017 4:30 PM
*To:* bird-users@network.cz
*Subject:* Re: BIRD Error

... or just to reload config using birdc shell...

On 13.12.2017 16:07, Damien Clabaut wrote:

Hello,

You can add the -d option to launch bird in the foreground with
extra debugging. Then you can just kill it with Ctrl + c.

Regards,

On 2017-12-13 08:57 AM, k.abda...@q-ab.com
 wrote:

Thank you  ! , It worked ..

Just another question please  , I’m working on test
environment and   testing different config. files , So do I
need to do this every time I want to change the configuration
file ?

How to change my config files without need to kill the process
and start again .?

Thanks

*From:*Bird-users [mailto:bird-users-boun...@network.cz] *On
Behalf Of *Damien Clabaut
*Sent:* Wednesday, December 13, 2017 3:40 PM
*To:* bird-users@network.cz 
*Subject:* Re: BIRD Error

Hello,

Can you confirm with the following command that Bird is indeed
already running ?

# ps ax | grep bird

If so you can try to kill it and launch bird -c myfile.conf.

Regards,

On 2017-12-13 08:31 AM, k.abda...@q-ab.com
 wrote:

Hi all ,

It’s my first time  running BIRD instance and when I tried
to run bird –c /myfile.conf /it gave below error :

“bird: I found another BIRD running”

Your help is much appreciated

Thanks




-- 


Damien Clabaut

R vRouter

ovh.qc.ca



-- 


Damien Clabaut

R vRouter

ovh.qc.ca





RE: BIRD Error

2017-12-13 Thread k.abdalla
I tried this but " reload "  in birdc shell  , Reload config just  for
current running  config file , there is no option for reconfig / Reload
different file 

 

Regards 

 

From: Bird-users [mailto:bird-users-boun...@network.cz] On Behalf Of Andrew
Sent: Wednesday, December 13, 2017 4:30 PM
To: bird-users@network.cz
Subject: Re: BIRD Error

 

... or just to reload config using birdc shell...

On 13.12.2017 16:07, Damien Clabaut wrote:

Hello,

You can add the -d option to launch bird in the foreground with extra
debugging. Then you can just kill it with Ctrl + c.

Regards,

 

On 2017-12-13 08:57 AM, k.abda...@q-ab.com 
wrote:

Thank you  ! , It worked ..

Just another question please  , I'm working on test environment and
testing different config. files , So do I need to do this every time I want
to change the configuration file ?

How to change my config files without need to kill the process and start
again .?

 

Thanks 

 

From: Bird-users [mailto:bird-users-boun...@network.cz] On Behalf Of Damien
Clabaut
Sent: Wednesday, December 13, 2017 3:40 PM
To: bird-users@network.cz  
Subject: Re: BIRD Error

 

Hello,

Can you confirm with the following command that Bird is indeed already
running ?

# ps ax | grep bird

If so you can try to kill it and launch bird -c myfile.conf.

Regards,

 

On 2017-12-13 08:31 AM, k.abda...@q-ab.com 
wrote:

Hi all ,

 

It's my first time  running BIRD instance and when I tried to run bird -c
myfile.conf it gave below error :

"bird: I found another BIRD running"

 

Your help is much appreciated 

 

Thanks 

 






-- 
Damien Clabaut
R vRouter
ovh.qc.ca





-- 
Damien Clabaut
R vRouter
ovh.qc.ca

 



Re: BIRD Error

2017-12-13 Thread Andrew

... or just to reload config using birdc shell...

On 13.12.2017 16:07, Damien Clabaut wrote:


Hello,

You can add the -d option to launch bird in the foreground with extra 
debugging. Then you can just kill it with Ctrl + c.


Regards,


On 2017-12-13 08:57 AM, k.abda...@q-ab.com wrote:


Thank you  ! , It worked ..

Just another question please  , I’m working on test environment and 
  testing different config. files , So do I need to do this every 
time I want to change the configuration file ?


How to change my config files without need to kill the process and 
start again .?


Thanks

*From:*Bird-users [mailto:bird-users-boun...@network.cz] *On Behalf 
Of *Damien Clabaut

*Sent:* Wednesday, December 13, 2017 3:40 PM
*To:* bird-users@network.cz
*Subject:* Re: BIRD Error

Hello,

Can you confirm with the following command that Bird is indeed 
already running ?


# ps ax | grep bird

If so you can try to kill it and launch bird -c myfile.conf.

Regards,

On 2017-12-13 08:31 AM, k.abda...@q-ab.com 
 wrote:


Hi all ,

It’s my first time  running BIRD instance and when I tried to run
bird –c /myfile.conf /it gave below error :

“bird: I found another BIRD running”

Your help is much appreciated

Thanks



--
Damien Clabaut
R vRouter
ovh.qc.ca


--
Damien Clabaut
R vRouter
ovh.qc.ca





RE: BIRD Error

2017-12-13 Thread k.abdalla
All right .Thanks again for guidance and quick response ! 

 

 

Regards

 

From: Bird-users [mailto:bird-users-boun...@network.cz] On Behalf Of Damien
Clabaut
Sent: Wednesday, December 13, 2017 4:08 PM
To: bird-users@network.cz
Subject: Re: BIRD Error

 

Hello,

You can add the -d option to launch bird in the foreground with extra
debugging. Then you can just kill it with Ctrl + c.

Regards,

 

On 2017-12-13 08:57 AM, k.abda...@q-ab.com 
wrote:

Thank you  ! , It worked ..

Just another question please  , I'm working on test environment and
testing different config. files , So do I need to do this every time I want
to change the configuration file ?

How to change my config files without need to kill the process and start
again .?

 

Thanks 

 

From: Bird-users [mailto:bird-users-boun...@network.cz] On Behalf Of Damien
Clabaut
Sent: Wednesday, December 13, 2017 3:40 PM
To: bird-users@network.cz  
Subject: Re: BIRD Error

 

Hello,

Can you confirm with the following command that Bird is indeed already
running ?

# ps ax | grep bird

If so you can try to kill it and launch bird -c myfile.conf.

Regards,

 

On 2017-12-13 08:31 AM, k.abda...@q-ab.com 
wrote:

Hi all ,

 

It's my first time  running BIRD instance and when I tried to run bird -c
myfile.conf it gave below error :

"bird: I found another BIRD running"

 

Your help is much appreciated 

 

Thanks 

 






-- 
Damien Clabaut
R vRouter
ovh.qc.ca





-- 
Damien Clabaut
R vRouter
ovh.qc.ca


Re: BIRD Error

2017-12-13 Thread Damien Clabaut

Hello,

You can add the -d option to launch bird in the foreground with extra 
debugging. Then you can just kill it with Ctrl + c.


Regards,


On 2017-12-13 08:57 AM, k.abda...@q-ab.com wrote:


Thank you  ! , It worked ..

Just another question please  , I’m working on test environment and 
  testing different config. files , So do I need to do this every time 
I want to change the configuration file ?


How to change my config files without need to kill the process and 
start again .?


Thanks

*From:*Bird-users [mailto:bird-users-boun...@network.cz] *On Behalf Of 
*Damien Clabaut

*Sent:* Wednesday, December 13, 2017 3:40 PM
*To:* bird-users@network.cz
*Subject:* Re: BIRD Error

Hello,

Can you confirm with the following command that Bird is indeed already 
running ?


# ps ax | grep bird

If so you can try to kill it and launch bird -c myfile.conf.

Regards,

On 2017-12-13 08:31 AM, k.abda...@q-ab.com  
wrote:


Hi all ,

It’s my first time  running BIRD instance and when I tried to run
bird –c /myfile.conf /it gave below error :

“bird: I found another BIRD running”

Your help is much appreciated

Thanks



--
Damien Clabaut
R vRouter
ovh.qc.ca


--
Damien Clabaut
R vRouter
ovh.qc.ca



RE: BIRD Error

2017-12-13 Thread k.abdalla
Thank you  ! , It worked ..

Just another question please  , I'm working on test environment and
testing different config. files , So do I need to do this every time I want
to change the configuration file ?

How to change my config files without need to kill the process and start
again .?

 

Thanks 

 

From: Bird-users [mailto:bird-users-boun...@network.cz] On Behalf Of Damien
Clabaut
Sent: Wednesday, December 13, 2017 3:40 PM
To: bird-users@network.cz
Subject: Re: BIRD Error

 

Hello,

Can you confirm with the following command that Bird is indeed already
running ?

# ps ax | grep bird

If so you can try to kill it and launch bird -c myfile.conf.

Regards,

 

On 2017-12-13 08:31 AM, k.abda...@q-ab.com 
wrote:

Hi all ,

 

It's my first time  running BIRD instance and when I tried to run bird -c
myfile.conf it gave below error :

"bird: I found another BIRD running"

 

Your help is much appreciated 

 

Thanks 

 





-- 
Damien Clabaut
R vRouter
ovh.qc.ca


RE: BIRD Error

2017-12-13 Thread k.abdalla
Yes , bird is runnign fine , but it can run only the default configuration file 
bird.conf and I can not pass any  other configuration file 

 

 

regards

 

From: Mo Shivji [mailto:moy...@linx.net] 
Sent: Wednesday, December 13, 2017 3:43 PM
To: k.abda...@q-ab.com
Cc: bird-users@network.cz
Subject: Re: BIRD Error

 

 

On 13 Dec 2017, at 13:31,  > 
 > wrote:

 

Hi all ,

 

It’s my first time  running BIRD instance and when I tried to run bird –c 
myfile.conf it gave below error :

“bird: I found another BIRD running”

 

Your help is much appreciated 

 

Thanks 

 

Looks like bird is already running on your system.



Re: BIRD Error

2017-12-13 Thread Mo Shivji

> On 13 Dec 2017, at 13:31,   wrote:
> 
> Hi all ,
>  
> It’s my first time  running BIRD instance and when I tried to run bird –c 
> myfile.conf it gave below error :
> “bird: I found another BIRD running”
>  
> Your help is much appreciated 
>  
> Thanks 

Looks like bird is already running on your system.

Re: BIRD Error

2017-12-13 Thread Damien Clabaut

Hello,

Can you confirm with the following command that Bird is indeed already 
running ?


# ps ax | grep bird

If so you can try to kill it and launch bird -c myfile.conf.

Regards,


On 2017-12-13 08:31 AM, k.abda...@q-ab.com wrote:


Hi all ,

It’s my first time  running BIRD instance and when I tried to run bird 
–c /myfile.conf /it gave below error :


“bird: I found another BIRD running”

Your help is much appreciated

Thanks



--
Damien Clabaut
R vRouter
ovh.qc.ca



BIRD Error

2017-12-13 Thread k.abdalla
Hi all ,

 

It's my first time  running BIRD instance and when I tried to run bird -c
myfile.conf it gave below error :

"bird: I found another BIRD running"

 

Your help is much appreciated 

 

Thanks