diff options
Diffstat (limited to 'table/path.go')
-rw-r--r-- | table/path.go | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/table/path.go b/table/path.go index 78fa111c..f2926cf3 100644 --- a/table/path.go +++ b/table/path.go @@ -70,7 +70,6 @@ func NewPathDefault(rf bgp.RouteFamily, source *PeerInfo, nlri bgp.AddrPrefixInt path.nexthop = nexthop path.withdraw = isWithdraw path.medSetByTargetNeighbor = medSetByTargetNeighbor - path.isBest = false return path } @@ -94,15 +93,12 @@ func (pd *PathDefault) MarshalJSON() ([]byte, error) { Network string Nexthop string Attrs []bgp.PathAttributeInterface - //Metric string - //origin string - Best string + Best string }{ Network: prefix.String() + "/" + fmt.Sprint(prefixLen), Nexthop: pd.nexthop.String(), - //Metric: fmt.Sprint(med), - Attrs: pd.getPathAttrs(), - Best: fmt.Sprint(pd.isBest), + Attrs: pd.getPathAttrs(), + Best: fmt.Sprint(pd.isBest), }) } |