From e370be7339c907274286e41f8c175de33527a437 Mon Sep 17 00:00:00 2001 From: Cybwan Date: Sat, 11 Nov 2023 13:25:32 +0800 Subject: [PATCH] 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 b0d89c90..ff4a32f1 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 {