]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix Security-rule's port should not set to 0 when Protocol is TCP/UDP
authorlei zhang <shleiz@cn.ibm.com>
Thu, 26 Nov 2015 15:36:05 +0000 (23:36 +0800)
committerJacky_lei_zhang <shleiz@cn.ibm.com>
Thu, 24 Dec 2015 02:17:56 +0000 (02:17 +0000)
commitfbcf8e6b141906632af2d387767b58ece269538d
tree839337c9bf2b66126b03aa79ec6d5fcfcd46962f
parentc4e1402e62d023a55aa4e466e36937f3b8f7ddde
Fix Security-rule's port should not set to 0 when Protocol is TCP/UDP

security rule port can be set value 0 when protocol is TCP/UDP

This patch add port check in def_validate_port_range(self, rule),when
protocol is TCP or UDP,port value 0 should not accepted

APIImpact
Change-Id: I57836d730db602de2a6704fd11a13c74ac38a716
Closes-Bug: #1527016
neutron/db/securitygroups_db.py
neutron/tests/unit/agent/test_securitygroups_rpc.py
neutron/tests/unit/extensions/test_securitygroup.py