1
0
mirror of https://github.com/alice-lg/alice-lg.git synced 2024-05-11 05:55:03 +00:00

include primary in lookup result

This commit is contained in:
Matthias Hannig
2018-08-02 14:30:40 +02:00
parent 369542c2a3
commit 1f1551250f
2 changed files with 2 additions and 0 deletions

View File

@ -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"`
}

View File

@ -187,6 +187,7 @@ func routeToLookupRoute(
Bgp: route.Bgp,
Age: route.Age,
Type: route.Type,
Primary: route.Primary,
}
return lookup