summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/grpc_server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-11-25 21:02:55 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-11-25 23:27:02 +0900
commita5763c20d4ab411a3d6375cad32c8c8255c43a64 (patch)
treeecb2eaa8515b13f641c854993acecb42d522e3a7 /pkg/server/grpc_server.go
parent7ec6a96962637d0c6f525ec6e8dd517f785842c7 (diff)
api: remove AddPaths from Peer and PeerGroup
AddPaths in AfiSafi should be used; it can handle configuration per family. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'pkg/server/grpc_server.go')
-rw-r--r--pkg/server/grpc_server.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkg/server/grpc_server.go b/pkg/server/grpc_server.go
index b82dc59a..4f1e4df6 100644
--- a/pkg/server/grpc_server.go
+++ b/pkg/server/grpc_server.go
@@ -678,7 +678,6 @@ func newNeighborFromAPIStruct(a *api.Peer) (*config.Neighbor, error) {
}
}
}
- readAddPathsFromAPIStruct(&pconf.AddPaths, a.AddPaths)
return pconf, nil
}
@@ -759,7 +758,6 @@ func newPeerGroupFromAPIStruct(a *api.PeerGroup) (*config.PeerGroup, error) {
pconf.State.PeerAs = a.Info.PeerAs
pconf.State.PeerType = config.IntToPeerTypeMap[int(a.Info.PeerType)]
}
- readAddPathsFromAPIStruct(&pconf.AddPaths, a.AddPaths)
return pconf, nil
}