def mask_to_list(mask):
    size = len(bin(mask)) - 2  # because of "0b"
    return [size - i - 1 for i in xrange(size)
            if mask & (1 << size - i - 1)]
Ensures that the named bridge exists, eventually creates it.
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/utils/misc.py/mask_to_list--crossover with--dataset/ETHPy150Open saltstack/salt/salt/states/openvswitch_bridge.py/present