diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-07-30 18:54:56 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-05 17:24:36 +0900 |
commit | 6b3e4a74e30130909fc6e86a9ce1d5c1b85c95c9 (patch) | |
tree | 34337f2eb9f9c4b224fca7cd8ae86b07642625aa /table/path.go | |
parent | 2017bdc7a9452d4a66dd062016f1b68fbf4ef09b (diff) |
path: return Extendedcommunityinterface rathar than interface{}
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/path.go')
-rw-r--r-- | table/path.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |