Skip to content

Commit b95383d

Browse files
feat(vpcgw): add initial support for v1 (#2003)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 528a8e7 commit b95383d

File tree

49 files changed

+3994
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3994
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
DHCP configuration allows you to set parameters for assignment of IP addresses to devices on a Private Network attached to a VPC Public Gateway (subnet, lease time etc).
4+
5+
USAGE:
6+
scw vpc-gw dhcp <command>
7+
8+
AVAILABLE COMMANDS:
9+
create Create a DHCP configuration
10+
delete Delete a DHCP configuration
11+
get Get a DHCP configuration
12+
list List DHCP configurations
13+
update Update a DHCP configuration
14+
15+
FLAGS:
16+
-h, --help help for dhcp
17+
18+
GLOBAL FLAGS:
19+
-c, --config string The path to the config file
20+
-D, --debug Enable debug mode
21+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
22+
-p, --profile string The config profile to use
23+
24+
Use "scw vpc-gw dhcp [command] --help" for more information about a command.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Create a DHCP configuration.
4+
5+
USAGE:
6+
scw vpc-gw dhcp 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+
[subnet] Subnet for the DHCP server
11+
[address] Address of the DHCP server. This will be the gateway's address in the private network. Defaults to the first address of the subnet
12+
[pool-low] Low IP (included) of the dynamic address pool
13+
[pool-high] High IP (included) of the dynamic address pool
14+
[enable-dynamic] Whether to enable dynamic pooling of IPs
15+
[valid-lifetime.seconds]
16+
[valid-lifetime.nanos]
17+
[renew-timer.seconds]
18+
[renew-timer.nanos]
19+
[rebind-timer.seconds]
20+
[rebind-timer.nanos]
21+
[push-default-route] Whether the gateway should push a default route to DHCP clients or only hand out IPs. Defaults to true
22+
[push-dns-server] Whether the gateway should push custom DNS servers to clients
23+
[dns-servers-override.{index}] Override the DNS server list pushed to DHCP clients, instead of the gateway itself
24+
[dns-search.{index}] Additional DNS search paths
25+
[dns-local-name] TLD given to hosts in the Private Network
26+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)
27+
28+
FLAGS:
29+
-h, --help help for create
30+
31+
GLOBAL FLAGS:
32+
-c, --config string The path to the config file
33+
-D, --debug Enable debug mode
34+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
35+
-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 a DHCP configuration.
4+
5+
USAGE:
6+
scw vpc-gw dhcp delete <dhcpid ...> [arg=value ...]
7+
8+
ARGS:
9+
dhcpid DHCP config id to delete
10+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)
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+
Create a static DHCP reservation.
4+
5+
USAGE:
6+
scw vpc-gw dhcp-entry create [arg=value ...]
7+
8+
ARGS:
9+
[gateway-network-id] GatewayNetwork on which to create a DHCP reservation
10+
[mac-address] MAC address to give a static entry to
11+
[ip-address] IP address to give to the machine
12+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)
13+
14+
FLAGS:
15+
-h, --help help for create
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+
Delete a DHCP reservation.
4+
5+
USAGE:
6+
scw vpc-gw dhcp-entry delete <dhcp-entry-id ...> [arg=value ...]
7+
8+
ARGS:
9+
dhcp-entry-id DHCP entry ID to delete
10+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)
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: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Get DHCP entries.
4+
5+
USAGE:
6+
scw vpc-gw dhcp-entry get <dhcp-entry-id ...> [arg=value ...]
7+
8+
ARGS:
9+
dhcp-entry-id ID of the DHCP entry to fetch
10+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)
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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
List DHCP entries.
4+
5+
USAGE:
6+
scw vpc-gw dhcp-entry list [arg=value ...]
7+
8+
ARGS:
9+
[order-by] Order in which to return results (created_at_asc | created_at_desc | ip_address_asc | ip_address_desc | hostname_asc | hostname_desc)
10+
[gateway-network-id] Filter entries based on the gateway network they are on
11+
[mac-address] Filter entries on their MAC address
12+
[ip-address] Filter entries on their IP address
13+
[hostname] Filter entries on their hostname substring
14+
[type] Filter entries on their type (unknown | reservation | lease)
15+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)
16+
17+
FLAGS:
18+
-h, --help help for list
19+
20+
GLOBAL FLAGS:
21+
-c, --config string The path to the config file
22+
-D, --debug Enable debug mode
23+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
24+
-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 the list of DHCP reservations attached to a Gateway Network. Reservations are identified by their MAC address, and will sync the current DHCP entry list to the given list, creating, updating or deleting DHCP entries.
4+
5+
USAGE:
6+
scw vpc-gw dhcp-entry set [arg=value ...]
7+
8+
ARGS:
9+
[gateway-network-id] Gateway Network on which to set DHCP reservation list
10+
[dhcp-entries.{index}.mac-address] MAC address to give a static entry to
11+
[dhcp-entries.{index}.ip-address] IP address to give to the machine
12+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)
13+
14+
FLAGS:
15+
-h, --help help for set
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: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Update a DHCP entry.
4+
5+
USAGE:
6+
scw vpc-gw dhcp-entry update <dhcp-entry-id ...> [arg=value ...]
7+
8+
ARGS:
9+
dhcp-entry-id DHCP entry ID to update
10+
[ip-address] New IP address to give to the machine
11+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)
12+
13+
FLAGS:
14+
-h, --help help for update
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
DHCP entries hold both dynamic DHCP leases (IP addresses dynamically assigned by the gateway to instances) and static user-created DHCP reservations.
4+
5+
USAGE:
6+
scw vpc-gw dhcp-entry <command>
7+
8+
AVAILABLE COMMANDS:
9+
create Create a static DHCP reservation
10+
delete Delete a DHCP reservation
11+
get Get DHCP entries
12+
list List DHCP entries
13+
set Set all DHCP reservations on a Gateway Network
14+
update Update a DHCP entry
15+
16+
FLAGS:
17+
-h, --help help for dhcp-entry
18+
19+
GLOBAL FLAGS:
20+
-c, --config string The path to the config file
21+
-D, --debug Enable debug mode
22+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
23+
-p, --profile string The config profile to use
24+
25+
Use "scw vpc-gw dhcp-entry [command] --help" for more information about a command.

0 commit comments

Comments
 (0)