diff options
Diffstat (limited to 'table/destination.go')
-rw-r--r-- | table/destination.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/table/destination.go b/table/destination.go index 9a26b4d3..0ad0f6f9 100644 --- a/table/destination.go +++ b/table/destination.go @@ -740,6 +740,12 @@ func compareByASPath(path1, path2 *Path) *Path { // // Shortest as-path length is preferred. If both path have same lengths, // we return None. + if SelectionOptions.IgnoreAsPathLength { + log.WithFields(log.Fields{ + "Topic": "Table", + }).Debug("compareByASPath -- skip") + return nil + } log.WithFields(log.Fields{ "Topic": "Table", }).Debug("enter compareByASPath") |