diff options
Diffstat (limited to 'table/path.go')
-rw-r--r-- | table/path.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/table/path.go b/table/path.go index b72a894e..05a54aaa 100644 --- a/table/path.go +++ b/table/path.go @@ -349,13 +349,6 @@ func (pd *PathDefault) GetAsPathLen() int { segment := paramIf.(*bgp.As4PathParam) length += segment.ASLen() } - - } else { - _, attr := pd.getPathAttr(bgp.BGP_ATTR_TYPE_AS4_PATH) - aspath := attr.(*bgp.PathAttributeAs4Path) - for _, segment := range aspath.Value { - length += segment.ASLen() - } } return length } |