diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-06-02 21:08:04 +0900 |
---|---|---|
committer | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-06-02 21:09:04 +0900 |
commit | ff5bf58931ae2508a4d2d50e7ac0d7f451213d54 (patch) | |
tree | 6241df504c2e788426077ed672af3df8cd4c8ae6 /table | |
parent | e985f476a182f1a66084b3ed4b1c2376f9cc5018 (diff) |
path: stop checking AS length in the AS4_PATH attribute
Diffstat (limited to 'table')
-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 } |