+
    i                        a  R t0 t R t^ RIt^ RIt^ RIHtHtHt ^ RIH	t	 ^ RI
Ht ^ RIHt ^ RIHt ^ RIHtHt ^ RIHt ^ R	IHt R
RR].R]R. /t] ^ k ]P0                  ! ]4      tRtRtR R ltR R ltR# )z3Install hotplug udev rules if supported and enabledN)stagessubputil)Cloud)Config)
MetaSchema)ALL_DISTROS)
EventScope	EventType)PER_INSTANCE)
DataSourceidcc_install_hotplugdistros	frequencyactivate_by_schema_keysz2/etc/udev/rules.d/90-cloud-init-hook-hotplug.rulesz# Installed by cloud-init due to network hotplug userdata
ACTION!="add", GOTO="cloudinit_end"{extra_rules}
LABEL="cloudinit_hook"
SUBSYSTEM=="net", RUN+="{libexecdir}/hook-hotplug"
LABEL="cloudinit_end"
c                <    V ^8  d   QhR\         R\        R\        /# )   
datasourcecfgnetwork_hotplug_enabled)r   r   bool)formats   "E/usr/lib/python3/dist-packages/cloudinit/config/cc_install_hotplug.py__annotate__r   %   s&     38 3838	38 "38    c                 \   \         P                  V P                  \         P                  .4      P                  \        P
                  \        4       4      9   p\        P                  ! V V\         P                  \        P
                  R 7      pV'       d	   V'       g   \        P                  P                  \        4      '       dJ   \        P                  R4       \        P                   ! \        4       \"        P"                  ! . RO4       R# V'       d   \        P%                  R4       R# \        P                  R4       R# \"        P&                  ! R4      '       g   \        P                  R4       R# V P(                  e   V P(                  MRpV'       d
   RV,           pR	p\        P                  P                  V4      '       g   R
p\        P+                  R4       \        P,                  ! \        \.        P1                  WVR7      R7       \"        P"                  ! . RO4       R# ))r   r   event_source_typescopez!Uninstalling hotplug, not enabledudevadmzOHotplug is unsupported by current datasource. Udev rules will NOT be installed.z%Skipping hotplug install, not enabledNz+Skipping hotplug install, udevadm not found 
z/usr/libexec/cloud-initz/usr/lib/cloud-initzInstalling hotplug.)extra_rules
libexecdir)filenamecontent)r   controlz--reload-rules)r
   HOTPLUGget_supported_eventsgetr	   NETWORKsetr   update_event_enabledospathexistsHOTPLUG_UDEV_PATHLOGdebugr   del_filer   warningwhichextra_hotplug_udev_rulesinfo
write_fileHOTPLUG_UDEV_RULES_TEMPLATEr   )r   r   r   hotplug_supportedhotplug_enabledr"   r#   s   &&&    r   install_hotplugr<   %   s   
 "))''):):(;<@@	

 11#++  	O /77>>+,,II9:MM+,II>? 	 %KK4 	 II=>::i  		?@ ..: 	++ 
 [(*J77>>*%%*
HH"#OO"+22# 3 
 	II67r   c          
      L    V ^8  d   QhR\         R\        R\        R\        RR/# )r   namer   cloudargsreturnN)strr   r   list)r   s   "r   r   r   [   s6     D D D6 D% Dt D Dr   c                     R V9   ;'       dJ    RVR ,          9   ;'       d6    RVR ,          R,          9   ;'       d    RVR ,          R,          R,          9   p\        VP                  W4       R# )updatesnetworkwhenhotplugN)r<   r   )r>   r   r?   r@   r   s   &&&& r   handlerI   [   st    S 	; 	;Y'	; 	;c)nY//	; 	; Y	26::	  E$$cCr   c                @    V ^8  d   Qh/ ^ \         9   d
   \        ;R&   # )r   meta)__conditional_annotations__r   )r   s   "r   r   r      s     9 9 j  :r   ) rL   __doc__loggingr-   	cloudinitr   r   r   cloudinit.cloudr   cloudinit.configr   cloudinit.config.schemar   cloudinit.distrosr   cloudinit.eventr	   r
   cloudinit.settingsr   cloudinit.sourcesr   rK   	getLogger__name__r1   r0   r9   r<   rI   r   )rL   s   @r   <module>rY      s~    9  	 ( ( ! # . ) 1 + ( 	
}r	  !
 I  38lDr   