�
oB�]c@s*ddlmZdefd��YZdS(i(tNictConfigcBs�eZdZdZdZdZdZdZdZdZ dZ
d Zd
Zd�Z
ed��Zed
��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��ZRS(sT
Stores the Contents specified in the Customization
Specification file.
sCUSTOM-SCRIPT|SCRIPT-NAMEsDNS|NAMESERVER|sNETWORK|DOMAINNAMEsNETWORK|HOSTNAMEsMISC|MARKER-IDsPASSWORD|-PASSsPASSWORD|RESETsDNS|SUFFIX|sDATETIME|TIMEZONEsDATETIME|UTCcCs
||_dS(N(t_configFile(tselft
configFile((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt__init__scCs|jjtjd�S(sReturn the hostname.N(RtgetRtHOSTNAMEtNone(R((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt host_name scCs|jjtjd�S(sReturn the domain name.N(RRRt
DOMAINNAMER(R((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pytdomain_name%scCs|jjtjd�S(sReturn the timezone.N(RRRtTIMEZONER(R((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyttimezone*scCs|jjtjd�S(s.Retrieves whether to set time to UTC or Local.N(RRRtUTCR(R((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pytutc/scCs|jjtjd�S(s#Return the root password to be set.N(RRRtPASSR(R((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pytadmin_password4scCsdg}|jjtj�}xBtd|d�D]-}tjt|�}|j|j|�q/W|S(sReturn the list of DNS servers.i(Rtget_count_with_prefixRtDNStrangetstrtappend(Rtrestcnttitkey((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pytname_servers9scCsdg}|jjtj�}xBtd|d�D]-}tjt|�}|j|j|�q/W|S(s Return the list of DNS Suffixes.i(RRRtSUFFIXRRR(RRRRR((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pytdns_suffixesDscCsJg}|jd}x0|jd�D]}|jt||j��q#W|S(s#Return the list of associated NICs.sNIC-CONFIG|NICSt,(RtsplitRR(RRtnicstnic((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyR Os
cCsI|jjtjd�}|j�}|dkr?td��n|dkS(s1Retreives if the root password needs to be reset.tnotyess$ResetPassword value should be yes/no(syesR"(RRRt RESETPASStlowert
ValueError(Rt resetPass((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pytreset_passwordYs
cCs|jjtjd�S(sReturns marker id.N(RRRtMARKERIDR(R((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt marker_idbscCs|jjtjd�S(s,Return the name of custom (pre/post) script.N(RRRt
CUSTOM_SCRIPTR(R((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pytcustom_script_namegs(t__name__t
__module__t__doc__R+RR
RR)RR$RRRRtpropertyR RR
RRRRR R(R*R,(((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyRs.
N(R!RtobjectR(((sO/usr/lib/python2.7/site-packages/cloudinit/sources/helpers/vmware/imc/config.pyt<module> s |