Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/management/pprint.py   synnefo(Download)
 
from synnefo.logic.rapi import GanetiApiError
from synnefo.logic.reconciliation import (nics_from_instance,
                                          disks_from_instance)
from synnefo.management.common import get_image
        raise e
 
    nics = nics_from_instance(vm_info)
    try:
        gnt_nic = filter(lambda nic: nic.get("name") == port.backend_uuid,
    stdout.write("\n")
 
    nics = nics_from_instance(server_info)
    nics_keys = ["ip", "mac", "name", "network"]
    nics_values = [[nic[key] for key in nics_keys] for nic in nics]