From 1f1551250fc223486eeaf353975b003b7bc72c2b Mon Sep 17 00:00:00 2001 From: Matthias Hannig Date: Thu, 2 Aug 2018 14:30:40 +0200 Subject: [PATCH] include primary in lookup result --- backend/api/response.go | 1 + backend/routes_store.go | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/api/response.go b/backend/api/response.go index 88e6470..109a858 100644 --- a/backend/api/response.go +++ b/backend/api/response.go @@ -221,6 +221,7 @@ type LookupRoute struct { Bgp BgpInfo `json:"bgp"` Age time.Duration `json:"age"` Type []string `json:"type"` // [BGP, unicast, univ] + Primary bool `json:"primary"` Details Details `json:"details"` } diff --git a/backend/routes_store.go b/backend/routes_store.go index 5f49830..286d07a 100644 --- a/backend/routes_store.go +++ b/backend/routes_store.go @@ -187,6 +187,7 @@ func routeToLookupRoute( Bgp: route.Bgp, Age: route.Age, Type: route.Type, + Primary: route.Primary, } return lookup