403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/system-config-network/netconfpkg/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pyc
+z2Wc	@sdZddklZlZddklZddklZddkl	Z	l
Z
ddklZl
Z
ddklZdadadefd	YZd
ZdZdZd
ZdS(s!Implementation of the qeth devicei(tDevicet
ConfDevice(tgetDeviceFactory(tCard(tgetHardwareListtHW_CONF(tQETHt
getDeviceType(tDevEthernettDevQethcBsVeZdZdZdZdZdZdZddZ	ddZ
RS(	cCs tt|it|_dS(N(tsuperR	t__init__RtType(tself((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pyRscCs4|itjotSt|itjotStS(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|_|idoCt}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|indS(	NtSUBCHANNELSsqeth %stqetht,iiitOPTIONS(RtloadRRRthas_keyRtNonetNametaddHardwareRtStatustDescriptionRt
ModuleNametsplittIoPorttIoPort1tIoPort2tOptionstcommitt
setunmodified(R
tnametconfthardwarelistthwtitports((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pyR*sB		#	
		


cCs!ti|t|i}d|d<|ipd|d<d}t}xr|D]j}|i|ijoQ|ii	oD|ii
o7|iio*d|ii	|ii
|iif}PqPqPW|o||d<n|iio|ii|d<n|i
do|d=n|indS(	NtEthernettTYPERtNETTYPEts%s,%s,%sRR(RtsaveRtDeviceIdtAliasRRRRRR R!R"Rtwrite(R
R&R*R'R(((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pyR/Rs.



	
		
cCs=tpdSt|}t|do|iidS|S(s get the ctc configuration dialogtxmltDialogN(t_devQethDialogRthasattrR3t
get_widget(R
tdialog((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pyt	getDialoglscCstS(s get the wizard of the ctc wizard(t_devQethWizard(R
((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pyt	getWizardvscCsti||}|ipt}xt|D]h}|i|ijoO|iioB|iio5|ii	o(t
id|ii|iifPq,q,Wn|S(Nseecho 0 > /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|iiPqqWnt
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__RRRR/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.pytsetDevQethWizardscCsWddk}|id}|djp
|djot}|ittndS(Niits390ts390x(R=tunameRtregisterR	R(R=tmachinet_df((sF/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevQeth.pytregister_plugins
	s Harald Hoyer <harald@redhat.com>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.pyt<module>ss			

Youez - 2016 - github.com/yon3zu
LinuXploit