%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/neutron_secgroup.pyo

�
���^c@@sMdZddlmZmZmZdZd�Zdd�Zdd�Z	dS(u�
Management of OpenStack Neutron Security Groups
===============================================

.. versionadded:: 2018.3.0

:depends: shade
:configuration: see :py:mod:`salt.modules.neutronng` for setup instructions

Example States

.. code-block:: yaml

    create security group;
      neutron_secgroup.present:
        - name: security_group1
        - description: "Very Secure Security Group"

    delete security group:
      neutron_secgroup.absent:
        - name_or_id: security_group1
        - project_name: Project1

    create security group with optional params:
      neutron_secgroup.present:
        - name: security_group1
        - description: "Very Secure Security Group"
        - project_id: 1dcac318a83b4610b7a7f7ba01465548

    create security group with optional params:
      neutron_secgroup.present:
        - name: security_group1
        - description: "Very Secure Security Group"
        - project_name: Project1
i(tabsolute_importtprint_functiontunicode_literalsuneutron_secgroupcC@sdtkrtStdfS(Nuneutronng.list_subnetsufThe neutronng execution module failed to load:                    shade python module is not available(t__salt__t__virtualname__tFalse(((s@/usr/lib/python2.7/site-packages/salt/states/neutron_secgroup.pyt__virtual__+scK@s�i|d6id6td6dd6}td|�}td|�d|krd|d|d	<|d=ntd
d|d	�}|dkr�t|d<d|d<|Std
d|di|jd6�}|dkr(tdtkrd|d<||d<d|d<|Std|�}||d<d|d<|Std||�}|r�tdtkrsd|d<||d<d|d<|Stdd||�|dj|�d|d<n|S(u�
    Ensure a security group exists.

    You can supply either project_name or project_id.

    Creating a default security group will not show up as a change;
    it gets created through the lookup process.

    name
        Name of the security group

    description
        Description of the security group

    project_name
        Name of Project

    project_id
        ID of Project

    unameuchangesuresultuucommentuargs.clean_kwargsuneutronng.setup_cloudsuproject_nameu
project_idukeystoneng.project_gettnameuproject does not existuneutronng.security_group_gettfiltersu	tenant_idutestuSecurity Group will be created.uneutronng.security_group_createuCreated security groupuneutronng.compare_changesuSecurity Group will be updated.uneutronng.security_group_updatetsecgroupuUpdated security groupN(tTruet	__utils__RtNoneRtidt__opts__tupdate(RtauthtkwargstrettprojectR	tchanges((s@/usr/lib/python2.7/site-packages/salt/states/neutron_secgroup.pytpresent2sL
















cK@s�i|d6id6td6dd6}td|�}td|�tdd	|d
�|d<tdd	|d
i|dd6�}|r�tdtkr�d|d<i|jd6|d<d|d<|Stdd	|�||dd<d|d<n|S(u^
    Ensure a security group does not exist

    name
        Name of the security group

    unameuchangesuresultuucommentuargs.clean_kwargsuneutronng.setup_cloudsukeystoneng.project_getRuproject_nameu
project_iduneutronng.security_group_getRutestuiduSecurity group will be deleted.uneutronng.security_group_deleteuDeleted security groupN(R
RRRRR
(RRRRR	((s@/usr/lib/python2.7/site-packages/salt/states/neutron_secgroup.pytabsent{s*






N(
t__doc__t
__future__RRRRRRRR(((s@/usr/lib/python2.7/site-packages/salt/states/neutron_secgroup.pyt<module>$s
	I

Zerion Mini Shell 1.0