mirror of
https://github.com/siderolabs/talos.git
synced 2025-12-11 12:31:44 +01:00
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:
parent
bb4937f1b3
commit
aa9f66c1c8
@ -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,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user