diff options
author | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-10-20 21:25:03 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-10-26 07:02:54 +0900 |
commit | 2e05695f683430bdf39573b19f51bac4dcbbc693 (patch) | |
tree | 3f80939fb737832dbf8f8f5ebe0b35e0e9900718 /internal/pkg/table/path.go | |
parent | b4e2d9e440a4eb6d3091a7c586d2e55b69ec968a (diff) |
avoid installing routes with originator ID to global when softresetin
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'internal/pkg/table/path.go')
-rw-r--r-- | internal/pkg/table/path.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/pkg/table/path.go b/internal/pkg/table/path.go index 0a6debca..805fa63c 100644 --- a/internal/pkg/table/path.go +++ b/internal/pkg/table/path.go @@ -137,7 +137,7 @@ type Path struct { pathAttrs []bgp.PathAttributeInterface dels []bgp.BGPAttrType attrsHash uint32 - aslooped bool + rejected bool // doesn't exist in the adj dropped bool @@ -382,12 +382,12 @@ func (path *Path) IsStale() bool { return path.OriginInfo().stale } -func (path *Path) IsAsLooped() bool { - return path.aslooped +func (path *Path) IsRejected() bool { + return path.rejected } -func (path *Path) SetAsLooped(y bool) { - path.aslooped = y +func (path *Path) SetRejected(y bool) { + path.rejected = y } func (path *Path) IsDropped() bool { |