summaryrefslogtreecommitdiffhomepage
path: root/table/destination.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/destination.go')
-rw-r--r--table/destination.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/table/destination.go b/table/destination.go
index 9057d4f4..15d80e1d 100644
--- a/table/destination.go
+++ b/table/destination.go
@@ -736,7 +736,9 @@ func compareByASPath(path1, path2 *Path) *Path {
attribute1 := path1.getPathAttr(bgp.BGP_ATTR_TYPE_AS_PATH)
attribute2 := path2.getPathAttr(bgp.BGP_ATTR_TYPE_AS_PATH)
- if attribute1 == nil || attribute2 == nil {
+ // With addpath support, we could compare paths from API don't
+ // AS_PATH. No need to warn here.
+ if !path1.IsLocal() && !path2.IsLocal() && (attribute1 == nil || attribute2 == nil) {
log.WithFields(log.Fields{
"Topic": "Table",
"Key": "compareByASPath",