summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorSatoshi Fujimoto <satoshi.fujimoto7@gmail.com>2017-06-15 08:56:11 +0900
committerSatoshi Fujimoto <satoshi.fujimoto7@gmail.com>2017-06-16 15:53:18 +0900
commitd75edf18d7febd3f687393e8b0707e57438931eb (patch)
tree387a5f11b64b11cddf2c988eeff85a7ce6eb269c /api
parent369626d2221bb175fbf81bd59738104f77aca835 (diff)
server: Support Dynamic Neighbor
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'api')
-rw-r--r--api/grpc_server.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/api/grpc_server.go b/api/grpc_server.go
index c973e24b..40a567e4 100644
--- a/api/grpc_server.go
+++ b/api/grpc_server.go
@@ -197,11 +197,12 @@ func NewPeerFromConfigStruct(pconf *config.Neighbor) *Peer {
TOTAL: s.Messages.Sent.Total,
},
},
- Received: s.AdjTable.Received,
- Accepted: s.AdjTable.Accepted,
- Advertised: s.AdjTable.Advertised,
- PeerAs: s.PeerAs,
- PeerType: uint32(s.PeerType.ToInt()),
+ Received: s.AdjTable.Received,
+ Accepted: s.AdjTable.Accepted,
+ Advertised: s.AdjTable.Advertised,
+ PeerAs: s.PeerAs,
+ PeerType: uint32(s.PeerType.ToInt()),
+ NeighborAddress: pconf.State.NeighborAddress,
},
Timers: &Timers{
Config: &TimersConfig{