diff options
-rw-r--r-- | table/path.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/table/path.go b/table/path.go index 5abd1f10..9e296edb 100644 --- a/table/path.go +++ b/table/path.go @@ -403,20 +403,6 @@ func (ipv6p *IPv6Path) String() string { return str } -func (ipv6p *IPv6Path) MarshalJSON() ([]byte, error) { - return json.Marshal(struct { - Network string - Nexthop string - Attrs []bgp.PathAttributeInterface - Age int64 - }{ - Network: ipv6p.getPrefix(), - Nexthop: ipv6p.PathDefault.GetNexthop().String(), - Attrs: ipv6p.PathDefault.getPathAttrs(), - Age: int64(time.Now().Sub(ipv6p.PathDefault.timestamp).Seconds()), - }) -} - type IPv4VPNPath struct { *PathDefault } |