Revision d0545590 snf-cyclades-app/synnefo/logic/servers.py
b/snf-cyclades-app/synnefo/logic/servers.py | ||
---|---|---|
337 | 337 |
|
338 | 338 |
|
339 | 339 |
@server_command("SET_FIREWALL_PROFILE") |
340 |
def set_firewall_profile(vm, profile, index=0):
|
|
341 |
log.info("Setting VM %s, NIC index %s, firewall %s", vm, index, profile)
|
|
340 |
def set_firewall_profile(vm, profile, nic):
|
|
341 |
log.info("Setting VM %s, NIC %s, firewall %s", vm, nic, profile)
|
|
342 | 342 |
|
343 | 343 |
if profile not in [x[0] for x in NetworkInterface.FIREWALL_PROFILES]: |
344 | 344 |
raise faults.BadRequest("Unsupported firewall profile") |
345 |
backend.set_firewall_profile(vm, profile=profile, index=index)
|
|
345 |
backend.set_firewall_profile(vm, profile=profile, nic=nic)
|
|
346 | 346 |
return None |
347 | 347 |
|
348 | 348 |
|
Also available in: Unified diff