Revision 35c0c8da lib/backend.py
b/lib/backend.py | ||
---|---|---|
574 | 574 |
@return: C{True} if all of them exist, C{False} otherwise |
575 | 575 |
|
576 | 576 |
""" |
577 |
missing = [] |
|
577 | 578 |
for bridge in bridges_list: |
578 | 579 |
if not utils.BridgeExists(bridge): |
579 |
return False
|
|
580 |
missing.append(bridge)
|
|
580 | 581 |
|
581 |
return True |
|
582 |
if missing: |
|
583 |
return False, "Missing bridges %s" % (", ".join(missing),) |
|
584 |
|
|
585 |
return True, None |
|
582 | 586 |
|
583 | 587 |
|
584 | 588 |
def GetInstanceList(hypervisor_list): |
Also available in: Unified diff