diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-07-21 13:23:15 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-07-21 13:23:15 +0900 |
commit | 43dc07d72353fc8bcb79a18a5739ea0a90dda6bb (patch) | |
tree | dcd049f3e12c4b2caa156127a7262893c01d2a7c /table | |
parent | 300284ce4aff7a11bbd001da295be5464ecf58cc (diff) |
move gRPC-related code for REQ_ADD_PATH and REQ_DELETE_PATH to grpc_server.go
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r-- | table/path.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/table/path.go b/table/path.go index e10cd44b..08c92089 100644 --- a/table/path.go +++ b/table/path.go @@ -91,7 +91,6 @@ func NewPath(source *PeerInfo, nlri bgp.AddrPrefixInterface, isWithdraw bool, pa log.WithFields(log.Fields{ "Topic": "Table", "Key": nlri.String(), - "Peer": source.Address.String(), }).Error("Need to provide patattrs for the path that is not withdraw.") return nil } @@ -331,7 +330,7 @@ func (path *Path) GetRouteFamily() bgp.RouteFamily { return bgp.AfiSafiToRouteFamily(path.OriginInfo().nlri.AFI(), path.OriginInfo().nlri.SAFI()) } -func (path *Path) setSource(source *PeerInfo) { +func (path *Path) SetSource(source *PeerInfo) { path.OriginInfo().source = source } func (path *Path) GetSource() *PeerInfo { |