Skip to content

Commit

Permalink
fw support floating 'all' interface rule
Browse files Browse the repository at this point in the history
Add support for 'All' interface when creating floating firewall rule
  • Loading branch information
GuideGlyph committed Sep 12, 2023
1 parent 278676d commit e1d730d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/module_utils/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ def _parse_floating_interfaces(self, interfaces):
""" validate param interface field when floating is true """
res = []
for interface in interfaces.split(','):
res.append(self.pfsense.parse_interface(interface))
if interface.capitalize() == 'Any':
res.append(interface)
else:
res.append(self.pfsense.parse_interface(interface))
self._floating_interfaces = interfaces
return ','.join(res)

Expand Down

0 comments on commit e1d730d

Please sign in to comment.