diff --git a/loxinet/port.go b/loxinet/port.go index b0d89c90..feec2254 100644 --- a/loxinet/port.go +++ b/loxinet/port.go @@ -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 @@ -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 { @@ -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 {