-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support legacy-style region values. Disable DHCPv4 for external interface when public IPv4 is disabled. Signed-off-by: Serge Logvinov <serge.logvinov@sinextra.dev> Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
- Loading branch information
1 parent
7acadc0
commit 77a4a4a
Showing
8 changed files
with
150 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
internal/app/machined/pkg/runtime/v1alpha1/platform/scaleway/testdata/expected-v3.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
addresses: | ||
- address: 2001:111:222:3333::1/64 | ||
linkName: eth0 | ||
family: inet6 | ||
scope: global | ||
flags: permanent | ||
layer: platform | ||
links: | ||
- name: eth0 | ||
logical: false | ||
up: true | ||
mtu: 0 | ||
kind: "" | ||
type: netrom | ||
layer: platform | ||
routes: | ||
- family: inet4 | ||
dst: 169.254.42.42/32 | ||
src: "" | ||
gateway: "" | ||
outLinkName: eth0 | ||
table: main | ||
priority: 4096 | ||
scope: link | ||
type: unicast | ||
flags: "" | ||
protocol: static | ||
layer: platform | ||
- family: inet6 | ||
dst: "" | ||
src: "" | ||
gateway: fe80::dc00:ff:fe12:3456 | ||
outLinkName: eth0 | ||
table: main | ||
priority: 2048 | ||
scope: global | ||
type: unicast | ||
flags: "" | ||
protocol: static | ||
layer: platform | ||
hostnames: | ||
- hostname: scw-talos | ||
domainname: "" | ||
layer: platform | ||
resolvers: [] | ||
timeServers: [] | ||
operators: [] | ||
externalIPs: | ||
- 2001:111:222:3333::1 | ||
metadata: | ||
platform: scaleway | ||
hostname: scw-talos | ||
region: nl-ams | ||
zone: nl-ams-1 | ||
instanceType: DEV1-S | ||
instanceId: 11111111-1111-1111-1111-111111111111 | ||
providerId: scaleway://instance/nl-ams-1/11111111-1111-1111-1111-111111111111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
internal/app/machined/pkg/runtime/v1alpha1/platform/scaleway/testdata/metadata-v3.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"id": "11111111-1111-1111-1111-111111111111", | ||
"name": "scw-talos", | ||
"commercial_type": "DEV1-S", | ||
"hostname": "scw-talos", | ||
"tags": [], | ||
"state_detail": "booted", | ||
"public_ip": { | ||
"id": "11111111-1111-1111-1111-111111111111", | ||
"address": "2001:111:222:3333::1", | ||
"dynamic": false | ||
}, | ||
"public_ips_v4": [], | ||
"public_ips_v6": [ | ||
{ | ||
"address": "2001:111:222:3333::1", | ||
"dynamic": false, | ||
"family": "inet6", | ||
"gateway": "fe80::dc00:ff:fe12:3456", | ||
"netmask": "64" | ||
} | ||
], | ||
"location": { | ||
"zone_id": "ams1" | ||
} | ||
} |