Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions examples/bird_exp/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
BIRD IXP Example for MiniNExT
"""
48 changes: 48 additions & 0 deletions examples/bird_exp/configs/a1/bird.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
router id 172.0.1.1;


protocol kernel {

persist; # Don't remove routes on bird shutdown
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please have routes removed on BIRD shutdown for consistency, otherwise the kernel routes will grow stale / out of sync.

scan time 20; # Scan kernel routing table every 20 seconds
import all;
export all; # Default is export none

}


protocol device {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is protocol device? Do we need this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This basically checks every configured interface on the node if it is up or
down.

On Tue, Dec 9, 2014 at 2:39 PM, Brandon Schlinker notifications@github.com
wrote:

In examples/bird_exp/configs/a1/bird.conf
#2 (diff):

@@ -0,0 +1,48 @@
+router id 172.0.1.1;
+
+
+protocol kernel {

  • persist; # Don't remove routes on bird shutdown
  • scan time 20; # Scan kernel routing table every 20 seconds
  • import all;
  • export all; # Default is export none
  • +}
    +
    +
    +protocol device {

What is protocol device? Do we need this?


Reply to this email directly or view it on GitHub
https://github.com/USC-NSL/miniNExT/pull/2/files#r21569162.

scan time 10; # Scan interfaces every 10 seconds
}


protocol static {

route 10.0.1.0:255.255.255.0 via 172.0.1.1;

}




protocol bgp {

description "AS 100";
local as 100;
neighbor 172.0.254.254 as 65000;
import all;
export all;
hold time 240;
startup hold time 240;
connect retry time 120;
keepalive time 80; # defaults to hold time / 3
start delay time 5; # How long do we wait before initial connect
error wait time 60, 300;# Minimum and maximum time we wait after an error (when consecutive

error forget time 300; # ... until this timeout expires)
disable after error; # Disable the protocol automatically when an error occurs
source address 172.0.1.1; # What local address we use for the TCP connection

}


3 changes: 3 additions & 0 deletions examples/bird_exp/configs/a1/envvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BIRD_RUN_USER=bird
BIRD_RUN_GROUP=bird
#BIRD_ARGS=
48 changes: 48 additions & 0 deletions examples/bird_exp/configs/b1/bird.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
router id 172.0.2.1;


protocol kernel {

persist; # Don't remove routes on bird shutdown
scan time 20; # Scan kernel routing table every 20 seconds
import all;
export all; # Default is export none

}


protocol device {
scan time 10; # Scan interfaces every 10 seconds
}


protocol static {

route 10.0.2.0:255.255.255.0 via 172.0.2.1;

}




protocol bgp {

description "AS 200";
local as 200;
neighbor 172.0.254.254 as 65000;
import all;
export all;
hold time 240;
startup hold time 240;
connect retry time 120;
keepalive time 80; # defaults to hold time / 3
start delay time 5; # How long do we wait before initial connect
error wait time 60, 300;# Minimum and maximum time we wait after an error (when consecutive

error forget time 300; # ... until this timeout expires)
disable after error; # Disable the protocol automatically when an error occurs
source address 172.0.2.1; # What local address we use for the TCP connection

}


3 changes: 3 additions & 0 deletions examples/bird_exp/configs/b1/envvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BIRD_RUN_USER=bird
BIRD_RUN_GROUP=bird
#BIRD_ARGS=
48 changes: 48 additions & 0 deletions examples/bird_exp/configs/c1/bird.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
router id 172.0.3.2;


protocol kernel {

persist; # Don't remove routes on bird shutdown
scan time 20; # Scan kernel routing table every 20 seconds
import all;
export all; # Default is export none

}


protocol device {
scan time 10; # Scan interfaces every 10 seconds
}


protocol static {

route 10.0.3.0:255.255.255.0 via 172.0.3.2;

}




protocol bgp {

description "AS 300_1";
local as 300;
neighbor 172.0.254.254 as 65000;
import all;
export all;
hold time 240;
startup hold time 240;
connect retry time 120;
keepalive time 80; # defaults to hold time / 3
start delay time 5; # How long do we wait before initial connect
error wait time 60, 300;# Minimum and maximum time we wait after an error (when consecutive

error forget time 300; # ... until this timeout expires)
disable after error; # Disable the protocol automatically when an error occurs
source address 172.0.3.2; # What local address we use for the TCP connection

}


3 changes: 3 additions & 0 deletions examples/bird_exp/configs/c1/envvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BIRD_RUN_USER=bird
BIRD_RUN_GROUP=bird
#BIRD_ARGS=
48 changes: 48 additions & 0 deletions examples/bird_exp/configs/c2/bird.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
router id 172.0.3.1;


protocol kernel {

persist; # Don't remove routes on bird shutdown
scan time 20; # Scan kernel routing table every 20 seconds
import all;
export all; # Default is export none

}


protocol device {
scan time 10; # Scan interfaces every 10 seconds
}


protocol static {

route 10.0.3.0:255.255.255.0 via 172.0.3.1;

}




protocol bgp {

description "AS 300_2";
local as 300;
neighbor 172.0.254.254 as 65000;
import all;
export all;
hold time 240;
startup hold time 240;
connect retry time 120;
keepalive time 80; # defaults to hold time / 3
start delay time 5; # How long do we wait before initial connect
error wait time 60, 300;# Minimum and maximum time we wait after an error (when consecutive

error forget time 300; # ... until this timeout expires)
disable after error; # Disable the protocol automatically when an error occurs
source address 172.0.3.1; # What local address we use for the TCP connection

}


3 changes: 3 additions & 0 deletions examples/bird_exp/configs/c2/envvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BIRD_RUN_USER=bird
BIRD_RUN_GROUP=bird
#BIRD_ARGS=
48 changes: 48 additions & 0 deletions examples/bird_exp/configs/d1/bird.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
router id 172.0.4.1;


protocol kernel {

persist; # Don't remove routes on bird shutdown
scan time 20; # Scan kernel routing table every 20 seconds
import all;
export all; # Default is export none

}


protocol device {
scan time 10; # Scan interfaces every 10 seconds
}


protocol static {

route 10.0.4.0:255.255.255.0 via 172.0.4.1;

}




protocol bgp {

description "AS 400";
local as 400;
neighbor 172.0.254.254 as 65000;
import all;
export all;
hold time 240;
startup hold time 240;
connect retry time 120;
keepalive time 80; # defaults to hold time / 3
start delay time 5; # How long do we wait before initial connect
error wait time 60, 300;# Minimum and maximum time we wait after an error (when consecutive

error forget time 300; # ... until this timeout expires)
disable after error; # Disable the protocol automatically when an error occurs
source address 172.0.4.1; # What local address we use for the TCP connection

}


3 changes: 3 additions & 0 deletions examples/bird_exp/configs/d1/envvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BIRD_RUN_USER=bird
BIRD_RUN_GROUP=bird
#BIRD_ARGS=
Loading