From e370be7339c907274286e41f8c175de33527a437 Mon Sep 17 00:00:00 2001 From: Cybwan Date: Sat, 11 Nov 2023 13:25:32 +0800 Subject: [PATCH 1/2] fix typo port type --- loxinet/port.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/loxinet/port.go b/loxinet/port.go index b0d89c90c..ff4a32f1e 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 { From 44a51f028fe5a8880f2d5ffa13b38fd809f0a1b7 Mon Sep 17 00:00:00 2001 From: Cybwan Date: Sat, 11 Nov 2023 18:42:20 +0800 Subject: [PATCH 2/2] fix typo port type --- loxinet/port.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loxinet/port.go b/loxinet/port.go index ff4a32f1e..feec22544 100644 --- a/loxinet/port.go +++ b/loxinet/port.go @@ -850,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 {