%PDF- %PDF-
| Direktori : /proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/salt/states/neutron_subnet.pyc |
�
���^c @@ sM d Z d d l m Z m Z m Z d Z d � Z d d � Z d d � Z d S( uG
Management of OpenStack Neutron Subnets
=========================================
.. versionadded:: 2018.3.0
:depends: shade
:configuration: see :py:mod:`salt.modules.neutronng` for setup instructions
Example States
.. code-block:: yaml
create subnet:
neutron_subnet.present:
- name: subnet1
- network_name_or_id: network1
- cidr: 192.168.199.0/24
delete subnet:
neutron_subnet.absent:
- name: subnet2
create subnet with optional params:
neutron_subnet.present:
- name: subnet1
- network_name_or_id: network1
- enable_dhcp: True
- cidr: 192.168.199.0/24
- allocation_pools:
- start: 192.168.199.5
end: 192.168.199.250
- host_routes:
- destination: 192.168..0.0/24
nexthop: 192.168.0.1
- gateway_ip: 192.168.199.1
- dns_nameservers:
- 8.8.8.8
- 8.8.8.7
create ipv6 subnet:
neutron_subnet.present:
- name: v6subnet1
- network_name_or_id: network1
- ip_version: 6
i ( t absolute_importt print_functiont unicode_literalsu neutron_subnetc C@ s d t k r t St d f S( Nu neutronng.list_subnetsuf The neutronng execution module failed to load: shade python module is not available( t __salt__t __virtualname__t False( ( ( s>