From d9d01327829196855b4a54400521200bf4c31827 Mon Sep 17 00:00:00 2001 From: Josh Bailey Date: Tue, 7 May 2019 08:23:17 +1200 Subject: [PATCH] Unconditionally delete all groups on Aruba as unreferenced groups steal resources from regular flowmods. --- faucet/valve.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/faucet/valve.py b/faucet/valve.py index 1366b6b501..36b85e7d27 100644 --- a/faucet/valve.py +++ b/faucet/valve.py @@ -1696,6 +1696,14 @@ class ArubaValve(TfmValve): DEC_TTL = False + def _delete_all_valve_flows(self): + ofmsgs = super(ArubaValve, self)._delete_all_valve_flows() + # Unreferenced group(s) from a previous config that used them, + # can steal resources from regular flowmods. Unconditionally + # delete all groups even if groups are not enabled to avoid this. + ofmsgs.append(self.dp.groups.delete_all()) + return ofmsgs + class CiscoC9KValve(TfmValve): """Valve implementation for C9K."""