-
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.
feat: add support for CI Network config in nocloud
Fixes #9351 Signed-off-by: ekarlso <endre.karlson@gmail.com> Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
- Loading branch information
Showing
5 changed files
with
163 additions
and
15 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
50 changes: 50 additions & 0 deletions
50
...l/app/machined/pkg/runtime/v1alpha1/platform/nocloud/testdata/metadata-v2-cloud-init.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,50 @@ | ||
network: | ||
version: 2 | ||
ethernets: | ||
eth0: | ||
match: | ||
macaddress: "00:20:6e:1f:f9:a8" | ||
dhcp4: true | ||
addresses: | ||
- 192.168.14.2/24 | ||
- 2001:1::1/64 | ||
gateway4: 192.168.14.1 | ||
gateway6: 2001:1::2 | ||
nameservers: | ||
search: [foo.local, bar.local] | ||
addresses: [8.8.8.8] | ||
|
||
ext1: | ||
match: | ||
macaddress: 68:05:ca:b8:f1:f8 | ||
ext2: | ||
match: | ||
macaddress: 68:05:ca:b8:f1:f9 | ||
|
||
bonds: | ||
bond0: | ||
interfaces: | ||
- ext1 | ||
- ext2 | ||
macaddress: e4:3d:1a:4d:6a:28 | ||
mtu: 1500 | ||
parameters: | ||
mode: 802.3ad | ||
mii-monitor-interval: 100 | ||
down-delay: 200 | ||
up-delay: 200 | ||
lacp-rate: fast | ||
transmit-hash-policy: layer3+4 | ||
addresses: | ||
- 10.10.4.140/29 | ||
nameservers: | ||
addresses: | ||
- 1.1.1.1 | ||
- 2.2.2.2 | ||
routes: | ||
- to: 10.0.0.0/8 | ||
via: 10.10.4.147 | ||
- to: 192.168.0.0/16 | ||
via: 10.10.4.147 | ||
- to: 188.42.208.0/21 | ||
via: 10.10.4.147 |
49 changes: 49 additions & 0 deletions
49
...rnal/app/machined/pkg/runtime/v1alpha1/platform/nocloud/testdata/metadata-v2-nocloud.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,49 @@ | ||
version: 2 | ||
ethernets: | ||
eth0: | ||
match: | ||
macaddress: "00:20:6e:1f:f9:a8" | ||
dhcp4: true | ||
addresses: | ||
- 192.168.14.2/24 | ||
- 2001:1::1/64 | ||
gateway4: 192.168.14.1 | ||
gateway6: 2001:1::2 | ||
nameservers: | ||
search: [foo.local, bar.local] | ||
addresses: [8.8.8.8] | ||
|
||
ext1: | ||
match: | ||
macaddress: 68:05:ca:b8:f1:f8 | ||
ext2: | ||
match: | ||
macaddress: 68:05:ca:b8:f1:f9 | ||
|
||
bonds: | ||
bond0: | ||
interfaces: | ||
- ext1 | ||
- ext2 | ||
macaddress: e4:3d:1a:4d:6a:28 | ||
mtu: 1500 | ||
parameters: | ||
mode: 802.3ad | ||
mii-monitor-interval: 100 | ||
down-delay: 200 | ||
up-delay: 200 | ||
lacp-rate: fast | ||
transmit-hash-policy: layer3+4 | ||
addresses: | ||
- 10.10.4.140/29 | ||
nameservers: | ||
addresses: | ||
- 1.1.1.1 | ||
- 2.2.2.2 | ||
routes: | ||
- to: 10.0.0.0/8 | ||
via: 10.10.4.147 | ||
- to: 192.168.0.0/16 | ||
via: 10.10.4.147 | ||
- to: 188.42.208.0/21 | ||
via: 10.10.4.147 |