Esempio n. 1
0
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)
Esempio n. 2
0
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)
Esempio n. 3
0
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)