Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bio-rd
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
bio-rd
Commits
934e4a2c
Unverified
Commit
934e4a2c
authored
6 years ago
by
Daniel Czerwonk
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #52 from bio-routing/feature/rs
Implemented Route Server support
parents
d873c951
b54ca9e1
No related branches found
No related tags found
No related merge requests found
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
routingtable/filter/helper_test.go
+2
-9
2 additions, 9 deletions
routingtable/filter/helper_test.go
routingtable/neighbor.go
+9
-0
9 additions, 0 deletions
routingtable/neighbor.go
with
11 additions
and
9 deletions
routingtable/filter/helper_test.go
+
2
−
9
View file @
934e4a2c
package
filter
package
filter
import
(
/*func TestNewAcceptAllFilter(t *testing.T) {
"testing"
"github.com/bio-routing/bio-rd/net"
"github.com/bio-routing/bio-rd/route"
)
func
TestNewAcceptAllFilter
(
t
*
testing
.
T
)
{
f := NewAcceptAllFilter()
f := NewAcceptAllFilter()
m := &clientMock{}
m := &clientMock{}
...
@@ -31,4 +24,4 @@ func TestNewDrainFilter(t *testing.T) {
...
@@ -31,4 +24,4 @@ func TestNewDrainFilter(t *testing.T) {
if m.addPathCalled {
if m.addPathCalled {
t.Fatalf("expected filtered, but was accepted")
t.Fatalf("expected filtered, but was accepted")
}
}
}
}
*/
This diff is collapsed.
Click to expand it.
routingtable/neighbor.go
+
9
−
0
View file @
934e4a2c
...
@@ -5,6 +5,9 @@ type Neighbor struct {
...
@@ -5,6 +5,9 @@ type Neighbor struct {
// Addres is the IPv4 address of the neighbor as integer representation
// Addres is the IPv4 address of the neighbor as integer representation
Address
uint32
Address
uint32
// Local address is the local address of the BGP TCP connection
LocalAddress
uint32
// Type is the type / protocol used for routing inforation communitation
// Type is the type / protocol used for routing inforation communitation
Type
uint8
Type
uint8
...
@@ -13,4 +16,10 @@ type Neighbor struct {
...
@@ -13,4 +16,10 @@ type Neighbor struct {
// Local ASN of session
// Local ASN of session
LocalASN
uint32
LocalASN
uint32
// Peer is a route server client
RouteServerClient
bool
// CapAddPathRX indicates if the peer supports receiving multiple BGP paths
CapAddPathRX
bool
}
}
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment