Hironori Shiina 7390721c48 Reject trailing whitespaces in IP address
Trailing whitespaces in IP address or CIDR pass API validation. These
whitespaces sometimes cause serious troubles. For instance, a trailing
CR code in allocation pools cause an ovs-agent to crash when calling
iptables. In this case, a tenant user's operation mistake affects whole
system.

By modifying _validate_no_whitespace() to reject data with whitespaces
in the beginning and the end, the IP address and CIDR validation
detects invalid attributes. The MAC address validation already rejects
these whitespaces.

Change-Id: Id4589236cfd44c2fd5956c5ab4ab6871381a0c34
Closes-Bug: #1393329
2014-11-26 15:48:03 +09:00
..
2014-11-14 09:28:12 +00:00
2014-06-21 15:07:31 +08:00
2014-08-12 11:17:21 +09:00
2014-11-21 13:36:58 +03:00
2014-06-21 15:07:31 +08:00
2014-06-21 15:07:31 +08:00
2014-06-21 15:07:31 +08:00
2014-11-14 09:28:12 +00:00