Skip to content

Commit

Permalink
WIP: Add BFD support
Browse files Browse the repository at this point in the history
At this point, this is just an example.  The following issues need to be
resolved before this could be merged:

* Is BFD going to be enabled everywhere?  If not, it needs an option.
  Is that option on or off by default?  If on, should it be set to off
  for existing Routers on migration?
* Should the interval be customizable?  Should the multiplier?
  • Loading branch information
rlaager committed May 28, 2023
1 parent 2f856a0 commit 67b4907
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions resources/views/api/v4/router/server/bird2/header.foil.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@
# ignore interface up/down events
protocol device { }

protocol bfd
{
accept ipv<?= $t->router->protocol ?> direct;
interface "*" {
passive on;
multiplier 3;
min rx interval 500ms;
min tx interval 500ms;
};
}

# This function excludes weird networks
# rfc1918, class D, class E, too long and too short prefixes
function avoid_martians()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@
<?php if( $int['bgpmd5secret'] && !$t->router->skip_md5 ): ?>
password "<?= $int['bgpmd5secret'] ?>";
<?php endif; ?>
bfd on;
}

<?php endforeach; ?>
Expand Down

0 comments on commit 67b4907

Please sign in to comment.