Skip to content

Commit d7004ef

Browse files
feat(s2s_vpn): add support for v1alpha1 (#5225)
Co-authored-by: Rémy Léone <[email protected]>
1 parent f86d1d4 commit d7004ef

File tree

36 files changed

+1401
-0
lines changed

36 files changed

+1401
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Create a connection.
4+
5+
USAGE:
6+
scw s2s-vpn connection create [arg=value ...]
7+
8+
ARGS:
9+
[project-id] Project ID to use. If none is passed the default project ID will be used
10+
name Name of the connection
11+
[tags.{index}] List of tags to apply to the connection
12+
[is-ipv6] Defines IP version of the IPSec Tunnel
13+
initiation-policy Who initiates the IPsec tunnel (unknown_initiation_policy | vpn_gateway | customer_gateway)
14+
[ikev2-ciphers.{index}.encryption] (unknown_encryption | aes128 | aes192 | aes256 | aes128gcm | aes192gcm | aes256gcm | aes128ccm | aes256ccm | chacha20poly1305)
15+
[ikev2-ciphers.{index}.integrity] (unknown_integrity | sha256 | sha384 | sha512)
16+
[ikev2-ciphers.{index}.dh-group] (unknown_dhgroup | modp2048 | modp3072 | modp4096 | ecp256 | ecp384 | ecp521 | curve25519)
17+
[esp-ciphers.{index}.encryption] (unknown_encryption | aes128 | aes192 | aes256 | aes128gcm | aes192gcm | aes256gcm | aes128ccm | aes256ccm | chacha20poly1305)
18+
[esp-ciphers.{index}.integrity] (unknown_integrity | sha256 | sha384 | sha512)
19+
[esp-ciphers.{index}.dh-group] (unknown_dhgroup | modp2048 | modp3072 | modp4096 | ecp256 | ecp384 | ecp521 | curve25519)
20+
[enable-route-propagation] Defines whether route propagation is enabled or not.
21+
vpn-gateway-id ID of the VPN gateway to attach to the connection
22+
customer-gateway-id ID of the customer gateway to attach to the connection
23+
[bgp-config-ipv4.routing-policy-id]
24+
[bgp-config-ipv4.private-ip]
25+
[bgp-config-ipv4.peer-private-ip]
26+
[bgp-config-ipv6.routing-policy-id]
27+
[bgp-config-ipv6.private-ip]
28+
[bgp-config-ipv6.peer-private-ip]
29+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
30+
31+
FLAGS:
32+
-h, --help help for create
33+
34+
GLOBAL FLAGS:
35+
-c, --config string The path to the config file
36+
-D, --debug Enable debug mode
37+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
38+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Delete an existing connection, specified by its connection ID.
4+
5+
USAGE:
6+
scw s2s-vpn connection delete <connection-id ...> [arg=value ...]
7+
8+
ARGS:
9+
connection-id ID of the connection to delete
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
11+
12+
FLAGS:
13+
-h, --help help for delete
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Detach an existing routing policy from a connection, specified by its connection ID.
4+
5+
USAGE:
6+
scw s2s-vpn connection detach-routing-policy <connection-id ...> [arg=value ...]
7+
8+
ARGS:
9+
connection-id ID of the connection from which routing policy is being detached
10+
[routing-policy-v4] ID of the routing policy to detach from the BGP IPv4 session
11+
[routing-policy-v6] ID of the routing policy to detach from the BGP IPv6 session
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
13+
14+
FLAGS:
15+
-h, --help help for detach-routing-policy
16+
17+
GLOBAL FLAGS:
18+
-c, --config string The path to the config file
19+
-D, --debug Enable debug mode
20+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
21+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Prevent any prefixes from being announced in the BGP session. Traffic will not be able to flow over the VPN Gateway until route propagation is re-enabled.
4+
5+
USAGE:
6+
scw s2s-vpn connection disable-route-propagation <connection-id ...> [arg=value ...]
7+
8+
ARGS:
9+
connection-id ID of the connection on which to disable route propagation
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
11+
12+
FLAGS:
13+
-h, --help help for disable-route-propagation
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Enable all allowed prefixes (defined in a routing policy) to be announced in the BGP session. This allows traffic to flow between the attached VPC and the on-premises infrastructure along the announced routes. Note that by default, even when route propagation is enabled, all routes are blocked. It is essential to attach a routing policy to define the ranges of routes to announce.
4+
5+
USAGE:
6+
scw s2s-vpn connection enable-route-propagation <connection-id ...> [arg=value ...]
7+
8+
ARGS:
9+
connection-id ID of the connection on which to enable route propagation
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
11+
12+
FLAGS:
13+
-h, --help help for enable-route-propagation
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Get a connection for the given connection ID. The response object includes information about the connection's various configuration details.
4+
5+
USAGE:
6+
scw s2s-vpn connection get <connection-id ...> [arg=value ...]
7+
8+
ARGS:
9+
connection-id ID of the requested connection
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
11+
12+
FLAGS:
13+
-h, --help help for get
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
List all your connections. A number of filters are available, including Project ID, name, tags and status.
4+
5+
USAGE:
6+
scw s2s-vpn connection list [arg=value ...]
7+
8+
ARGS:
9+
[order-by] Order in which to return results (created_at_asc | created_at_desc | name_asc | name_desc | status_asc | status_desc)
10+
[project-id] Project ID to filter for
11+
[name] Connection name to filter for
12+
[tags.{index}] Tags to filter for
13+
[statuses.{index}] Connection statuses to filter for (unknown_status | active | limited_connectivity | down | locked)
14+
[is-ipv6] Filter connections with IP version of IPSec tunnel
15+
[routing-policy-ids.{index}] Filter for connections using these routing policies
16+
[route-propagation-enabled] Filter for connections with route propagation enabled
17+
[vpn-gateway-ids.{index}] Filter for connections attached to these VPN gateways
18+
[customer-gateway-ids.{index}] Filter for connections attached to these customer gateways
19+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
20+
21+
FLAGS:
22+
-h, --help help for list
23+
24+
GLOBAL FLAGS:
25+
-c, --config string The path to the config file
26+
-D, --debug Enable debug mode
27+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
28+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Renew pre-shared key for a given connection.
4+
5+
USAGE:
6+
scw s2s-vpn connection renew-psk <connection-id ...> [arg=value ...]
7+
8+
ARGS:
9+
connection-id ID of the connection to renew the PSK
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
11+
12+
FLAGS:
13+
-h, --help help for renew-psk
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Set a new routing policy on a connection, overriding the existing one if present, specified by its connection ID.
4+
5+
USAGE:
6+
scw s2s-vpn connection set-routing-policy <connection-id ...> [arg=value ...]
7+
8+
ARGS:
9+
connection-id ID of the connection whose routing policy is being updated
10+
[routing-policy-v4] ID of the routing policy to set for the BGP IPv4 session
11+
[routing-policy-v6] ID of the routing policy to set for the BGP IPv6 session
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
13+
14+
FLAGS:
15+
-h, --help help for set-routing-policy
16+
17+
GLOBAL FLAGS:
18+
-c, --config string The path to the config file
19+
-D, --debug Enable debug mode
20+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
21+
-p, --profile string The config profile to use
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Update an existing connection, specified by its connection ID.
4+
5+
USAGE:
6+
scw s2s-vpn connection update <connection-id ...> [arg=value ...]
7+
8+
ARGS:
9+
connection-id ID of the connection to update
10+
[name] Name of the connection
11+
[tags.{index}] List of tags to apply to the connection
12+
[initiation-policy] Who initiates the IPsec tunnel (unknown_initiation_policy | vpn_gateway | customer_gateway)
13+
[ikev2-ciphers.{index}.encryption] (unknown_encryption | aes128 | aes192 | aes256 | aes128gcm | aes192gcm | aes256gcm | aes128ccm | aes256ccm | chacha20poly1305)
14+
[ikev2-ciphers.{index}.integrity] (unknown_integrity | sha256 | sha384 | sha512)
15+
[ikev2-ciphers.{index}.dh-group] (unknown_dhgroup | modp2048 | modp3072 | modp4096 | ecp256 | ecp384 | ecp521 | curve25519)
16+
[esp-ciphers.{index}.encryption] (unknown_encryption | aes128 | aes192 | aes256 | aes128gcm | aes192gcm | aes256gcm | aes128ccm | aes256ccm | chacha20poly1305)
17+
[esp-ciphers.{index}.integrity] (unknown_integrity | sha256 | sha384 | sha512)
18+
[esp-ciphers.{index}.dh-group] (unknown_dhgroup | modp2048 | modp3072 | modp4096 | ecp256 | ecp384 | ecp521 | curve25519)
19+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
20+
21+
FLAGS:
22+
-h, --help help for update
23+
24+
GLOBAL FLAGS:
25+
-c, --config string The path to the config file
26+
-D, --debug Enable debug mode
27+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
28+
-p, --profile string The config profile to use

0 commit comments

Comments
 (0)