renamed neighbour to neighbor
This commit is contained in:
parent
dbf88195b9
commit
dfd2b0dd15
@ -26,8 +26,8 @@ import (
|
||||
// Routeservers
|
||||
// List /api/v1/routeservers
|
||||
// Status /api/v1/routeservers/:id/status
|
||||
// Neighbors /api/v1/routeservers/:id/neighbours
|
||||
// Routes /api/v1/routeservers/:id/neighbours/:neighbourId/routes
|
||||
// Neighbors /api/v1/routeservers/:id/neighbors
|
||||
// Routes /api/v1/routeservers/:id/neighbors/:neighborId/routes
|
||||
//
|
||||
// Querying
|
||||
// LookupPrefix /api/v1/routeservers/:id/lookup/prefix?q=<prefix>
|
||||
@ -96,15 +96,15 @@ func apiRegisterEndpoints(router *httprouter.Router) error {
|
||||
endpoint(apiRouteserversList))
|
||||
router.GET("/api/v1/routeservers/:id/status",
|
||||
endpoint(apiStatus))
|
||||
router.GET("/api/v1/routeservers/:id/neighbours",
|
||||
router.GET("/api/v1/routeservers/:id/neighbors",
|
||||
endpoint(apiNeighborsList))
|
||||
router.GET("/api/v1/routeservers/:id/neighbours/:neighbourId/routes",
|
||||
router.GET("/api/v1/routeservers/:id/neighbors/:neighborId/routes",
|
||||
endpoint(apiRoutesList))
|
||||
router.GET("/api/v1/routeservers/:id/neighbours/:neighbourId/routes/received",
|
||||
router.GET("/api/v1/routeservers/:id/neighbors/:neighborId/routes/received",
|
||||
endpoint(apiRoutesListReceived))
|
||||
router.GET("/api/v1/routeservers/:id/neighbours/:neighbourId/routes/filtered",
|
||||
router.GET("/api/v1/routeservers/:id/neighbors/:neighborId/routes/filtered",
|
||||
endpoint(apiRoutesListFiltered))
|
||||
router.GET("/api/v1/routeservers/:id/neighbours/:neighbourId/routes/not-exported",
|
||||
router.GET("/api/v1/routeservers/:id/neighbors/:neighborId/routes/not-exported",
|
||||
endpoint(apiRoutesListNotExported))
|
||||
|
||||
// Querying
|
||||
|
@ -13,11 +13,11 @@ func apiRoutesList(_req *http.Request, params httprouter.Params) (api.Response,
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
neighbourId := params.ByName("neighbourId")
|
||||
neighborId := params.ByName("neighborId")
|
||||
source := AliceConfig.Sources[rsId].getInstance()
|
||||
result, err := source.Routes(neighbourId)
|
||||
result, err := source.Routes(neighborId)
|
||||
if err != nil {
|
||||
apiLogSourceError("routes", rsId, neighbourId, err)
|
||||
apiLogSourceError("routes", rsId, neighborId, err)
|
||||
}
|
||||
|
||||
return result, err
|
||||
@ -33,11 +33,11 @@ func apiRoutesListReceived(
|
||||
return nil, err
|
||||
}
|
||||
|
||||
neighbourId := params.ByName("neighbourId")
|
||||
neighborId := params.ByName("neighborId")
|
||||
source := AliceConfig.Sources[rsId].getInstance()
|
||||
result, err := source.RoutesReceived(neighbourId)
|
||||
result, err := source.RoutesReceived(neighborId)
|
||||
if err != nil {
|
||||
apiLogSourceError("routes_received", rsId, neighbourId, err)
|
||||
apiLogSourceError("routes_received", rsId, neighborId, err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@ -70,11 +70,11 @@ func apiRoutesListFiltered(
|
||||
return nil, err
|
||||
}
|
||||
|
||||
neighbourId := params.ByName("neighbourId")
|
||||
neighborId := params.ByName("neighborId")
|
||||
source := AliceConfig.Sources[rsId].getInstance()
|
||||
result, err := source.RoutesFiltered(neighbourId)
|
||||
result, err := source.RoutesFiltered(neighborId)
|
||||
if err != nil {
|
||||
apiLogSourceError("routes_filtered", rsId, neighbourId, err)
|
||||
apiLogSourceError("routes_filtered", rsId, neighborId, err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@ -107,11 +107,11 @@ func apiRoutesListNotExported(
|
||||
return nil, err
|
||||
}
|
||||
|
||||
neighbourId := params.ByName("neighbourId")
|
||||
neighborId := params.ByName("neighborId")
|
||||
source := AliceConfig.Sources[rsId].getInstance()
|
||||
result, err := source.RoutesNotExported(neighbourId)
|
||||
result, err := source.RoutesNotExported(neighborId)
|
||||
if err != nil {
|
||||
apiLogSourceError("routes_not_exported", rsId, neighbourId, err)
|
||||
apiLogSourceError("routes_not_exported", rsId, neighborId, err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user