Fix _port_arg for security rules with icmp/ipv6-icmp aliases
When a security group rule is created with icmp/ipv6-icmp alias such as
protocol number 1(ICMP), 58(ICMPv6) or string icmpv6(legacy name for
ipv6-icmp) as its protocol along with ICMP/ICMPv6 message type
specified, _port_arg will generate a wrong str for iptables/ip6tables.
Change-Id: Iae01b9a0da34797a5f061a110f06e18be9bbec5a
Closes-Bug: #1743552
(cherry picked from commit 0efe1aec185365d8bd7a14ec5b812132d0f9e44d)
Reviewed: https:/ /review. openstack. org/535795 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=f7207d49184 f790378325411c6 d7304e01db4f01
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit f7207d49184f790 378325411c6d730 4e01db4f01
Author: Hunt Xu <email address hidden>
Date: Tue Jan 16 19:34:09 2018 +0800
Fix _port_arg for security rules with icmp/ipv6-icmp aliases
When a security group rule is created with icmp/ipv6-icmp alias such as
protocol number 1(ICMP), 58(ICMPv6) or string icmpv6(legacy name for
ipv6-icmp) as its protocol along with ICMP/ICMPv6 message type
specified, _port_arg will generate a wrong str for iptables/ip6tables.
Change-Id: Iae01b9a0da3479 7a5f061a110f06e 18be9bbec5a 8bd7a14ec5b8121 32d0f9e44d)
Closes-Bug: #1743552
(cherry picked from commit 0efe1aec185365d