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.
Reviewed: https:/ /review. openstack. org/534263 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=0efe1aec185 365d8bd7a14ec5b 812132d0f9e44d
Committed: https:/
Submitter: Zuul
Branch: master
commit 0efe1aec185365d 8bd7a14ec5b8121 32d0f9e44d
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
Closes-Bug: #1743552