From 16a81fc221bf5c193e7edede1878c3ac1fe49b9d Mon Sep 17 00:00:00 2001 From: Vladimir Ermakov Date: Thu, 4 Mar 2021 13:00:39 +0300 Subject: [PATCH] security_group_rule: add support ipv6-icmp Adds ipv6-icmp protocol to _ports_match check to be able to make that rules for IPv6. Story: 2008687 Task: 41989 Change-Id: Ib6313788132bb601d7d53ac709b7c822ee533a8b --- plugins/modules/security_group_rule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/security_group_rule.py b/plugins/modules/security_group_rule.py index 87f0f0b9..f27af356 100644 --- a/plugins/modules/security_group_rule.py +++ b/plugins/modules/security_group_rule.py @@ -202,7 +202,7 @@ def _ports_match(protocol, module_min, module_max, rule_min, rule_max): """ # Check if the user is supplying -1 for ICMP. - if protocol == 'icmp': + if protocol in ['icmp', 'ipv6-icmp']: if module_min and int(module_min) == -1: module_min = None if module_max and int(module_max) == -1: