Fix VPCS tests for recent version

This commit is contained in:
Julien Duponchelle committed 2017-04-13 15:56:12 +02:00
1 parent 6d150bb62c
commit 85136bc2e4
3 files changed
+19 -28

No files matched your search

+1 -1
View File
@@ -202,7 +202,7 @@ class VPCSHandler:
nio_type = request.json["type"]
if nio_type not in ("nio_udp", "nio_tap"):
raise HTTPConflict(text="NIO of type {} is not supported".format(nio_type))
nio = vpcs_manager.create_nio(vm.vpcs_path, request.json)
nio = vpcs_manager.create_nio(vm.vpcs_path(), request.json)
vm.port_add_nio_binding(int(request.match_info["port_number"]), nio)
response.set_status(201)
response.json(nio)