From 6b3e4a74e30130909fc6e86a9ce1d5c1b85c95c9 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Thu, 30 Jul 2015 18:54:56 +0900 Subject: path: return Extendedcommunityinterface rathar than interface{} Signed-off-by: ISHIDA Wataru --- table/path.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'table/path.go') diff --git a/table/path.go b/table/path.go index a3b609e9..4f1ff637 100644 --- a/table/path.go +++ b/table/path.go @@ -456,8 +456,8 @@ func (path *Path) ClearCommunities() { } } -func (path *Path) GetExtCommunities() []interface{} { - eCommunityList := make([]interface{}, 0) +func (path *Path) GetExtCommunities() []bgp.ExtendedCommunityInterface { + eCommunityList := make([]bgp.ExtendedCommunityInterface, 0) if _, attr := path.getPathAttr(bgp.BGP_ATTR_TYPE_EXTENDED_COMMUNITIES); attr != nil { eCommunities := attr.(*bgp.PathAttributeExtendedCommunities).Value for _, eCommunity := range eCommunities { -- cgit v1.2.3