From 95540c2e8a16274522002a26e106d4397a5c2d7f Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sun, 9 Aug 2015 20:03:18 +0900 Subject: table: remove unnecessary else if condition Signed-off-by: ISHIDA Wataru --- table/message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'table') 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) -- cgit v1.2.3