Lines Matching refs:interface
15 from autotest_lib.client.common_lib.cros.network import interface
99 for interface in self.iw_runner.list_interfaces():
102 if_name=interface.if_name,
103 if_type=interface.if_type,
104 phy=interface.phy))
106 self.iw_runner.remove_interface(interface.if_name)
112 # Some uses of LinuxSystem don't use the interface allocation facility.
182 """Create a bridge interface."""
237 def remove_interface(self, interface):
238 """Remove an interface from a WiFi device.
240 @param interface string interface to remove (e.g. wlan0).
243 self.release_interface(interface)
244 self.host.run('%s link set %s down' % (self.cmd_ip, interface))
245 self.iw_runner.remove_interface(interface)
247 if net_dev.if_name == interface:
320 # If this is the only interface on this phy, we ought to configure
369 Return the most appropriate phy interface for operating on the
418 interface.
423 interface on the same phy as this.
444 raise error.TestFail('Unable to find phy for interface %s' %
453 # If we have a suitable unused interface sitting around on this
460 # good interface name.
495 @param same_phy_as string create the interface on the same phy as this.
528 interface.
533 @param same_phy_as string create the interface on the same phy as this.
562 our_mac = interface.Interface(our_ifname, self.host).mac_address
568 interface.Interface(sib_dev.if_name, self.host).mac_address
576 """Change the MAC address for an interface.
587 """Copy the MAC address from one interface to another.
595 interface.Interface(src_dev, self.host).mac_address)
610 """Return the bridge interface, create one if it is not created yet.
612 @return string name of bridge interface.
620 """Remove the bridge interface that's been created."""
627 def add_interface_to_bridge(self, interface):
628 """Add an interface to the bridge interface.
630 This will create the bridge interface if it is not created yet.
632 @param interface string name of the interface to add to the bridge.
637 (self.cmd_ip, interface, self._bridge_interface))
641 """Return the master interface of the virtual ethernet pair.
643 @return string name of the master interface of the virtual ethernet
652 """Return the peer interface of the virtual ethernet pair.
654 @return string name of the peer interface of the virtual ethernet pair.