%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/lvs_service.pyo

�
���^c@@sPdZddlmZmZmZd�Zdddd�Zddd�ZdS(uc
Management of LVS (Linux Virtual Server) Service
================================================
i(tabsolute_importtprint_functiontunicode_literalscC@sdtkrdStS(u>
    Only load if the lvs module is available in __salt__
    u
lvs.get_rulesulvs_service(t__salt__tFalse(((s;/usr/lib/python2.7/site-packages/salt/states/lvs_service.pyt__virtual__suwlcc	C@s�i|d6id6td6dd6}tdd|d|�}|tkr(tdd|d|d	|�}|tkr�d
j|�|d<|Stdr�d|d<dj|�|d<|Std
d|d|d	|�}|tkrdj|�|d<d|d|<|St|d<dj|�|d<|Sn�tdrSdj|�|d<d|d<|Stdd|d|d	|�}|tkr�dj|�|d<d|d|<|Sdj||�|d<t|d<|SdS(u�
    Ensure that the named service is present.

    name
        The LVS service name

    protocol
        The service protocol

    service_address
        The LVS service address

    scheduler
        Algorithm for allocating TCP connections and UDP datagrams to real servers.

    .. code-block:: yaml

        lvstest:
          lvs_service.present:
            - service_address: 1.1.1.1:80
            - protocol: tcp
            - scheduler: rr
    unameuchangesuresultuucommentulvs.check_servicetprotocoltservice_addresst	scheduleruLVS Service {0} is presentutestu9LVS Service {0} is present but some options should updateulvs.edit_serviceu LVS Service {0} has been updateduUpdateuLVS Service {0} update failedu6LVS Service {0} is not present and needs to be createdulvs.add_serviceu LVS Service {0} has been createduPresentu"LVS Service {0} create failed({1})N(tTrueRtformatt__opts__tNoneR(	tnameRRRtrett
service_checktservice_rule_checktservice_edittservice_add((s;/usr/lib/python2.7/site-packages/salt/states/lvs_service.pytpresentsR

		

	


	
cC@s�i|d6id6td6dd6}tdd|d|�}|tkr�td	rrd|d<d
j|�|d<|Stdd|d|�}|tkr�dj|�|d<d
|d|<|Sdj||�|d<t|d<|Sndj|�|d<|S(u�
    Ensure the LVS service is absent.

    name
        The name of the LVS service

    protocol
        The service protocol

    service_address
        The LVS service address
    unameuchangesuresultuucommentulvs.check_serviceRRutestu2LVS Service {0} is present and needs to be removedulvs.delete_serviceu LVS Service {0} has been removeduAbsentu#LVS Service {0} removed failed({1})u7LVS Service {0} is not present, so it cannot be removedN(R	RRRR
R(R
RRRRtservice_delete((s;/usr/lib/python2.7/site-packages/salt/states/lvs_service.pytabsentas,

	

	
N(	t__doc__t
__future__RRRRRRR(((s;/usr/lib/python2.7/site-packages/salt/states/lvs_service.pyt<module>s	L

Zerion Mini Shell 1.0