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
67479976
Commit
67479976
authored
6 years ago
by
Daniel Czerwonk
Browse files
Options
Downloads
Patches
Plain Diff
family dependent add-path config
parent
96439443
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/peer.go
+2
-2
2 additions, 2 deletions
config/peer.go
main_ipv4.go
+7
-7
7 additions, 7 deletions
main_ipv4.go
main_ipv6.go
+6
-6
6 additions, 6 deletions
main_ipv6.go
with
15 additions
and
15 deletions
config/peer.go
+
2
−
2
View file @
67479976
...
@@ -21,8 +21,6 @@ type Peer struct {
...
@@ -21,8 +21,6 @@ type Peer struct {
PeerAS
uint32
PeerAS
uint32
Passive
bool
Passive
bool
RouterID
uint32
RouterID
uint32
AddPathSend
routingtable
.
ClientOptions
AddPathRecv
bool
RouteServerClient
bool
RouteServerClient
bool
RouteReflectorClient
bool
RouteReflectorClient
bool
RouteReflectorClusterID
uint32
RouteReflectorClusterID
uint32
...
@@ -35,4 +33,6 @@ type AddressFamilyConfig struct {
...
@@ -35,4 +33,6 @@ type AddressFamilyConfig struct {
RIB
*
locRIB
.
LocRIB
RIB
*
locRIB
.
LocRIB
ImportFilter
*
filter
.
Filter
ImportFilter
*
filter
.
Filter
ExportFilter
*
filter
.
Filter
ExportFilter
*
filter
.
Filter
AddPathSend
routingtable
.
ClientOptions
AddPathRecv
bool
}
}
This diff is collapsed.
Click to expand it.
main_ipv4.go
+
7
−
7
View file @
67479976
...
@@ -40,13 +40,13 @@ func startServer(b server.BGPServer, rib *locRIB.LocRIB) {
...
@@ -40,13 +40,13 @@ func startServer(b server.BGPServer, rib *locRIB.LocRIB) {
KeepAlive
:
time
.
Second
*
30
,
KeepAlive
:
time
.
Second
*
30
,
Passive
:
true
,
Passive
:
true
,
RouterID
:
b
.
RouterID
(),
RouterID
:
b
.
RouterID
(),
AddPathSend
:
routingtable
.
ClientOptions
{
MaxPaths
:
10
,
},
IPv4
:
&
config
.
AddressFamilyConfig
{
IPv4
:
&
config
.
AddressFamilyConfig
{
RIB
:
rib
,
RIB
:
rib
,
ImportFilter
:
filter
.
NewAcceptAllFilter
(),
ImportFilter
:
filter
.
NewAcceptAllFilter
(),
ExportFilter
:
filter
.
NewAcceptAllFilter
(),
ExportFilter
:
filter
.
NewAcceptAllFilter
(),
AddPathSend
:
routingtable
.
ClientOptions
{
MaxPaths
:
10
,
},
},
},
RouteServerClient
:
true
,
RouteServerClient
:
true
,
})
})
...
@@ -62,15 +62,15 @@ func startServer(b server.BGPServer, rib *locRIB.LocRIB) {
...
@@ -62,15 +62,15 @@ func startServer(b server.BGPServer, rib *locRIB.LocRIB) {
KeepAlive
:
time
.
Second
*
30
,
KeepAlive
:
time
.
Second
*
30
,
Passive
:
true
,
Passive
:
true
,
RouterID
:
b
.
RouterID
(),
RouterID
:
b
.
RouterID
(),
AddPathSend
:
routingtable
.
ClientOptions
{
MaxPaths
:
10
,
},
AddPathRecv
:
true
,
RouteServerClient
:
true
,
RouteServerClient
:
true
,
IPv4
:
&
config
.
AddressFamilyConfig
{
IPv4
:
&
config
.
AddressFamilyConfig
{
RIB
:
rib
,
RIB
:
rib
,
ImportFilter
:
filter
.
NewAcceptAllFilter
(),
ImportFilter
:
filter
.
NewAcceptAllFilter
(),
ExportFilter
:
filter
.
NewAcceptAllFilter
(),
ExportFilter
:
filter
.
NewAcceptAllFilter
(),
AddPathSend
:
routingtable
.
ClientOptions
{
MaxPaths
:
10
,
},
AddPathRecv
:
true
,
},
},
})
})
}
}
This diff is collapsed.
Click to expand it.
main_ipv6.go
+
6
−
6
View file @
67479976
...
@@ -38,13 +38,13 @@ func startServer(b server.BGPServer, rib *locRIB.LocRIB) {
...
@@ -38,13 +38,13 @@ func startServer(b server.BGPServer, rib *locRIB.LocRIB) {
KeepAlive
:
time
.
Second
*
30
,
KeepAlive
:
time
.
Second
*
30
,
Passive
:
true
,
Passive
:
true
,
RouterID
:
b
.
RouterID
(),
RouterID
:
b
.
RouterID
(),
AddPathSend
:
routingtable
.
ClientOptions
{
BestOnly
:
true
,
},
IPv6
:
&
config
.
AddressFamilyConfig
{
IPv6
:
&
config
.
AddressFamilyConfig
{
RIB
:
rib
,
RIB
:
rib
,
ImportFilter
:
filter
.
NewAcceptAllFilter
(),
ImportFilter
:
filter
.
NewAcceptAllFilter
(),
ExportFilter
:
filter
.
NewDrainFilter
(),
ExportFilter
:
filter
.
NewDrainFilter
(),
AddPathSend
:
routingtable
.
ClientOptions
{
BestOnly
:
true
,
},
},
},
})
})
...
@@ -59,13 +59,13 @@ func startServer(b server.BGPServer, rib *locRIB.LocRIB) {
...
@@ -59,13 +59,13 @@ func startServer(b server.BGPServer, rib *locRIB.LocRIB) {
KeepAlive
:
time
.
Second
*
30
,
KeepAlive
:
time
.
Second
*
30
,
Passive
:
true
,
Passive
:
true
,
RouterID
:
b
.
RouterID
(),
RouterID
:
b
.
RouterID
(),
AddPathSend
:
routingtable
.
ClientOptions
{
BestOnly
:
true
,
},
IPv6
:
&
config
.
AddressFamilyConfig
{
IPv6
:
&
config
.
AddressFamilyConfig
{
RIB
:
rib
,
RIB
:
rib
,
ImportFilter
:
filter
.
NewDrainFilter
(),
ImportFilter
:
filter
.
NewDrainFilter
(),
ExportFilter
:
filter
.
NewAcceptAllFilter
(),
ExportFilter
:
filter
.
NewAcceptAllFilter
(),
AddPathSend
:
routingtable
.
ClientOptions
{
BestOnly
:
true
,
},
},
},
})
})
}
}
This diff is collapsed.
Click to expand it.
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