File: //proc/self/root/lib/python3.6/site-packages/ipalib/install/__pycache__/hostname.cpython-36.pyc
3
�d[ep � @ sV d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z G dd � d ej
�Zd
S )z
Host name installer module
� )�typing)�knob)�CheckedIPAddress� )�service)�prepare_onlyc @ sz e Zd ZdZeeje ddddd�Ze e�Zej
dd� �Zedd d
�Ze e�Zeddd
�Ze e�Zeddd
�Z
e e
�Z
dS )
�HostNameInstallInterfacezi
Interface common to all service installers which create DNS address
records for `host_name`
NzVSpecify IP address that should be added to DNS. This option can be used multiple timesz--ip-addressZ
IP_ADDRESS)�descriptionZ cli_namesZcli_metavarc C sR xL|D ]D}yt |� W q tk
rH } ztdj||���W Y d d }~X qX qW d S )Nzinvalid IP address {0}: {1})r � Exception�
ValueError�format)�self�values�value�e� r �/usr/lib/python3.6/hostname.py�ip_addresses s
z%HostNameInstallInterface.ip_addresseszJAll routable IP addresses configured on any interface will be added to DNS)r z6Do not use DNS for hostname lookup during installationz/do not wait until the host is resolvable in DNS)�__name__�
__module__�__qualname__�__doc__r r ZListr r r Z validatorZall_ip_addressesZno_host_dnsZno_wait_for_dnsr r r r r s(
r N)r Zipapython.installr Zipapython.install.corer Zipapython.ipautilr � r r ZServiceInstallInterfacer r r r r �<module> s