Skip to content

Commit 26fc3f2

Browse files
committed
style: correct typos
1 parent 455a80e commit 26fc3f2

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Everoute provides network and security services for the following platforms:
1717
* Hybrid Cloud
1818
* Legacy virtualized data center
1919

20-
It can be intergated within these platforms easily.
20+
It can be integrated within these platforms easily.
2121

2222
## Architecture
2323

pkg/agent/datapath/clsBridge.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func (c *ClsBridge) initForwardingTable() error {
185185
return nil
186186
}
187187

188-
func (c *ClsBridge) initOuputTable(sw *ofctrl.OFSwitch) error {
188+
func (c *ClsBridge) initOutputTable(sw *ofctrl.OFSwitch) error {
189189
localBrName := strings.TrimSuffix(c.name, "-cls")
190190
// clsBridgeOutputTable floodingOutputFlow
191191
floodingOutputFlow, _ := c.clsBridgeOutputTable.NewFlow(ofctrl.FlowMatch{
@@ -224,7 +224,7 @@ func (c *ClsBridge) initOuputTable(sw *ofctrl.OFSwitch) error {
224224
}
225225

226226
// clsBridgeOutputTable learnedLocalToRemoteOuputFlow
227-
learnedLocalToRemoteOuputFlow, _ := c.clsBridgeOutputTable.NewFlow(ofctrl.FlowMatch{
227+
learnedLocalToRemoteOutputFlow, _ := c.clsBridgeOutputTable.NewFlow(ofctrl.FlowMatch{
228228
Priority: NORMAL_MATCH_FLOW_PRIORITY,
229229
Regs: []*ofctrl.NXRegister{
230230
{
@@ -235,8 +235,8 @@ func (c *ClsBridge) initOuputTable(sw *ofctrl.OFSwitch) error {
235235
},
236236
})
237237
outputPort, _ = sw.OutputPort(c.datapathManager.BridgeChainPortMap[localBrName][ClsToUplinkSuffix])
238-
if err := learnedLocalToRemoteOuputFlow.Next(outputPort); err != nil {
239-
return fmt.Errorf("failed to install cls bridge learnedLocalToRemoteOuputFlow, error: %v", err)
238+
if err := learnedLocalToRemoteOutputFlow.Next(outputPort); err != nil {
239+
return fmt.Errorf("failed to install cls bridge learnedLocalToRemoteOutputFlow, error: %v", err)
240240
}
241241

242242
// clsBridgeOutputTable default flow
@@ -263,7 +263,7 @@ func (c *ClsBridge) BridgeInit() {
263263
if err := c.initForwardingTable(); err != nil {
264264
log.Fatalf("Failed to init cls bridge forwarding table, error: %v", err)
265265
}
266-
if err := c.initOuputTable(sw); err != nil {
266+
if err := c.initOutputTable(sw); err != nil {
267267
log.Fatalf("Failed to init cls bridge output table, error: %v", err)
268268
}
269269
}

pkg/agent/datapath/policyBridge.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ func (p *PolicyBridge) initPolicyForwardingTable(sw *ofctrl.OFSwitch) error {
389389
return fmt.Errorf("failed to install from local output flow, error: %v", err)
390390
}
391391

392-
fromUpstreamOuputFlow, _ := p.policyForwardingTable.NewFlow(ofctrl.FlowMatch{
392+
fromUpstreamOutputFlow, _ := p.policyForwardingTable.NewFlow(ofctrl.FlowMatch{
393393
Priority: NORMAL_MATCH_FLOW_PRIORITY,
394394
InputPort: uint32(p.datapathManager.BridgeChainPortMap[localBrName][PolicyToClsSuffix]),
395395
Regs: []*ofctrl.NXRegister{
@@ -401,7 +401,7 @@ func (p *PolicyBridge) initPolicyForwardingTable(sw *ofctrl.OFSwitch) error {
401401
},
402402
})
403403
outputPort, _ = sw.OutputPort(p.datapathManager.BridgeChainPortMap[localBrName][PolicyToLocalSuffix])
404-
if err := fromUpstreamOuputFlow.Next(outputPort); err != nil {
404+
if err := fromUpstreamOutputFlow.Next(outputPort); err != nil {
405405
return fmt.Errorf("failed to install from upstream output flow, error: %v", err)
406406
}
407407

tests/e2e/cases/security_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ func checkConnectionHealth(src, dst *model.Endpoint) <-chan ConnHealth {
12851285
// --- [dstIP] ping statistics ---
12861286
// [time] packets transmitted, [n1] packets received, [n2]% packet loss
12871287
output := regexp.MustCompile("\r\n|\n|\r").Split(fullOut, -1)
1288-
infoOutput := output[3] // expect: [n0] packets transmitted, [n1] packets recived, [n2]% packet loss
1288+
infoOutput := output[3] // expect: [n0] packets transmitted, [n1] packets received, [n2]% packet loss
12891289
connInfo := regexp.MustCompile("[0-9]+").FindAllString(infoOutput, -1)
12901290
klog.Info("Total,Received,Loss Rate,Time:", connInfo)
12911291
lossRate, err := strconv.Atoi(connInfo[2])

tests/e2e/framework/node/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const (
6262
RoleAgent = "agent"
6363
)
6464

65-
// GetClient return client connect to this node, must not close the returnd client.
65+
// GetClient return client connect to this node, must not close the returned client.
6666
func (n *Node) GetClient() (*ssh.Client, error) {
6767
n.lock.Lock()
6868
defer n.lock.Unlock()

0 commit comments

Comments
 (0)