Skip to content

Commit 4c4a814

Browse files
felix-kaestnernikatza
authored andcommitted
Fix typos
1 parent 3e225a9 commit 4c4a814

File tree

10 files changed

+25
-16
lines changed

10 files changed

+25
-16
lines changed

.typos.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
[default.extend-words]
5+
ser = "ser"
6+
otu = "otu"
7+
# Typo in name used by Cisco NX-OS for a configurable property.
8+
# See: https://pubhub.devnetcloud.com/media/dme-docs-10-4-3/docs/System/snmp%3ACommSecP/#configurable-properties
9+
acess = "acess"
10+
# See: https://github.com/openconfig/public/pull/1423
11+
entitites = "entitites"
12+
mininum = "mininum"
13+
specifc = "specifc"
514

615
[files]
716
extend-exclude = [

api/core/v1alpha1/acl_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type AccessControlListSpec struct {
2020
// +optional
2121
ProviderConfigRef *TypedLocalObjectReference `json:"providerConfigRef,omitempty"`
2222

23-
// Name is the indentifier of the AccessControlList on the device.
23+
// Name is the identifier of the AccessControlList on the device.
2424
// Immutable.
2525
// +required
2626
// +kubebuilder:validation:MinLength=1

charts/network-operator/templates/crd/networking.metal.ironcore.dev_accesscontrollists.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ spec:
141141
x-kubernetes-list-type: map
142142
name:
143143
description: |-
144-
Name is the indentifier of the AccessControlList on the device.
144+
Name is the identifier of the AccessControlList on the device.
145145
Immutable.
146146
maxLength: 63
147147
minLength: 1

config/crd/bases/networking.metal.ironcore.dev_accesscontrollists.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ spec:
135135
x-kubernetes-list-type: map
136136
name:
137137
description: |-
138-
Name is the indentifier of the AccessControlList on the device.
138+
Name is the identifier of the AccessControlList on the device.
139139
Immutable.
140140
maxLength: 63
141141
minLength: 1

internal/provider/cisco/gnmiext/v2/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type Keyed[K comparable] interface {
2121
// List represents a YANG list node as a map in Go, ensuring order-independent
2222
// comparison while marshaling to/from JSON arrays.
2323
//
24-
// YANG list nodes are uniquely identified by their key leafs, and the ordering
24+
// YANG list nodes are uniquely identified by their key leaves, and the ordering
2525
// of entries does not matter. By using a map internally, reflect.DeepEqual will
2626
// correctly compare two List instances regardless of insertion order.
2727
//

internal/provider/cisco/nxos/ospf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ type AdjChangeLogLevel string
161161

162162
const (
163163
AdjChangeLogLevelBrief AdjChangeLogLevel = "brief"
164-
AdjChangeLogLevelDefail AdjChangeLogLevel = "detail"
164+
AdjChangeLogLevelDetail AdjChangeLogLevel = "detail"
165165
AdjChangeLogLevelNone AdjChangeLogLevel = "none"
166166
)
167167

internal/provider/cisco/nxos/provider.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,10 +1348,10 @@ func (p *Provider) EnsureNVE(ctx context.Context, req *NVERequest) error {
13481348

13491349
type NXOSPF struct {
13501350
// PropagateDefaultRoute is equivalent to the CLI command `default-information originate`
1351-
ProgateDefaultRoute *bool
1351+
PropagateDefaultRoute *bool
13521352
// RedistributionConfigs is a list of redistribution configurations for the OSPF process.
13531353
RedistributionConfigs []RedistributionConfig
1354-
// Distance is the adminitrative distance value (1-255) for OSPF routes. Cisco's default is 110.
1354+
// Distance is the administrative distance value (1-255) for OSPF routes. Cisco's default is 110.
13551355
Distance int16
13561356
// ReferenceBandwidthMbps is the reference bandwidth in Mbps used for OSPF calculations. By default Cisco NX-OS
13571357
// assigns a cost that is the configured reference bandwidth divided by the interface bandwidth. The
@@ -1454,9 +1454,9 @@ func (p *Provider) EnsureOSPF(ctx context.Context, req *provider.EnsureOSPFReque
14541454
dom.InterleakItems.InterLeakPList.Set(rd)
14551455
}
14561456

1457-
if cfg.ProgateDefaultRoute != nil {
1457+
if cfg.PropagateDefaultRoute != nil {
14581458
dom.DefrtleakItems.Always = "no"
1459-
if *cfg.ProgateDefaultRoute {
1459+
if *cfg.PropagateDefaultRoute {
14601460
dom.DefrtleakItems.Always = "yes"
14611461
}
14621462
}
@@ -1780,7 +1780,7 @@ func (p *Provider) EnsureSNMP(ctx context.Context, req *provider.EnsureSNMPReque
17801780
if c.Group != "" {
17811781
comm.GrpName = c.Group
17821782
}
1783-
comm.CommAcess = "unspecified"
1783+
comm.CommAccess = "unspecified"
17841784
comm.ACLItems.UseACLName = c.ACLName
17851785
communities.CommSecPList.Set(comm)
17861786
}

internal/provider/cisco/nxos/snmp.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ func (*SNMPCommunityItems) XPath() string {
103103
}
104104

105105
type SNMPCommunity struct {
106-
CommAcess string `json:"commAcess"`
107-
GrpName string `json:"grpName"`
108-
Name string `json:"name"`
109-
ACLItems struct {
106+
CommAccess string `json:"commAcess"`
107+
GrpName string `json:"grpName"`
108+
Name string `json:"name"`
109+
ACLItems struct {
110110
UseACLName string `json:"useAclName,omitempty"`
111111
} `json:"acl-items,omitzero"`
112112
}

internal/provider/cisco/nxos/snmp_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func init() {
1919
hosts.HostList.Set(host)
2020
Register("snmp_host", hosts)
2121

22-
comm := &SNMPCommunity{Name: "snmpcollector", CommAcess: "unspecified", GrpName: "network-operator"}
22+
comm := &SNMPCommunity{Name: "snmpcollector", CommAccess: "unspecified", GrpName: "network-operator"}
2323
comm.ACLItems.UseACLName = "TEST-ACL"
2424
items := &SNMPCommunityItems{}
2525
items.CommSecPList.Set(comm)

internal/provider/cisco/nxos/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func (s Scrypt) Encode(password string) (string, PwdEncryptType, error) {
147147
return pwd, PwdEncryptTypeScrypt, nil
148148
}
149149

150-
// CiscoEncoding is the non-stanard, not documented alphabet used by Cisco for their
150+
// CiscoEncoding is the non-standard, not documented alphabet used by Cisco for their
151151
// base64 encoding.
152152
//
153153
// Taken from: https://github.com/BrettVerney/ciscoPWDhasher/blob/master/CiscoPWDhasher/__init__.py#L8-L11

0 commit comments

Comments
 (0)