Skip to content

Commit

Permalink
Merge pull request #439 from cybwan/fix-issue
Browse files Browse the repository at this point in the history
fix typo port type
  • Loading branch information
UltraInstinct14 authored Nov 11, 2023
2 parents b99b120 + b3fe351 commit 57b9af1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions loxinet/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ import (
"net"
"strings"

cmn "github.com/loxilb-io/loxilb/common"
tk "github.com/loxilb-io/loxilib"

cmn "github.com/loxilb-io/loxilb/common"
)

// error codes
Expand Down Expand Up @@ -710,7 +711,7 @@ func port2String(e *Port, it IterIntf) {
if e.SInfo.PortType&cmn.PortBondSif == cmn.PortBondSif {
pStr += "bond-sif,"
}
if e.SInfo.PortType&cmn.PortBondSif == cmn.PortBond {
if e.SInfo.PortType&cmn.PortBond == cmn.PortBond {
pStr += "bond,"
}
if e.SInfo.PortType&cmn.PortVxlanSif == cmn.PortVxlanSif {
Expand Down Expand Up @@ -849,7 +850,7 @@ func (P *PortsH) PortDestructAll() {
if p.SInfo.PortType&cmn.PortBondSif == cmn.PortBondSif {
bondSlaves = append(bondSlaves, p)
}
if p.SInfo.PortType&cmn.PortBondSif == cmn.PortBond {
if p.SInfo.PortType&cmn.PortBond == cmn.PortBond {
bonds = append(bonds, p)
}
if p.SInfo.PortType&cmn.PortVxlanSif == cmn.PortVxlanSif {
Expand Down

0 comments on commit 57b9af1

Please sign in to comment.