diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-03 23:05:23 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-04 20:30:51 +0900 |
commit | 52ddad958f10ae9ea7ab8c40130825c903d08c52 (patch) | |
tree | 4097992e648a41e75928e89dad134ff67abfff37 /table/table.go | |
parent | a3cb22a9027b4fd9f360f873b976472aad4ae173 (diff) |
table: remove Path's source version
Even if a connection with peer is down and up, table code gets
BGPmessages belonging the first connection before the event of the
peer down in order. So we don't need source version stuff inherent
from Ryu BGP code.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/table.go')
-rw-r--r-- | table/table.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/table/table.go b/table/table.go index 0be4c75f..de36510d 100644 --- a/table/table.go +++ b/table/table.go @@ -114,7 +114,7 @@ func (td *TableDefault) DeleteDestByPeer(peerInfo *PeerInfo) []Destination { for _, dest := range td.destinations { newKnownPathList := make([]Path, 0) for _, p := range dest.getKnownPathList() { - if peerInfo != p.getSource() || peerInfo.VersionNum != p.getSourceVerNum() { + if p.getSource() != peerInfo { newKnownPathList = append(newKnownPathList, p) } } |