Skip to content

Commit

Permalink
Merge pull request #2942 from anarkiwi/arubagroupdel
Browse files Browse the repository at this point in the history
Unconditionally delete all groups on Aruba as unreferenced groups ste…
  • Loading branch information
gizmoguy committed May 6, 2019
2 parents 35af3ad + d9d0132 commit e904386
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions faucet/valve.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit e904386

Please sign in to comment.