From e6fe52bc5634a671726d56498ad48d54e7f0f46e Mon Sep 17 00:00:00 2001 From: felyl-github <53854101+felyl-github@users.noreply.github.com> Date: Fri, 6 Sep 2019 14:32:34 +0800 Subject: [PATCH] Update os_security_group_rule.py (#61262) Currently, this module does not support to add 132 SCTP rule in security group rule of openstack. Could we add this support in this module? Thanks~ --- .../modules/cloud/openstack/os_security_group_rule.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/cloud/openstack/os_security_group_rule.py b/lib/ansible/modules/cloud/openstack/os_security_group_rule.py index d839aaf7609..418bae0a5a5 100644 --- a/lib/ansible/modules/cloud/openstack/os_security_group_rule.py +++ b/lib/ansible/modules/cloud/openstack/os_security_group_rule.py @@ -29,8 +29,8 @@ options: required: true protocol: description: - - IP protocols TCP UDP ICMP 112 (VRRP) - choices: ['tcp', 'udp', 'icmp', '112', None] + - IP protocols TCP UDP ICMP 112 (VRRP) 132 (SCTP) + choices: ['tcp', 'udp', 'icmp', '112', '132', None] port_range_min: description: - Starting port @@ -273,7 +273,7 @@ def main(): # NOTE(Shrews): None is an acceptable protocol value for # Neutron, but Nova will balk at this. protocol=dict(default=None, - choices=[None, 'tcp', 'udp', 'icmp', '112']), + choices=[None, 'tcp', 'udp', 'icmp', '112', '132']), port_range_min=dict(required=False, type='int'), port_range_max=dict(required=False, type='int'), remote_ip_prefix=dict(required=False, default=None),