+
    Tr•j  ã                   óh   € R t ^ RIt^ RIt^ RIt^ RIt^ RIt^RIHt  ! R R]P                  4      t	R# )znetplan generate command lineN)Úutilsc                   ó>   a a€ ] tR t^t oV 3R ltR tR tRtVtV ;t	# )ÚNetplanGeneratec                ó,   <€ \         SV `  R RRR7       R# )ÚgeneratezFGenerate backend specific configuration files from /etc/netplan/*.yamlT)Ú
command_idÚdescriptionÚleafN)ÚsuperÚ__init__)ÚselfÚ	__class__s   &€Ú7/usr/share/netplan/netplan_cli/cli/commands/generate.pyr   ÚNetplanGenerate.__init__   s    ø€ Ü‰Ñ Jð&Aà"ð 	ö 	$ó    c                óê   € V P                   P                  R RR7       V P                   P                  RRR7       V P                  V n        RV n        V P                  4        V P                  4        R# )ú
--root-dirzOSearch for and generate configuration files in this root directory instead of /)Úhelpú	--mappingzFDisplay the netplan device ID/backend/interface name mapping and exit.Ú/N)ÚparserÚadd_argumentÚcommand_generateÚfuncÚ_rootdirÚ
parse_argsÚrun_command)r   s   &r   ÚrunÚNetplanGenerate.run%   sh   € Ø�‰× Ñ  Ø&wð 	!ô 	yà�‰× Ñ  Ø&nð 	!ô 	pð ×)Ñ)ˆŒ	ØˆŒà�‰ÔØ×ÑÖr   c           
     ó	  € R \         P                  9   dq   \        P                  ! R4      pVf   \	        R4      h\
        P                  ! VRRRRRRR	.4      pV^ 8w  d%   V^‚8X  d   \        R
4      h\	        RV,          4      hR# \        P                  ! 4       .pV P                  '       d'   VRV P                  .,          pV P                  V n        V P                  '       d   VRV P                  .,          p\         P                  P                  V P                  V P                  4      V n        V P                  '       d1   \        P"                  ! 4       V^ &   \
        P                  ! V4      pEMC\         P                  P%                  V P                   4      '       d&   \&        P(                  ! RV P                   4       ^pEMï\&        P(                  ! R4       V P                  '       Edl   \         P                  P                  V P                  RRRRR4      p\         P                  P                  V P                  RRR4      p\         P                  P                  V P                  RRR4      p\         P                  P                  V P                  RRR4      p\         P                  P+                  V4      WVV3 F  p \         P,                  ! VRR7       K  	  \        P"                  ! 4       p
 \         P                  P1                  V4      '       g   \         P2                  ! W¤4       \
        P4                  ! TRT P                  YVT.4       M\        P6                  ! 4        \&        P(                  ! RV4       \
        P                  ! V4      p \
        P4                  ! . R!O4       \<        P>                  ! V4       R#   \.         d)   p	\&        P(                  ! RT RT	 24        Rp	?	EK8  Rp	?	ii ; i  \.         d*   p	\&        P(                  ! RT RT
 RT	 24        Rp	?	LþRp	?	ii ; i  \
        P8                   d-   p	\&        P(                  ! R \;        T	4       24        Rp	?	LÁRp	?	ii ; i)"ÚSNAPÚbusctlNzmissing busctl utilityÚcallz--quietz--systemzio.netplan.Netplanz/io/netplan/NetplanÚGeneratez8PermissionError: failed to communicate with dbus servicez?RuntimeError: failed to communicate with dbus service: error %sr   r   z^Skipping daemon-reload... 'netplan try' is restoring configuration, remove %s to force re-run.z5executing Netplan systemd-generator via daemon-reloadÚusrÚlibÚsystemdzsystem-generatorsÚnetplanr   Ú	generatorzgenerator.earlyzgenerator.lateT)Úexist_okzCould not create directory z: zCould not create symlink z -> zcommand configure: running %sz+Could not call "udevadm control --reload": )ÚudevadmÚcontrolz--reload) ÚosÚenvironÚshutilÚwhichÚRuntimeErrorÚ
