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
d1edc53d
Commit
d1edc53d
authored
6 years ago
by
Daniel Czerwonk
Browse files
Options
Downloads
Patches
Plain Diff
peer add-path per family
parent
67479976
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
protocols/bgp/server/peer.go
+9
-5
9 additions, 5 deletions
protocols/bgp/server/peer.go
with
9 additions
and
5 deletions
protocols/bgp/server/peer.go
+
9
−
5
View file @
d1edc53d
...
@@ -29,8 +29,6 @@ type peer struct {
...
@@ -29,8 +29,6 @@ type peer struct {
fsmsMu
sync
.
Mutex
fsmsMu
sync
.
Mutex
routerID
uint32
routerID
uint32
addPathSend
routingtable
.
ClientOptions
addPathRecv
bool
reconnectInterval
time
.
Duration
reconnectInterval
time
.
Duration
keepaliveTime
time
.
Duration
keepaliveTime
time
.
Duration
holdTime
time
.
Duration
holdTime
time
.
Duration
...
@@ -44,9 +42,13 @@ type peer struct {
...
@@ -44,9 +42,13 @@ type peer struct {
}
}
type
familyParameters
struct
{
type
familyParameters
struct
{
rib
*
locRIB
.
LocRIB
rib
*
locRIB
.
LocRIB
importFilter
*
filter
.
Filter
importFilter
*
filter
.
Filter
exportFilter
*
filter
.
Filter
exportFilter
*
filter
.
Filter
addPathSend
routingtable
.
ClientOptions
addPathRecv
bool
}
}
func
(
p
*
peer
)
snapshot
()
PeerInfo
{
func
(
p
*
peer
)
snapshot
()
PeerInfo
{
...
@@ -120,8 +122,6 @@ func newPeer(c config.Peer, server *bgpServer) (*peer, error) {
...
@@ -120,8 +122,6 @@ func newPeer(c config.Peer, server *bgpServer) (*peer, error) {
peerASN
:
c
.
PeerAS
,
peerASN
:
c
.
PeerAS
,
localASN
:
c
.
LocalAS
,
localASN
:
c
.
LocalAS
,
fsms
:
make
([]
*
FSM
,
0
),
fsms
:
make
([]
*
FSM
,
0
),
addPathSend
:
c
.
AddPathSend
,
addPathRecv
:
c
.
AddPathRecv
,
reconnectInterval
:
c
.
ReconnectInterval
,
reconnectInterval
:
c
.
ReconnectInterval
,
keepaliveTime
:
c
.
KeepAlive
,
keepaliveTime
:
c
.
KeepAlive
,
holdTime
:
c
.
HoldTime
,
holdTime
:
c
.
HoldTime
,
...
@@ -136,6 +136,8 @@ func newPeer(c config.Peer, server *bgpServer) (*peer, error) {
...
@@ -136,6 +136,8 @@ func newPeer(c config.Peer, server *bgpServer) (*peer, error) {
rib
:
c
.
IPv4
.
RIB
,
rib
:
c
.
IPv4
.
RIB
,
importFilter
:
filterOrDefault
(
c
.
IPv4
.
ImportFilter
),
importFilter
:
filterOrDefault
(
c
.
IPv4
.
ImportFilter
),
exportFilter
:
filterOrDefault
(
c
.
IPv4
.
ExportFilter
),
exportFilter
:
filterOrDefault
(
c
.
IPv4
.
ExportFilter
),
addPathRecv
:
c
.
IPv4
.
AddPathRecv
,
addPathSend
:
c
.
IPv4
.
AddPathSend
,
}
}
}
}
...
@@ -155,6 +157,8 @@ func newPeer(c config.Peer, server *bgpServer) (*peer, error) {
...
@@ -155,6 +157,8 @@ func newPeer(c config.Peer, server *bgpServer) (*peer, error) {
rib
:
c
.
IPv6
.
RIB
,
rib
:
c
.
IPv6
.
RIB
,
importFilter
:
filterOrDefault
(
c
.
IPv6
.
ImportFilter
),
importFilter
:
filterOrDefault
(
c
.
IPv6
.
ImportFilter
),
exportFilter
:
filterOrDefault
(
c
.
IPv6
.
ExportFilter
),
exportFilter
:
filterOrDefault
(
c
.
IPv6
.
ExportFilter
),
addPathRecv
:
c
.
IPv6
.
AddPathRecv
,
addPathSend
:
c
.
IPv6
.
AddPathSend
,
}
}
caps
=
append
(
caps
,
multiProtocolCapability
(
packet
.
IPv6AFI
))
caps
=
append
(
caps
,
multiProtocolCapability
(
packet
.
IPv6AFI
))
}
}
...
...
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