summaryrefslogtreecommitdiffhomepage
path: root/table
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-08-09 20:03:18 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-12 08:04:30 +0900
commit95540c2e8a16274522002a26e106d4397a5c2d7f (patch)
treeb2c14797ead931528de6f6ff1b3a6c5edd5a1f9f /table
parent3ffc6b3b4fe49a9c099a36191a0846aceef1adfc (diff)
table: remove unnecessary else if condition
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r--table/message.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/table/message.go b/table/message.go
index ffcbfa08..b7edc383 100644
--- a/table/message.go
+++ b/table/message.go
@@ -150,7 +150,7 @@ func createUpdateMsgFromPath(path *Path, msg *bgp.BGPMessage) *bgp.BGPMessage {
return bgp.NewBGPUpdateMessage([]bgp.WithdrawnRoute{}, pathAttrs, []bgp.NLRInfo{*nlri})
}
}
- } else if rf == bgp.RF_IPv6_UC || rf == bgp.RF_EVPN || rf == bgp.RF_ENCAP || rf == bgp.RF_RTC_UC {
+ } else {
if path.IsWithdraw {
if msg != nil {
idx, _ := path.getPathAttr(bgp.BGP_ATTR_TYPE_MP_UNREACH_NLRI)