Revision 51a681ac snf-cyclades-app/synnefo/api/ports.py
b/snf-cyclades-app/synnefo/api/ports.py | ||
---|---|---|
115 | 115 |
required=True) |
116 | 116 |
ipaddress = util.get_floating_ip_by_address(user_id, fip_address, |
117 | 117 |
for_update=True) |
118 |
if ipaddress.network.id != network.id: |
|
119 |
raise api.faults.Conflict("Floating IP address %s does not belong" |
|
120 |
" to network %s." |
|
121 |
% (fip_address, net_id)) |
|
122 | 118 |
|
123 | 119 |
vm = util.get_vm(dev_id, user_id, for_update=True, non_deleted=True, |
124 | 120 |
non_suspended=True) |
Also available in: Unified diff