;ň
ädę@c           @   s   d  Z  d k l Z d k l Z d k l Z e a e a	 d e f d     YZ
 d   Z d   Z e   Z e i e
 e  [ d Z d	 Z d
 Z d S(   s.   Implementation of the generic ethernet device
(   s   Device(   s   getDeviceFactory(   s   ETHERNETs   DevEthernetc           B   s8   t  Z d  Z e e d  Z d   Z d   Z d   Z RS(   sú  An object of class DevEthernet can be obtained by calling:
   
   df = getDeviceFactory()
   ethernetclass = df.getDeviceClass(ETHERNET)
   ethernetdevice = ethernetclass()

   It has the following attributes, shown here with the corresponding
   initscripts variables:
   
   Device          - DEVICE=<name of physical device (except
                     dynamically-allocated PPP devices where it
                     is the "logical name")>
   IP              - IPADDR
   Netmask         - NETMASK
   Gateway         - GATEWAY
   Hostname        - HOSTNAME - Hint for DHCP
   BootProto       - BOOTPROTO=none|bootp|dhcp
   Type            - TYPE=ETHERNET
   HardwareAddress - HWADDR=<MAC Address>
   OnBoot          - ONBOOT=yes|no
   AllowUser       - USERCTL=yes|no
   IPv6Init        - IPV6INIT=yes|no
   AutoDNS         - PEERDNS=yes|no - modify /etc/resolv.conf if peer uses
                     msdns extension (PPP only) or DNS{1,2} are set, or if
                     using pump or dhcpcd. default to "yes".c         C   s    t  i |  | |  t |  _ d  S(   N(   s   Devices   __init__s   selfs   lists   parents   ETHERNETs   Type(   s   selfs   lists   parent(    (    sh   /usr/src/build/423651-noarch/install/usr/share/system-config-network/netconfpkg/plugins/NCDevEthernet.pys   __init__6   s    c         C   s   t  |   i i d  Sd S(   s7   get the gtk.Dialog of the ethernet configuration dialogs   DialogN(   s   _devEthernetDialogs   selfs   xmls
   get_widget(   s   self(    (    sh   /usr/src/build/423651-noarch/install/usr/share/system-config-network/netconfpkg/plugins/NCDevEthernet.pys	   getDialog:   s     c         C   s   t  Sd S(   s%   get the wizard of the ethernet wizardN(   s   _devEthernetWizard(   s   self(    (    sh   /usr/src/build/423651-noarch/install/usr/share/system-config-network/netconfpkg/plugins/NCDevEthernet.pys	   getWizard>   s     c         C   s>   | i t j o t Sn t | i  t j o t Sn t Sd S(   s<   returns true of the device is of the same type as this classN(   s   devices   Types   ETHERNETs   trues   getDeviceTypes   Devices   false(   s   selfs   device(    (    sh   /usr/src/build/423651-noarch/install/usr/share/system-config-network/netconfpkg/plugins/NCDevEthernet.pys   isTypeB   s     (   s   __name__s
   __module__s   __doc__s   Nones   __init__s	   getDialogs	   getWizards   isType(    (    (    sh   /usr/src/build/423651-noarch/install/usr/share/system-config-network/netconfpkg/plugins/NCDevEthernet.pys   DevEthernet   s
    		c         C   s
   |  a d S(   s   Set the ethernet dialog classN(   s   dialogs   _devEthernetDialog(   s   dialog(    (    sh   /usr/src/build/423651-noarch/install/usr/share/system-config-network/netconfpkg/plugins/NCDevEthernet.pys   setDevEthernetDialogJ   s      c         C   s
   |  a d S(   s   Set the ethernet wizard classN(   s   wizards   _devEthernetWizard(   s   wizard(    (    sh   /usr/src/build/423651-noarch/install/usr/share/system-config-network/netconfpkg/plugins/NCDevEthernet.pys   setDevEthernetWizardO   s      s    Harald Hoyer <harald@redhat.com>s   $Date: 2004/07/06 08:09:10 $s   $Revision: 1.7.4.1 $N(   s   __doc__s   netconfpkg.NCDevices   Devices   netconfpkg.NCDeviceFactorys   getDeviceFactorys   netconfpkg.NC_functionss   ETHERNETs   Nones   _devEthernetDialogs   _devEthernetWizards   DevEthernets   setDevEthernetDialogs   setDevEthernetWizards   _dfs   registers
   __author__s   __date__s   __version__(
   s   setDevEthernetWizards   _dfs
   __author__s   __date__s   getDeviceFactorys   setDevEthernetDialogs   Devices   ETHERNETs   DevEthernets   __version__(    (    sh   /usr/src/build/423651-noarch/install/usr/share/system-config-network/netconfpkg/plugins/NCDevEthernet.pys   ?   s   /			