Lines Matching refs:interface
24 def get_interface_ip(interface='eth0'):
25 """Returns the IP address for an interface, or None if not found.
26 @param interface: the interface to request IP address for.
33 stdout = subprocess.Popen(['ip', '-4', 'addr', 'show', 'dev', interface],
88 Right now, we use the interface of eth0 to figure out which
100 # TODO(byronk): use sysfs to find network interface
102 log.debug('Looking for an up network interface in : %s' %
104 for interface in possible_interfaces:
105 machine = get_interface_ip(interface)
118 'Tried these interface names: %s \n' % possible_interfaces +