fix: mark DigitalOcean anchor IP as scope link

This excludes it out of the `NodeAddress`.

Needs extra testing to confirm that it actually still works as anchor
IP.

Fixes #6760

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
This commit is contained in:
Andrey Smirnov 2023-01-23 16:45:40 +04:00
parent bb4937f1b3
commit aa9f66c1c8
No known key found for this signature in database
GPG Key ID: 7B26396447AB6DFD
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ func (d *DigitalOcean) ParseMetadata(metadata *MetadataConfig) (*runtime.Platfor
ConfigLayer: network.ConfigPlatform, ConfigLayer: network.ConfigPlatform,
LinkName: "eth0", LinkName: "eth0",
Address: ifAddr, Address: ifAddr,
Scope: nethelpers.ScopeGlobal, Scope: nethelpers.ScopeLink,
Flags: nethelpers.AddressFlags(nethelpers.AddressPermanent), Flags: nethelpers.AddressFlags(nethelpers.AddressPermanent),
Family: nethelpers.FamilyInet4, Family: nethelpers.FamilyInet4,
}, },

View File

@ -14,7 +14,7 @@ addresses:
- address: 10.18.0.5/16 - address: 10.18.0.5/16
linkName: eth0 linkName: eth0
family: inet4 family: inet4
scope: global scope: link
flags: permanent flags: permanent
layer: platform layer: platform
- address: 10.133.0.2/16 - address: 10.133.0.2/16