Skip to content

Commit 7a4b2b3

Browse files
committed
fix: update VIP config example
The "name" should be the IP address. See siderolabs/docs#256 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
1 parent 080efcb commit 7a4b2b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/machinery/config/types/network/layer2_vip.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func NewLayer2VIPConfigV1Alpha1(name string) *Layer2VIPConfigV1Alpha1 {
8383
}
8484

8585
func exampleLayer2VIPConfigV1Alpha1() *Layer2VIPConfigV1Alpha1 {
86-
cfg := NewLayer2VIPConfigV1Alpha1("int0")
86+
cfg := NewLayer2VIPConfigV1Alpha1("10.3.0.1")
8787
cfg.LinkName = "enp0s2"
8888

8989
return cfg

website/content/v1.13/reference/configuration/network/layer2vipconfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ title: Layer2VIPConfig
2020
{{< highlight yaml >}}
2121
apiVersion: v1alpha1
2222
kind: Layer2VIPConfig
23-
name: int0 # IP address to be advertised as a Layer 2 VIP.
23+
name: 10.3.0.1 # IP address to be advertised as a Layer 2 VIP.
2424
link: enp0s2 # Name of the link to assign the VIP to.
2525
{{< /highlight >}}
2626

0 commit comments

Comments
 (0)