subprocessr"   ÚPermissionErrorr   Úget_configure_pathÚroot_dirr   ÚmappingÚpathÚjoinÚtry_ready_stampÚ_netplan_try_stampÚget_generator_pathÚisfileÚloggingÚdebugÚdirnameÚmakedirsÚOSErrorÚexistsÚsymlinkÚ
check_callÚsystemctl_daemon_reloadÚCalledProcessErrorÚstrÚsysÚexit)r   r!   ÚresÚargvÚsd_generatorÚgenerator_dirÚgenerator_early_dirÚgenerator_late_dirÚdÚeÚreal_generators   &          r   r   Ú NetplanGenerate.command_generate1   s€  € à”R—Z‘ZÔô —\’\ (Ó+ˆFØŠ~Ü"Ð#;Ó<Ð<ô —/’/ 6¨6°9¸jØ#7Ø#8Ø#7Ø#-ð	#%ó &ˆCð �aŒxØ˜#”:Ü)ØRóTð Tô 'ØYÐ\_Õ_óað añ ä×(Ò(Ó*Ð+ˆØ�=�=ˆ=Ø�\ 4§=¡=Ð1Õ1ˆDØ ŸM™MˆDŒMØ�<�<ˆ<Ø�[ $§,¡,Ð/Õ/ˆDä"$§'¡'§,¡,¨t¯}©}¸d×>RÑ>RÓ"SˆÔØ�<�<ˆ<Ü×.Ò.Ó0ˆD�‰GÜ—/’/ $Ó'ŠCÜ�W‰W�^‰^˜D×3Ñ3×4Ò4ô �MŠMð 7Ø8<×8OÑ8OôQàŠCä�MŠMÐQÔRØ�}�}‰}Ü!Ÿw™wŸ|™|¨D¯M©M¸5À%ÈÐTgÐirÓs�Ü "§¡§¡¨T¯]©]¸EÀ9ÈkÓ Z�Ü&(§g¡g§l¡l°4·=±=À%ÈÐTeÓ&fÐ#Ü%'§W¡W§\¡\°$·-±-ÀÈ	ÐScÓ%dÐ"äŸ'™'Ÿ/™/¨,Ó7¸Ð]oÓp�AðNÜŸš A°×5ñ qô "'×!9Ò!9Ó!;�ðgÜŸ7™7Ÿ>™>¨,×7Ò7ÜŸ
š
 >Ô@ô ×%Ò% |°\À4Ç=Á=Ø'4ÐK]ð'_õ `ô ×-Ò-Ô/ä�MŠMÐ9¸4Ô@Ü—/’/ $Ó'ˆCðVÜ×%Ò%Ò&HÔIô
 	�Š�Žøô3 #ô NÜŸšÐ(CÀAÀ3ÀbÈÈÐ&L×MÓMûðNûô ô gÜ—M’MÐ$=¸l¸^È4ÐP^ÐO_Ð_aÐbcÐadÐ"e×fÑfûðgûô ×0Ñ0ô VÜ—’Ð KÌCÐPQËFÈ8ÐT×UÑUûðVúsN   ËOË=$P Ì"P Î!P> ÏPÏO?Ï?PÐP;ÐP6Ð6P;Ð>Q?Ñ"Q:Ñ:Q?)r9   r   r   )
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r   r   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   Ú__classdict__s   @@r   r   r      s   ù‡ € õ$ò
÷Xò Xr   r   )
Ú__doc__r<   r,   rG   r1   r.   Ú r   ÚNetplanCommandr   © r   r   Ú<module>r_      s0   ðñ$ $ã Û 	Û 
Û Û å ôl�e×*Ñ*ö lr   