Skip to content

Commit

Permalink
fix: mark DigitalOcean anchor IP as scope link
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
smira committed Jan 23, 2023
1 parent bb4937f commit aa9f66c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (d *DigitalOcean) ParseMetadata(metadata *MetadataConfig) (*runtime.Platfor
ConfigLayer: network.ConfigPlatform,
LinkName: "eth0",
Address: ifAddr,
Scope: nethelpers.ScopeGlobal,
Scope: nethelpers.ScopeLink,
Flags: nethelpers.AddressFlags(nethelpers.AddressPermanent),
Family: nethelpers.FamilyInet4,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ addresses:
- address: 10.18.0.5/16
linkName: eth0
family: inet4
scope: global
scope: link
flags: permanent
layer: platform
- address: 10.133.0.2/16
Expand Down

0 comments on commit aa9f66c

Please sign in to comment.