diff --git a/plugins/module_utils/rule.py b/plugins/module_utils/rule.py index 54d5a6d0..25ace9ea 100644 --- a/plugins/module_utils/rule.py +++ b/plugins/module_utils/rule.py @@ -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 == 'any': + res.append(interface) + else: + res.append(self.pfsense.parse_interface(interface)) self._floating_interfaces = interfaces return ','.join(res) diff --git a/plugins/modules/pfsense_rule.py b/plugins/modules/pfsense_rule.py index 749358ef..0c22db1e 100644 --- a/plugins/modules/pfsense_rule.py +++ b/plugins/modules/pfsense_rule.py @@ -42,7 +42,7 @@ default: false type: bool interface: - description: The interface for the rule + description: The interface for the rule. Use 'any' to apply to all interface (for floating rules only). required: true type: str floating: