(status *protocol.StatusResponse, prefix, nh, router string)
| 225 | } |
| 226 | |
| 227 | func HasSelectedRoute(status *protocol.StatusResponse, prefix, nh, router string) bool { |
| 228 | for _, route := range status.GetRoutes().GetSelected() { |
| 229 | source := route.GetPubRoute().GetSource() |
| 230 | if source.GetPrefix() == prefix && route.GetNh() == nh && source.GetNodeId() == router { |
| 231 | return true |
| 232 | } |
| 233 | } |
| 234 | return false |
| 235 | } |
| 236 | |
| 237 | func HasResolvedEndpoint(status *protocol.StatusResponse, address, resolved string) bool { |
| 238 | for _, neigh := range status.GetNeighbours() { |