Merge "Adds missing expected_errors for V3 API multinic extension"

This commit is contained in:
Jenkins 2014-04-09 06:40:11 +00:00 committed by Gerrit Code Review
commit aa3ff66df8
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ class MultinicController(wsgi.Controller):
self.compute_api = compute.API()
@wsgi.action('add_fixed_ip')
@extensions.expected_errors(404)
@validation.schema(multinic.add_fixed_ip)
def _add_fixed_ip(self, req, id, body):
"""Adds an IP on a given network to an instance."""
@ -52,6 +53,7 @@ class MultinicController(wsgi.Controller):
return webob.Response(status_int=202)
@wsgi.action('remove_fixed_ip')
@extensions.expected_errors((400, 404))
@validation.schema(multinic.remove_fixed_ip)
def _remove_fixed_ip(self, req, id, body):
"""Removes an IP from an instance."""