Revision b2791a77 snf-cyclades-app/synnefo/logic/servers.py

b/snf-cyclades-app/synnefo/logic/servers.py
332 332

  
333 333

  
334 334
@server_command("SET_FIREWALL_PROFILE")
335
def set_firewall_profile(vm, profile):
336
    log.info("Setting VM %s firewall %s", vm, profile)
335
def set_firewall_profile(vm, profile, index=0):
336
    log.info("Setting VM %s, NIC index %s, firewall %s", vm, index, profile)
337 337

  
338 338
    if profile not in [x[0] for x in NetworkInterface.FIREWALL_PROFILES]:
339 339
        raise faults.BadRequest("Unsupported firewall profile")
340
    backend.set_firewall_profile(vm, profile)
340
    backend.set_firewall_profile(vm, profile=profile, index=index)
341 341
    return None
342 342

  
343 343

  

Also available in: Unified diff