Add InvalidIpForSubnetClient exception

A new Neutron exception type, InvalidIpForSubnetClient, is added by
https://review.openstack.org/#/c/121767/ . Need to let Neutron client to
identify this new exception type.

Change-Id: Ib4f0d7af3807f96463c82d1d2a1e53b56081facc
Partial-Bug: 1369871
This commit is contained in:
Qin Zhao 2015-03-06 17:20:06 +08:00
parent 6c512446b1
commit df93b27167
2 changed files with 5 additions and 0 deletions
neutronclient

@ -144,6 +144,10 @@ class InvalidIpForNetworkClient(BadRequest):
pass
class InvalidIpForSubnetClient(BadRequest):
pass
class OverQuotaClient(Conflict):
pass

@ -683,6 +683,7 @@ class CLITestV20ExceptionHandler(CLITestV20Base):
exceptions.ExternalIpAddressExhaustedClient, 400),
('OverQuota', exceptions.OverQuotaClient, 409),
('InvalidIpForNetwork', exceptions.InvalidIpForNetworkClient, 400),
('InvalidIpForSubnet', exceptions.InvalidIpForSubnetClient, 400),
]
error_msg = 'dummy exception message'