From 75f835725deb42b00d5f746828f2738d15e3bc4f Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sat, 4 Apr 2015 23:46:01 +0000 Subject: api: use gRPC instead of REST Signed-off-by: ISHIDA Wataru --- table/destination.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'table/destination.go') diff --git a/table/destination.go b/table/destination.go index 72350d8a..aae02822 100644 --- a/table/destination.go +++ b/table/destination.go @@ -111,7 +111,7 @@ func (dd *DestinationDefault) MarshalJSON() ([]byte, error) { return json.Marshal(struct { Prefix string Paths []Path - BestPathIdx int + BestPathIdx int `json:"best_path_idx"` }{ Prefix: prefix.String(), Paths: dd.knownPathList, @@ -929,7 +929,7 @@ func (ipv6d *IPv6Destination) MarshalJSON() ([]byte, error) { return json.Marshal(struct { Prefix string Paths []Path - BestPathIdx int + BestPathIdx int `json:"best_path_idx"` }{ Prefix: prefix.String(), Paths: ipv6d.knownPathList, @@ -985,7 +985,7 @@ func (ipv4vpnd *IPv4VPNDestination) MarshalJSON() ([]byte, error) { return json.Marshal(struct { Prefix string Paths []Path - BestPathIdx int + BestPathIdx int `json:"best_path_idx"` }{ Prefix: prefix.String(), Paths: ipv4vpnd.knownPathList, @@ -1023,7 +1023,7 @@ func (evpnd *EVPNDestination) MarshalJSON() ([]byte, error) { return json.Marshal(struct { Prefix string Paths []Path - BestPathIdx int + BestPathIdx int `json:"best_path_idx"` }{ Prefix: nlri.String(), Paths: evpnd.knownPathList, -- cgit v1.2.3