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:
@ -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"`
|
||||
}
|
||||
|
@ -187,6 +187,7 @@ func routeToLookupRoute(
|
||||
Bgp: route.Bgp,
|
||||
Age: route.Age,
|
||||
Type: route.Type,
|
||||
Primary: route.Primary,
|
||||
}
|
||||
|
||||
return lookup
|
||||
|
Reference in New Issue
Block a user