diff options
author | Yuji Oshima <yuji.oshima0x3fd@gmail.com> | 2015-03-23 20:09:02 +0900 |
---|---|---|
committer | Yuji Oshima <yuji.oshima0x3fd@gmail.com> | 2015-03-23 20:09:02 +0900 |
commit | 8d7b670b4ff6cab9e7065ed869b94e42446ecb93 (patch) | |
tree | ea9378de73c36620bbfea07545da110ac77d528f /table/path.go | |
parent | befaf99a43e81c2082e2f16356ddd7a0820fa5ce (diff) |
tabele: remove unnecessary withdrawn route check
Diffstat (limited to 'table/path.go')
-rw-r--r-- | table/path.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/table/path.go b/table/path.go index 73475e98..63da8c40 100644 --- a/table/path.go +++ b/table/path.go @@ -421,15 +421,6 @@ func NewIPv4VPNPath(source *PeerInfo, nlri bgp.AddrPrefixInterface, isWithdraw b func (ipv4vpnp *IPv4VPNPath) clone(isWithdraw bool) Path { nlri := ipv4vpnp.nlri - if isWithdraw { - if ipv4vpnp.IsWithdraw() { - log.WithFields(log.Fields{ - "Topic": "Table", - "Key": ipv4vpnp.getNlri().String(), - "Peer": ipv4vpnp.getSource().Address.String(), - }).Fatal("Withdraw path is not supposed to be cloned") - } - } return CreatePath(ipv4vpnp.source, nlri, ipv4vpnp.pathAttrs, isWithdraw, ipv4vpnp.PathDefault.timestamp) } @@ -487,15 +478,6 @@ func NewEVPNPath(source *PeerInfo, nlri bgp.AddrPrefixInterface, isWithdraw bool func (evpnp *EVPNPath) clone(isWithdraw bool) Path { nlri := evpnp.nlri - if isWithdraw { - if evpnp.IsWithdraw() { - log.WithFields(log.Fields{ - "Topic": "Table", - "Key": evpnp.getNlri().String(), - "Peer": evpnp.getSource().Address.String(), - }).Fatal("Withdraw path is not supposed to be cloned") - } - } return CreatePath(evpnp.source, nlri, evpnp.pathAttrs, isWithdraw, evpnp.PathDefault.timestamp) } |