Ñò +z2Wc @s¿dZddklZlZddklZddklZddkl Z l Z ddk l Z l Z ddklZdadadefd „ƒYZd „Zd „Zd „Zd ZdS(s!Implementation of the qeth deviceiÿÿÿÿ(tDevicet ConfDevice(tgetDeviceFactory(tCard(tgetHardwareListtHW_CONF(tQETHt getDeviceType(t DevEthernettDevQethcBsVeZd„Zd„Zd„Zd„Zd„Zd„Zdd„Z dd„Z RS( cCs tt|ƒiƒt|_dS(N(tsuperR t__init__RtType(tself((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pyR scCs4|itjotSt|iƒtjotStS(s<returns true of the device is of the same type as this class(R RtTrueRRtFalse(R tdevice((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pytisType"s c Cs|ti||ƒt|ƒ}t|_|idƒoCtƒ}d}xm|D].}|i|ijo|itjoPqKqKW|i tƒ}||}t |_ |i|_t|_d|d|_ t ƒ|_ d|i _yG|didƒ}|d|i _|d|i _|d|i _WnnXy|d|i _WnnX|iƒ|iƒ|iƒ|iƒndS( Nt SUBCHANNELSsqeth %stqetht,iiitOPTIONS(RtloadRRR thas_keyRtNonetNamet addHardwareRtStatust DescriptionRt ModuleNametsplittIoPorttIoPort1tIoPort2tOptionstcommitt setunmodified(R tnametconft hardwarelistthwtitports((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pyR*sB   #          cCs!ti|ƒt|iƒ}d|d<|ipíd|d /sys/bus/ccwgroup/drivers/qeth/%s/online; echo 1 > /sys/bus/ccwgroup/drivers/qeth/%s/ungroup( Rt deactivateR1RRRRRR R!tostsystem(R R8tretR'R(((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pyR<zs  :# cCsŽ|ipttƒ}xh|D]\}|i|ijoC|iio6|iio)|iioti d|iiƒPqqWnt i ||ƒS(sactivate the qeth devices^/sbin/znet_cio_free; SUBSYSTEM="ccw" DEVPATH="bus/ccwgroup/drivers/qeth/%s" /lib/udev/ccw_init( R1RRRRRR R!R=R>Rtactivate(R R8R'R(((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pyR@…s  : N( t__name__t __module__R RRR/R9R;RR<R@(((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pyR s   (   cCs |adS(sSet the ctc dialog classN(R5(R8((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pytsetDevQethDialogscCs |adS(sSet the ctc wizard classN(R:(twizard((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pytsetDevQethWizard•scCsWddk}|iƒd}|djp |djotƒ}|ittƒndS(Niÿÿÿÿits390ts390x(R=tunameRtregisterR R(R=tmachinet_df((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pytregister_plugin›s   s Harald Hoyer N(t__doc__tnetconfpkg.NCDeviceRRtnetconfpkg.NCDeviceFactoryRtnetconfpkg.NCHardwareRtnetconfpkg.NCHardwareListRRtnetconfpkg.NC_functionsRRt&netconfpkg.plugins.NCPluginDevEthernetRRR5R:R RCRERLt __author__(((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pytss