diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-08-26 18:11:38 +0900 |
---|---|---|
committer | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-09-01 19:42:02 +0900 |
commit | cc51c48a4934bde8f5a5555632633c3c8486b797 (patch) | |
tree | 14998dac3531e6a609bb414d2816f7f7d2ba1d5f /table | |
parent | f8d437ec0ea65656ca4c6d81ec48fe0f7099c60e (diff) |
zebra: distribute routes from zebra
Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>
Diffstat (limited to 'table')
-rw-r--r-- | table/destination.go | 2 | ||||
-rw-r--r-- | table/path.go | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/table/destination.go b/table/destination.go index 5889fb5b..de2bf659 100644 --- a/table/destination.go +++ b/table/destination.go @@ -613,7 +613,7 @@ func compareByASPath(path1, path2 *Path) *Path { "Key": "compareByASPath", "ASPath1": attribute1, "ASPath2": attribute2, - }).Error("can't compare ASPath because it's not present") + }).Warn("can't compare ASPath because it's not present") } l1 := path1.GetAsPathLen() diff --git a/table/path.go b/table/path.go index 6dbb1f24..eba3340a 100644 --- a/table/path.go +++ b/table/path.go @@ -37,6 +37,7 @@ type Path struct { timestamp time.Time NoImplicitWithdraw bool Validation config.RpkiValidationResultType + IsFromZebra bool } func NewPath(source *PeerInfo, nlri bgp.AddrPrefixInterface, isWithdraw bool, pattrs []bgp.PathAttributeInterface, medSetByTargetNeighbor bool, timestamp time.Time, noImplicitWithdraw bool) *Path { |