def get_default_if():
    f = open ('/proc/net/route', 'r')
    for line in f:
        words = line.split()
        dest = words[1]
        try:
            if (int (dest) == 0):
                interf = words[0]
                break
        except ValueError:
            pass
    return interf
Configures a virtual router element.
dataset/ETHPy150Open rlisagor/pynetlinux/pynetlinux/route.py/get_default_if--crossover with--dataset/ETHPy150Open jasonhancock/cloudstack-python-client/CloudStack/Client.py/Client.configureVirtualRouterElement