mirror of
https://github.com/gryf/wicd.git
synced 2025-12-22 22:27:59 +01:00
branches/experimental:
- A bunch of documentation additions/updates. - Minor refactoring. - Fix catching wrong exception in netentry.py
This commit is contained in:
@@ -76,28 +76,34 @@ RALINK_DRIVER = 'ralink legacy'
|
||||
|
||||
|
||||
def SetDNS(*args, **kargs):
|
||||
""" Call the wnettools SetDNS method. """
|
||||
return wnettools.SetDNS(*args, **kargs)
|
||||
|
||||
def GetDefaultGateway(*args, **kargs):
|
||||
""" Call the wnettools GetDefaultGateway method. """
|
||||
return wnettools.GetDefaultGateway(*args, **kargs)
|
||||
|
||||
def StopDHCP(*args, **kargs):
|
||||
""" Call the wnettools StopDHCP method. """
|
||||
return wnettools.StopDHCP(*args, **kargs)
|
||||
|
||||
def GetWirelessInterfaces(*args, **kargs):
|
||||
""" Call the wnettools GetWirelessInterfaces method. """
|
||||
return wnettools.GetWirelessInterfaces(*args, **kargs)
|
||||
|
||||
def GetWiredInterfaces(*args, **kargs):
|
||||
""" Call the wnettools GetWiredInterfaces method. """
|
||||
return wnettools.GetWiredInterfaces(*args, **kargs)
|
||||
|
||||
def NeedsExternalCalls(*args, **kargs):
|
||||
""" Return True, since this backend using iwconfig/ifconfig. """
|
||||
return True
|
||||
|
||||
|
||||
class Interface(wnettools.BaseInterface):
|
||||
""" Control a network interface. """
|
||||
def __init__(self, iface, verbose=False):
|
||||
""" Initialise the object.
|
||||
""" Initialize the object.
|
||||
|
||||
Keyword arguments:
|
||||
iface -- the name of the interface
|
||||
|
||||
Reference in New Issue
Block a user