Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /usr/share/system-config-network/netconfpkg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/system-config-network/netconfpkg/NCProfileList.pyc
Ñò
åOÜLc
@s]ddkZddklZlZddklZddklZddk	l
Z
lZlZl
Z
lZlZlZlZlZlZlZlZlZlZlZlZlZlZlZlZlZddkl Z l!Z!ddk"l#Z#l$Z$de#fd	„ƒYZ%d
e&fd„ƒYZ'de%fd
„ƒYZ(e)a*e
ƒa+e)d„Z,dZ-dS(iÿÿÿÿN(tNCDeviceListtNCIPsecList(tConfDevices(tProfile(t_tlogtSYSCONFNETWORKtgetRoottupdateNetworkScriptstSYSCONFPROFILEDIRtOLDSYSCONFDEVICEDIRt
RESOLVCONFt	HOSTSCONFt	TestErrortSYSCONFDEVICEDIRtmkdirt
issamefiletunlinktlinktrenametrmdirt
getTestEnvtgeneric_error_dialogtgeneric_yesno_dialogtRESPONSE_YES(tConfShellVartConfEResolv(tGdtlisttgdtlist_propertiestProfileList_basecBseZeeƒRS((t__name__t
__module__RR(((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyR#st
MyFileListcBs#eZd„Zd„Zd„ZRS(cCsKtii|ƒ}tiddt|ƒt|ƒfƒti|||ƒS(Nis$MyFileList.__setitem__(self, %s, %s)(tostpathtabspathRtstrtlistt__setitem__(tselftkeytvalue((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyR&'scCsZtii|ƒ}ti|tii|ƒƒ}tiddt|ƒt|ƒfƒ|S(Nis'MyFileList.__contains__(self, %s) == %s(R!R"R#R%t__contains__RR$(R'tobjtret((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyR*-s
cCsHtii|ƒ}tiddt|ƒƒti|tii|ƒƒS(NisMyFileList.append(self, %s)(R!R"R#RR$R%tappend(R'R+((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyR-4s(RRR&R*R-(((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyR &s		tProfileListcBs€eZd„Zd„Zd„Zd„Zd„Zd„Zed„Z	ed„Z
ed„Zd	„Z
ed
„Zd„ZRS(cCs tt|ƒiƒd|_dS(N(tsuperR.t__init__tNoneterror(R'((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyR0:scCs¶d|_titƒtƒ}|idƒo|d|_n|idƒo|d|_n
d|_|idjp|idjo
d|_ntƒ|idt	|ƒƒg}t
iitƒt
ƒo…t
itƒt
ƒ}|oTxa|D]E}tƒt
d|}t
ii|ƒpqøn|i||ƒqøWqi|iddƒn|iddƒ|iƒ}tidd	t|ƒƒ|i|i_|iƒ|iƒdS(
NtdefaulttCURRENT_PROFILEtHOSTNAMEt	localhosttit/isActiveProfile: %s(t	curr_profRRRthas_keytuse_hostnameR1Rt__delslice__tlenR!R"tisdirR	tlistdirtloadproftgetActiveProfileRR$tDNStHostnametcommitt
setunmodified(R'tnwconftproflisttprtprofdirtprof((s</usr/share/system-config-network/netconfpkg/NCProfileList.pytload>s8		 

cCs|tiƒ}tiƒ}tƒ}|i|ƒ||_||ijo
t|_	n
t
|_	g}|ot|ƒ}n|pttƒt
ƒ}nxD|D]<}x3|D]+}|i|jo|ii|ƒPq¬q¬WqŸWxD|D]<}	x3|D]+}|i|	jo|ii|	ƒPqóqóWqæW|oCy|iid|dƒWq«tj
o}
|
i|_q«Xn<y|iidtƒWn!tj
o}
|
i|_nXtiƒ}|o|d|_ntƒt|_|iƒ|i|i_d|i_d|i_ d|i_!d|i_"|ot#i#|dƒ}nt#i#tƒt$ƒ}|ddjo|d|i_nt%|dƒdjo|dd|i_n|i&d	ƒov|d	d|i_ t%|d	ƒd
jo|d	d
|i_!nt%|d	ƒdjo|d	d|i_"q6n|ii'}
|i&dƒo&x#|dD]}|
i|ƒq]WndS(
Ntfilenames/hostss/resolv.confR7s/networkR5tdomainitnameserversiitsearch((Rt
getDeviceListRtgetIPsecListRR-tProfileNameR9tTruetActivetFalseRRR
tDeviceIdt
ActiveDevicestIPsecIdtActiveIPsecst	HostsListRKt
ValueErrortmessageR2RRRLRtreadR;RBRCt
Domainnamet
PrimaryDNStSecondaryDNStTertiaryDNSRRR=R:t
SearchList(R'RHRIt
devicelistt	ipseclistRJtdevlisttdevtdtipsectetdnsconfRFtsltns((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyR@fs€	
	
	


c
	Cs~d}xe|D]]}y|iiƒWq
tj
o7}|pd|i|if}qj||i7}q
Xq
W|ot|ƒ‚nh}tiƒ}xà|D]Ø}|ipqžnx½|i	D]²}x,|D]!}|i
|jo|}PqÌqÌWq¿|i|iƒo]|i
||ii
joCtdƒtdƒ|i
|i||ii
f}	t|	ƒ‚n|||i<q¿WPqžWdS(NsProfile: %s 
%ss6Device %s uses the same Hardware Device "%s" like %s!
sDPlease select another Hardware Device or 
activate only one of them.(R1RZttestR[RRR\RRPRTRWRVR:tDevicetAliasRR
(
R'R2RJRitdevmapRctdevIdRftdevicetmsg((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyRm·sD

		
cCsdS(N((R'((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyt
fixInterfacesàsc CsÔddk}tidƒ|iƒtitƒtƒ}tiƒ}|iƒ}t	ƒo|i
ƒ|iijoïti
ƒdjoXttdƒƒ}|tjo5tid|iiƒtidd|iiƒqànd}y|i|iiƒ}WnÔ|ij
oÅxJ|iD]°}|idjp|id	joŠd
|_d|ijo|iidƒn|iiidƒdjo'|ii|iiidƒdƒqÍ|ii|iiƒqqWqdX|djo}|d	jopxm|iD]^}|idjp|id	jo1d
|_d|ijo|iidƒqQn|i|jo÷|iƒy4|i|ƒ}|d|_|ii|d
ƒWn%|ij
o|ii|_nX|i|iijo|ii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WqU
t?j
o1}t@td(ƒh|d)6tA|ƒd*6ƒqU
XqU
Wti;tƒt"ƒ}x°|D]¨}
ti;tƒt"|
ƒ}xY|D]Q}tƒt"|
d|}||	jotid$d+|ƒq7nt0|ƒq7Wtƒt"|
}||	jotB|ƒqqW|iƒ|iCƒdS(-Niÿÿÿÿiis¯You changed the hostname.

Should the hostname be set to the system now?
This may have the effect, that some X applications do not function properly.

You may have to relogin.shostname %sischange hostname to %ss	127.0.0.1s::1slocalhost.localdomainR6t.iR5R3R4R8s/networks/resolv.confR7RMRORNs/hostsRLsifcfg-sroute-skeys-s.routes.baki¤t-tifcfgtroutetkeysiiúÿÿÿsifcfg-lois)Error removing file %(file)s: %(errormsg)tfileterrormsgs%s not removed(RwRxskeys(DtsocketR!tumaskRDRRRRRARtgethostnameRBRCtgetuidRRRtsystemRt
gethostbynameR2RZtIPt	AliasListR-tfindtsplittcreateAliasListt
gethostbyaddrtextendRRtwriteR"R>R	RR RLR^RbR_R`RatsaveRWRtisfileRRRRTRUR
RYRRtitemsRtchmodR?R=tstattsamestattOSErrorRR$RRE( R'R|RFRjtact_proftretvaltnewipthostthnamet
files_usedRJRNRLRqtprefixtdevfilenametprofilenametmfiletcfilethostfiletconffileReRfRŽtdirlisttmdirtdirnametfilelisttfile2tstat2RiRG((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyRŠ
sœ


"
 		#
 	

(
		











$

$
 


$

 







	%


cCsŽtƒ}x~|D]v}|i|joqn|o(||ijo|ii|ƒq†q||ijo|i|ii|ƒ=qqWdS(N(tgetProfileListRRRWR-tindex(R'tdeviceidtprofiletstatetprofilelistRJ((s</usr/share/system-config-network/netconfpkg/NCProfileList.pytactivateDevice4s	cCsŽtƒ}x~|D]v}|i|joqn|o(||ijo|ii|ƒq†q||ijo|i|ii|ƒ=qqWdS(N(R¤RRRYR-R¥(R'tipsecidR§R¨R©RJ((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyt
activateIpsecAs	cCsãd}xT|D]H}t|tƒo|i|jpt|tƒo||joPq
q
WdS|iƒ}xs|D]k}|iƒ}t|tƒo|i|jpt|tƒo ||jot|_|}qpt|_qpW|S(N(	R1t
isinstanceR$RRRtmodifiedRSRTRU(R'tvaltdochangetaprofRJtmodltmod((s</usr/share/system-config-network/netconfpkg/NCProfileList.pytswitchToProfileNs" 	 	

cCsJx |D]}|ipqn|SWt|ƒot|d_|dSdS(Ni(RTR=RS(R'RJ((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyRAhs


cCsl|djo|ii}nd}xB|D]:}t|tƒo$||id||ifƒ7}q*q*W|S(s&returns a string in gdt representationR7s%s.%sN(R1t	__class__RR­RttostrRR(R't
prefix_stringtmstrR)((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyR¶rs
cCs±t|ƒdjodS|ddjo|d=ndSx;|D]3}|i|djo|i|d|ƒdSq?Wtƒ}|i|ƒ|d|_|i|d|ƒdS(NiiR.(R=RRtfromstrRR-(R'tvalsR)R§RJ((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyR¹s		

(RRR0RKR@RmRtRŠR1RªR¬RSR´RAR¶R¹(((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyR.9s		(	Q	)	-	ÿ(

	

cCsHtdjp|pttƒjo tƒatiƒtƒantS(N(t__PFListR1t
__PFList_rootRR.RK(trefresh((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyR¤•s	

s Harald Hoyer <harald@redhat.com>(.tos.pathR!t
netconfpkgRRtnetconfpkg.NCDeviceListRtnetconfpkg.NCProfileRtnetconfpkg.NC_functionsRRRRRR	R
RRR
RRRRRRRRRRRtnetconfpkg.confRRtnetconfpkg.gdtRRRR%R R.R1R»R¼R¤t
__author__(((s</usr/share/system-config-network/netconfpkg/NCProfileList.pyt<module>sˆÿÿ[	

haha - 2025