def netif(name): try: # Here we are importing site net utils only if it exists # pylint: disable=E0611 from autotest.client.net import site_net_utils return site_net_utils.network_interface(name) except ImportError: return network_interface(name)
def netif(name): try: # Here we are importing site net utils only if it exists # pylint: disable=E0611 from autotest.client.net import site_net_utils return site_net_utils.network_interface(name) except ImportError: return network_interface(name)
def netif(name): try: from autotest.client.net import site_net_utils return site_net_utils.network_interface(name) except Exception: return network_interface(name)