Skip to content

Commit

Permalink
bring BGP endpoint doc comments in line with conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed Oct 24, 2023
1 parent 0f51441 commit 354facd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions nexus/src/external_api/http_entrypoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2609,7 +2609,7 @@ async fn networking_loopback_address_delete(
apictx.external_latencies.instrument_dropshot_handler(&rqctx, handler).await
}

/// Get loopback addresses, optionally filtering by id
/// List loopback addresses
#[endpoint {
method = GET,
path = "/v1/system/networking/loopback-address",
Expand Down Expand Up @@ -2824,7 +2824,7 @@ async fn networking_switch_port_clear_settings(
apictx.external_latencies.instrument_dropshot_handler(&rqctx, handler).await
}

/// Create a new BGP configuration.
/// Create a new BGP configuration
#[endpoint {
method = POST,
path = "/v1/system/networking/bgp",
Expand All @@ -2845,7 +2845,7 @@ async fn networking_bgp_config_create(
apictx.external_latencies.instrument_dropshot_handler(&rqctx, handler).await
}

/// Get BGP configurations.
/// List BGP configurations
#[endpoint {
method = GET,
path = "/v1/system/networking/bgp",
Expand Down Expand Up @@ -2900,7 +2900,7 @@ async fn networking_bgp_status(
}

//TODO pagination? the normal by-name/by-id stuff does not work here
/// Get imported IPv4 BGP routes.
/// Get imported IPv4 BGP routes
#[endpoint {
method = GET,
path = "/v1/system/networking/bgp-routes-ipv4",
Expand All @@ -2921,7 +2921,7 @@ async fn networking_bgp_imported_routes_ipv4(
apictx.external_latencies.instrument_dropshot_handler(&rqctx, handler).await
}

/// Delete a BGP configuration.
/// Delete a BGP configuration
#[endpoint {
method = DELETE,
path = "/v1/system/networking/bgp",
Expand All @@ -2942,7 +2942,7 @@ async fn networking_bgp_config_delete(
apictx.external_latencies.instrument_dropshot_handler(&rqctx, handler).await
}

/// Create a new BGP announce set.
/// Create a new BGP announce set
#[endpoint {
method = POST,
path = "/v1/system/networking/bgp-announce",
Expand All @@ -2964,7 +2964,7 @@ async fn networking_bgp_announce_set_create(
}

//TODO pagination? the normal by-name/by-id stuff does not work here
/// Get originated routes for a given BGP configuration.
/// Get originated routes for a BGP configuration
#[endpoint {
method = GET,
path = "/v1/system/networking/bgp-announce",
Expand All @@ -2990,7 +2990,7 @@ async fn networking_bgp_announce_set_list(
apictx.external_latencies.instrument_dropshot_handler(&rqctx, handler).await
}

/// Delete a BGP announce set.
/// Delete a BGP announce set
#[endpoint {
method = DELETE,
path = "/v1/system/networking/bgp-announce",
Expand Down
16 changes: 8 additions & 8 deletions openapi/nexus.json
Original file line number Diff line number Diff line change
Expand Up @@ -5170,7 +5170,7 @@
"tags": [
"system/networking"
],
"summary": "Get BGP configurations.",
"summary": "List BGP configurations",
"operationId": "networking_bgp_config_list",
"parameters": [
{
Expand Down Expand Up @@ -5235,7 +5235,7 @@
"tags": [
"system/networking"
],
"summary": "Create a new BGP configuration.",
"summary": "Create a new BGP configuration",
"operationId": "networking_bgp_config_create",
"requestBody": {
"content": {
Expand Down Expand Up @@ -5270,7 +5270,7 @@
"tags": [
"system/networking"
],
"summary": "Delete a BGP configuration.",
"summary": "Delete a BGP configuration",
"operationId": "networking_bgp_config_delete",
"parameters": [
{
Expand Down Expand Up @@ -5301,7 +5301,7 @@
"tags": [
"system/networking"
],
"summary": "Get originated routes for a given BGP configuration.",
"summary": "Get originated routes for a BGP configuration",
"operationId": "networking_bgp_announce_set_list",
"parameters": [
{
Expand Down Expand Up @@ -5341,7 +5341,7 @@
"tags": [
"system/networking"
],
"summary": "Create a new BGP announce set.",
"summary": "Create a new BGP announce set",
"operationId": "networking_bgp_announce_set_create",
"requestBody": {
"content": {
Expand Down Expand Up @@ -5376,7 +5376,7 @@
"tags": [
"system/networking"
],
"summary": "Delete a BGP announce set.",
"summary": "Delete a BGP announce set",
"operationId": "networking_bgp_announce_set_delete",
"parameters": [
{
Expand Down Expand Up @@ -5407,7 +5407,7 @@
"tags": [
"system/networking"
],
"summary": "Get imported IPv4 BGP routes.",
"summary": "Get imported IPv4 BGP routes",
"operationId": "networking_bgp_imported_routes_ipv4",
"parameters": [
{
Expand Down Expand Up @@ -5482,7 +5482,7 @@
"tags": [
"system/networking"
],
"summary": "Get loopback addresses, optionally filtering by id",
"summary": "List loopback addresses",
"operationId": "networking_loopback_address_list",
"parameters": [
{
Expand Down

0 comments on commit 354facd

Please sign in to comment.