diff options
Diffstat (limited to 'table/path.go')
-rw-r--r-- | table/path.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/table/path.go b/table/path.go index 875fd04e..cf4603f2 100644 --- a/table/path.go +++ b/table/path.go @@ -154,6 +154,7 @@ type Path struct { info *originInfo IsWithdraw bool pathAttrs []bgp.PathAttributeInterface + attrsHash uint32 reason BestPathReason parent *Path dels []bgp.BGPAttrType @@ -1242,3 +1243,11 @@ func (p *Path) ToLocal() *Path { path.IsNexthopInvalid = p.IsNexthopInvalid return path } + +func (p *Path) SetHash(v uint32) { + p.attrsHash = v +} + +func (p *Path) GetHash() uint32 { + return p.attrsHash +} |