diff --git a/loxinet/mirror.go b/loxinet/mirror.go index 9e6c16df6..34c4d1e55 100644 --- a/loxinet/mirror.go +++ b/loxinet/mirror.go @@ -19,8 +19,9 @@ package loxinet import ( "errors" - cmn "github.com/loxilb-io/loxilb/common" tk "github.com/loxilb-io/loxilib" + + cmn "github.com/loxilb-io/loxilb/common" ) // error codes @@ -221,6 +222,7 @@ func (M *MirrH) MirrDelete(name string) (int, error) { m.DP(DpRemove) delete(M.MirrMap, m.Key) + defer M.Mark.PutCounter(m.HwNum) tk.LogIt(tk.LogInfo, "mirror deleted - %s\n", name) diff --git a/loxinet/qospol.go b/loxinet/qospol.go index 0ed6567e0..48262f4a3 100644 --- a/loxinet/qospol.go +++ b/loxinet/qospol.go @@ -19,8 +19,9 @@ package loxinet import ( "errors" - cmn "github.com/loxilb-io/loxilb/common" tk "github.com/loxilb-io/loxilib" + + cmn "github.com/loxilb-io/loxilb/common" ) // error codes @@ -220,6 +221,7 @@ func (P *PolH) PolDelete(pName string) (int, error) { p.DP(DpRemove) delete(P.PolMap, p.Key) + defer P.Mark.PutCounter(p.HwNum) tk.LogIt(tk.LogInfo, "policer deleted - %s\n", pName)