chore: fix typos inteface -> interface (docs and tests)

Fix typos.

Signed-off-by: Thomas Perronin <gecko.splinter@gmail.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
This commit is contained in:
Thomas Perronin 2023-04-30 09:30:36 +02:00 committed by Andrey Smirnov
parent d4e94f7a15
commit 7442ff8b09
No known key found for this signature in database
GPG Key ID: 7B26396447AB6DFD
7 changed files with 14 additions and 14 deletions

View File

@ -287,7 +287,7 @@ func (suite *LinkStatusSuite) TestDummyInterface() {
}
func (suite *LinkStatusSuite) TestBridgeInterface() {
bridgeInteface := suite.uniqueDummyInterface()
bridgeInterface := suite.uniqueDummyInterface()
conn, err := rtnetlink.Dial(nil)
suite.Require().NoError(err)
@ -302,7 +302,7 @@ func (suite *LinkStatusSuite) TestBridgeInterface() {
&rtnetlink.LinkMessage{
Type: unix.ARPHRD_ETHER,
Attributes: &rtnetlink.LinkAttributes{
Name: bridgeInteface,
Name: bridgeInterface,
Info: &rtnetlink.LinkInfo{
Kind: "bridge",
Data: bridgeData,
@ -312,7 +312,7 @@ func (suite *LinkStatusSuite) TestBridgeInterface() {
),
)
bridgeIface, err := net.InterfaceByName(bridgeInteface)
bridgeIface, err := net.InterfaceByName(bridgeInterface)
suite.Require().NoError(err)
defer conn.Link.Delete(uint32(bridgeIface.Index)) //nolint:errcheck
@ -321,7 +321,7 @@ func (suite *LinkStatusSuite) TestBridgeInterface() {
retry.Constant(3*time.Second, retry.WithUnits(100*time.Millisecond)).Retry(
func() error {
return suite.assertInterfaces(
[]string{bridgeInteface}, func(r *network.LinkStatus) error {
[]string{bridgeInterface}, func(r *network.LinkStatus) error {
suite.Assert().Equal("ether", r.TypedSpec().Type.String())
suite.Assert().True(r.TypedSpec().BridgeMaster.STP.Enabled)

View File

@ -80,7 +80,7 @@ Base machine configuration:
machine:
network:
interfaces:
- inteface: eth0
- interface: eth0
dhcp: false
addresses:
- 192.168.10.3/24
@ -122,7 +122,7 @@ Patched machine configuration:
machine:
network:
interfaces:
- inteface: eth0
- interface: eth0
dhcp: false
addresses:
- 192.168.10.3/24

View File

@ -80,7 +80,7 @@ Base machine configuration:
machine:
network:
interfaces:
- inteface: eth0
- interface: eth0
dhcp: false
addresses:
- 192.168.10.3/24
@ -122,7 +122,7 @@ Patched machine configuration:
machine:
network:
interfaces:
- inteface: eth0
- interface: eth0
dhcp: false
addresses:
- 192.168.10.3/24

View File

@ -81,7 +81,7 @@ Base machine configuration:
machine:
network:
interfaces:
- inteface: eth0
- interface: eth0
dhcp: false
addresses:
- 192.168.10.3/24
@ -123,7 +123,7 @@ Patched machine configuration:
machine:
network:
interfaces:
- inteface: eth0
- interface: eth0
dhcp: false
addresses:
- 192.168.10.3/24

View File

@ -47,7 +47,7 @@ Device selectors can be used to configure bonded interfaces:
machine:
...
network:
intefaces:
interfaces:
- interface: bond0
bond:
mode: balance-rr

View File

@ -81,7 +81,7 @@ Base machine configuration:
machine:
network:
interfaces:
- inteface: eth0
- interface: eth0
dhcp: false
addresses:
- 192.168.10.3/24
@ -123,7 +123,7 @@ Patched machine configuration:
machine:
network:
interfaces:
- inteface: eth0
- interface: eth0
dhcp: false
addresses:
- 192.168.10.3/24

View File

@ -47,7 +47,7 @@ Device selectors can be used to configure bonded interfaces:
machine:
...
network:
intefaces:
interfaces:
- interface: bond0
bond:
mode: balance-rr