Skip to content

Commit d4b45fc

Browse files
authored
feat(interlink): add connection & revamp doc (#4618)
1 parent aa8fdae commit d4b45fc

12 files changed

+118
-58
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Connection commands.
4+
5+
USAGE:
6+
scw interlink connection
7+
8+
FLAGS:
9+
-h, --help help for connection
10+
11+
GLOBAL FLAGS:
12+
-c, --config string The path to the config file
13+
-D, --debug Enable debug mode
14+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
15+
-p, --profile string The config profile to use

cmd/scw/testdata/test-all-usage-interlink-link-create-usage.golden

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Create a link (InterLink connection) in a given PoP, specifying its various configuration details. For the moment only hosted links (faciliated by partners) are available, though in the future dedicated and shared links will also be possible.
3+
Create a link (InterLink session / logical InterLink resource) in a given PoP, specifying its various configuration details. Links can either be hosted (faciliated by partners' shared physical connections) or self-hosted (for users who have purchased a dedicated physical connection).
44

55
USAGE:
66
scw interlink link create [arg=value ...]
@@ -10,10 +10,9 @@ ARGS:
1010
name Name of the link
1111
[tags.{index}] List of tags to apply to the link
1212
pop-id PoP (location) where the link will be created
13-
bandwidth-mbps Desired bandwidth for the link. Must be compatible with available link bandwidths and remaining bandwidth capacity of the port
14-
[dedicated] If true, a dedicated link (1 link per port, dedicated to one customer) will be crated. It is not necessary to specify a `port_id` or `partner_id`. A new port will created and assigned to the link. Note that Scaleway has not yet enabled the creation of dedicated links, this field is reserved for future use.
15-
[port-id] If set, a shared link (N links per port, one of which is this customer's port) will be created. As the customer, specify the ID of the port you already have for this link. Note that shared links are not currently available. Note that Scaleway has not yet enabled the creation of shared links, this field is reserved for future use.
16-
[partner-id] If set, a hosted link (N links per port on a partner port) will be created. Specify the ID of the chosen partner, who already has a shareable port with available bandwidth. Note that this is currently the only type of link offered by Scaleway, and therefore this field must be set when creating a link.
13+
bandwidth-mbps Desired bandwidth for the link. Must be compatible with available link bandwidths and remaining bandwidth capacity of the connection
14+
[connection-id] If set, creates a self-hosted link using this dedicated physical connection. As the customer, specify the ID of the physical connection you already have for this link.
15+
[partner-id] If set, creates a hosted link on a partner's connection. Specify the ID of the chosen partner, who already has a shared connection with available bandwidth.
1716
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1817

1918
FLAGS:

cmd/scw/testdata/test-all-usage-interlink-link-get-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Get a link (InterLink connection) for the given link ID. The response object includes information about the link's various configuration details.
3+
Get a link (InterLink session / logical InterLink resource) for the given link ID. The response object includes information about the link's various configuration details.
44

55
USAGE:
66
scw interlink link get <link-id ...> [arg=value ...]

cmd/scw/testdata/test-all-usage-interlink-link-list-usage.golden

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ ARGS:
1313
[status] Link status to filter for (unknown_link_status | configuring | failed | requested | refused | expired | provisioning | active | limited_connectivity | all_down | deprovisioning | deleted | locked)
1414
[bgp-v4-status] BGP IPv4 status to filter for (unknown_bgp_status | up | down)
1515
[bgp-v6-status] BGP IPv6 status to filter for (unknown_bgp_status | up | down)
16-
[pop-id] Filter for links attached to this PoP (via ports)
16+
[pop-id] Filter for links attached to this PoP (via connections)
1717
[bandwidth-mbps] Filter for link bandwidth (in Mbps)
1818
[partner-id] Filter for links hosted by this partner
1919
[vpc-id] Filter for links attached to this VPC
2020
[routing-policy-id] Filter for links using this routing policy
2121
[pairing-key] Filter for the link with this pairing_key
22+
[kind] Filter for hosted or self-hosted links (hosted | self_hosted)
23+
[connection-id] Filter for links self-hosted on this connection
2224
[organization-id] Organization ID to filter for
2325
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
2426

cmd/scw/testdata/test-all-usage-interlink-link-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Links commands.
3+
Link commands.
44

55
USAGE:
66
scw interlink link <command>

cmd/scw/testdata/test-all-usage-interlink-partner-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ USAGE:
77

88
ARGS:
99
[order-by] Order in which to return results (name_asc | name_desc)
10-
[pop-ids.{index}] Filter for partners present (offering a port) in one of these PoPs
10+
[pop-ids.{index}] Filter for partners present (offering a connection) in one of these PoPs
1111
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
1212

1313
FLAGS:

cmd/scw/testdata/test-all-usage-interlink-partner-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Partners commands.
3+
Partner commands.
44

55
USAGE:
66
scw interlink partner <command>

cmd/scw/testdata/test-all-usage-interlink-pop-list-usage.golden

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ ARGS:
99
[order-by] Order in which to return results (name_asc | name_desc)
1010
[name] PoP name to filter for
1111
[hosting-provider-name] Hosting provider name to filter for
12-
[partner-id] Filter for PoPs hosting an available shared port from this partner
13-
[link-bandwidth-mbps] Filter for PoPs with a shared port allowing this bandwidth size. Note that we cannot guarantee that PoPs returned will have available capacity.
12+
[partner-id] Filter for PoPs hosting an available shared connection from this partner
13+
[link-bandwidth-mbps] Filter for PoPs with a shared connection allowing this bandwidth size. Note that we cannot guarantee that PoPs returned will have available capacity.
14+
[dedicated-available] Filter for PoPs with a dedicated connection available for self-hosted links.
1415
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
1516

1617
FLAGS:

cmd/scw/testdata/test-all-usage-interlink-routing-policy-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Routing policies commands.
3+
Routing policy commands.
44

55
USAGE:
66
scw interlink routing-policy <command>

cmd/scw/testdata/test-all-usage-interlink-usage.golden

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ USAGE:
66
scw interlink <command>
77

88
AVAILABLE COMMANDS:
9-
link Links commands
10-
partner Partners commands
9+
connection Connection commands
10+
link Link commands
11+
partner Partner commands
1112
pop PoP commands
12-
routing-policy Routing policies commands
13+
routing-policy Routing policy commands
1314

1415
FLAGS:
1516
-h, --help help for interlink

docs/commands/interlink.md

Lines changed: 36 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# Documentation for `scw interlink`
33
This API allows you to manage your InterLink services.
44

5-
- [Links commands](#links-commands)
5+
- [Connection commands](#connection-commands)
6+
- [Link commands](#link-commands)
67
- [Attach a routing policy](#attach-a-routing-policy)
78
- [Attach a VPC](#attach-a-vpc)
89
- [Create a link](#create-a-link)
@@ -14,23 +15,37 @@ This API allows you to manage your InterLink services.
1415
- [Get a link](#get-a-link)
1516
- [List links](#list-links)
1617
- [Update a link](#update-a-link)
17-
- [Partners commands](#partners-commands)
18+
- [Partner commands](#partner-commands)
1819
- [Get a partner](#get-a-partner)
1920
- [List available partners](#list-available-partners)
2021
- [PoP commands](#pop-commands)
2122
- [Get a PoP](#get-a-pop)
2223
- [List PoPs](#list-pops)
23-
- [Routing policies commands](#routing-policies-commands)
24+
- [Routing policy commands](#routing-policy-commands)
2425
- [Create a routing policy](#create-a-routing-policy)
2526
- [Delete a routing policy](#delete-a-routing-policy)
2627
- [Get routing policy](#get-routing-policy)
2728
- [List routing policies](#list-routing-policies)
2829
- [Update a routing policy](#update-a-routing-policy)
2930

3031

31-
## Links commands
32+
## Connection commands
3233

33-
Links commands.
34+
Connection commands.
35+
36+
Connection commands.
37+
38+
**Usage:**
39+
40+
```
41+
scw interlink connection
42+
```
43+
44+
45+
46+
## Link commands
47+
48+
Link commands.
3449

3550

3651
### Attach a routing policy
@@ -77,7 +92,7 @@ scw interlink link attach_vpc <link-id ...> [arg=value ...]
7792

7893
### Create a link
7994

80-
Create a link (InterLink connection) in a given PoP, specifying its various configuration details. For the moment only hosted links (faciliated by partners) are available, though in the future dedicated and shared links will also be possible.
95+
Create a link (InterLink session / logical InterLink resource) in a given PoP, specifying its various configuration details. Links can either be hosted (faciliated by partners' shared physical connections) or self-hosted (for users who have purchased a dedicated physical connection).
8196

8297
**Usage:**
8398

@@ -94,10 +109,9 @@ scw interlink link create [arg=value ...]
94109
| name | Required | Name of the link |
95110
| tags.{index} | | List of tags to apply to the link |
96111
| pop-id | Required | PoP (location) where the link will be created |
97-
| bandwidth-mbps | Required | Desired bandwidth for the link. Must be compatible with available link bandwidths and remaining bandwidth capacity of the port |
98-
| dedicated | | If true, a dedicated link (1 link per port, dedicated to one customer) will be crated. It is not necessary to specify a `port_id` or `partner_id`. A new port will created and assigned to the link. Note that Scaleway has not yet enabled the creation of dedicated links, this field is reserved for future use. |
99-
| port-id | | If set, a shared link (N links per port, one of which is this customer's port) will be created. As the customer, specify the ID of the port you already have for this link. Note that shared links are not currently available. Note that Scaleway has not yet enabled the creation of shared links, this field is reserved for future use. |
100-
| partner-id | | If set, a hosted link (N links per port on a partner port) will be created. Specify the ID of the chosen partner, who already has a shareable port with available bandwidth. Note that this is currently the only type of link offered by Scaleway, and therefore this field must be set when creating a link. |
112+
| bandwidth-mbps | Required | Desired bandwidth for the link. Must be compatible with available link bandwidths and remaining bandwidth capacity of the connection |
113+
| connection-id | | If set, creates a self-hosted link using this dedicated physical connection. As the customer, specify the ID of the physical connection you already have for this link. |
114+
| partner-id | | If set, creates a hosted link on a partner's connection. Specify the ID of the chosen partner, who already has a shared connection with available bandwidth. |
101115
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
102116

103117

@@ -204,7 +218,7 @@ scw interlink link enable_propagation <link-id ...> [arg=value ...]
204218

205219
### Get a link
206220

207-
Get a link (InterLink connection) for the given link ID. The response object includes information about the link's various configuration details.
221+
Get a link (InterLink session / logical InterLink resource) for the given link ID. The response object includes information about the link's various configuration details.
208222

209223
**Usage:**
210224

@@ -244,12 +258,14 @@ scw interlink link list [arg=value ...]
244258
| status | One of: `unknown_link_status`, `configuring`, `failed`, `requested`, `refused`, `expired`, `provisioning`, `active`, `limited_connectivity`, `all_down`, `deprovisioning`, `deleted`, `locked` | Link status to filter for |
245259
| bgp-v4-status | One of: `unknown_bgp_status`, `up`, `down` | BGP IPv4 status to filter for |
246260
| bgp-v6-status | One of: `unknown_bgp_status`, `up`, `down` | BGP IPv6 status to filter for |
247-
| pop-id | | Filter for links attached to this PoP (via ports) |
261+
| pop-id | | Filter for links attached to this PoP (via connections) |
248262
| bandwidth-mbps | | Filter for link bandwidth (in Mbps) |
249263
| partner-id | | Filter for links hosted by this partner |
250264
| vpc-id | | Filter for links attached to this VPC |
251265
| routing-policy-id | | Filter for links using this routing policy |
252266
| pairing-key | | Filter for the link with this pairing_key |
267+
| kind | One of: `hosted`, `self_hosted` | Filter for hosted or self-hosted links |
268+
| connection-id | | Filter for links self-hosted on this connection |
253269
| organization-id | | Organization ID to filter for |
254270
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config |
255271

@@ -277,9 +293,9 @@ scw interlink link update <link-id ...> [arg=value ...]
277293

278294

279295

280-
## Partners commands
296+
## Partner commands
281297

282-
Partners commands.
298+
Partner commands.
283299

284300

285301
### Get a partner
@@ -318,7 +334,7 @@ scw interlink partner list [arg=value ...]
318334
| Name | | Description |
319335
|------|---|-------------|
320336
| order-by | One of: `name_asc`, `name_desc` | Order in which to return results |
321-
| pop-ids.{index} | | Filter for partners present (offering a port) in one of these PoPs |
337+
| pop-ids.{index} | | Filter for partners present (offering a connection) in one of these PoPs |
322338
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config |
323339

324340

@@ -366,15 +382,16 @@ scw interlink pop list [arg=value ...]
366382
| order-by | One of: `name_asc`, `name_desc` | Order in which to return results |
367383
| name | | PoP name to filter for |
368384
| hosting-provider-name | | Hosting provider name to filter for |
369-
| partner-id | | Filter for PoPs hosting an available shared port from this partner |
370-
| link-bandwidth-mbps | | Filter for PoPs with a shared port allowing this bandwidth size. Note that we cannot guarantee that PoPs returned will have available capacity. |
385+
| partner-id | | Filter for PoPs hosting an available shared connection from this partner |
386+
| link-bandwidth-mbps | | Filter for PoPs with a shared connection allowing this bandwidth size. Note that we cannot guarantee that PoPs returned will have available capacity. |
387+
| dedicated-available | | Filter for PoPs with a dedicated connection available for self-hosted links. |
371388
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config |
372389

373390

374391

375-
## Routing policies commands
392+
## Routing policy commands
376393

377-
Routing policies commands.
394+
Routing policy commands.
378395

379396

380397
### Create a routing policy

0 commit comments

Comments
 (0)