+
    iL  c                   sJ    R t ^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt R t	R t
R# )z.Functions to search for and change ifcfg filesN)config)log)ifcfgc                s   \         P                  P                  \        P                  4      '       g   R# \        \         P                  ! \        P                  4      4       F  pVP                  R4      '       g   K  R F  pVP                  V4      '       g   K  K  	  RV9   d   KG  \        \        P                  : RV: 24      pVP                  4        VP                  R4      V 8X  g   K  Vu # 	  \        P                  : RV : 2p\         P                  P                  V4      '       d   \        V4      pVP                  4        V# R# )z6search ifcfg file for the interface in config.IFCFGDIRNzifcfg-Z.Z/ZDEVICEz/ifcfg-)z.bakz.origz.rpmnewz.rpmorigz.rpmsavez-range)osZpathZexistsr    ZIFCFGDIRZsortedZlistdirZ
startswithZendswithr   Zreadget)	interfacefilenameZignored
ifcfg_files   &   ;/usr/lib/python3.14/site-packages/firewall/core/fw_ifcfg.pysearch_ifcfg_of_interfacer	      s     77>>&//**2::foo67""8,,UG  )) V (?foox@A
>>(#y0 8 !';H	ww~~h8_
    c                s2   V f   Rp \        V4      pVe   VP                  R4      V 8w  dj   VP                  R4      f   V R8X  gN   \        P                  ! RV : RVP                  : R24       VP                  RV 4       VP                  4        R# R# R# R# )zUSet zone (ZONE=<zone>) in the ifcfg file that uses the interface
(DEVICE=<interface>)NZ ZZONEzSetting ZONE=z in 'Z')r	   r   r   Zdebug1r   ZsetZwrite)Zzoner   r   s   && r   ifcfg_set_zone_of_interfacer   0   s     |*95JNN6"d*'/DBJ

j6I6IJKvt$	 5? + 	r
   )Z__doc__r   Zos.pathZfirewallr    Zfirewall.core.loggerr   Zfirewall.core.io.ifcfgr   r	   r   ) r
   r   <module>r      s#    5 	   $ (<r
   