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:
parent
d4e94f7a15
commit
7442ff8b09
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -47,7 +47,7 @@ Device selectors can be used to configure bonded interfaces:
|
||||
machine:
|
||||
...
|
||||
network:
|
||||
intefaces:
|
||||
interfaces:
|
||||
- interface: bond0
|
||||
bond:
|
||||
mode: balance-rr
|
||||
|
@ -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
|
||||
|
@ -47,7 +47,7 @@ Device selectors can be used to configure bonded interfaces:
|
||||
machine:
|
||||
...
|
||||
network:
|
||||
intefaces:
|
||||
interfaces:
|
||||
- interface: bond0
|
||||
bond:
|
||||
mode: balance-rr
|
||||
|
Loading…
x
Reference in New Issue
Block a user