Documentation

quantum_subnet - Add/remove subnet from a network

DEPRECATED

Deprecated in 2.0. Use os_subnet instead

Synopsis

Add/remove subnet from a network

Requirements (on host that executes module)

  • python >= 2.6
  • python-neutronclient or python-quantumclient
  • python-keystoneclient

Options

parameter required default choices comments
allocation_pool_end
no None
    From the subnet pool the last IP that should be assigned to the virtual machines
    allocation_pool_start
    no None
      From the subnet pool the starting address from which the IP should be allocated
      auth_url
      no http://127.0.0.1:35357/v2.0/
        The keystone URL for authentication
        cidr
        yes None
          The CIDR representation of the subnet that should be assigned to the subnet
          dns_nameservers
          (added in 1.4)
          no None
            DNS nameservers for this subnet, comma-separated
            enable_dhcp
            no True
              Whether DHCP should be enabled for this subnet.
              gateway_ip
              no None
                The ip that would be assigned to the gateway for this subnet
                ip_version
                no 4
                  The IP version of the subnet 4 or 6
                  login_password
                  yes True
                    Password of login user
                    login_tenant_name
                    yes True
                      The tenant name of the login user
                      login_username
                      yes admin
                        login username to authenticate to keystone
                        name
                        yes None
                          The name of the subnet that should be created
                          network_name
                          yes None
                            Name of the network to which the subnet should be attached
                            region_name
                            no None
                              Name of the region
                              state
                              no present
                              • present
                              • absent
                              Indicate desired state of the resource
                              tenant_name
                              no None
                                The name of the tenant for whom the subnet should be created

                                Examples

                                # Create a subnet for a tenant with the specified subnet
                                - quantum_subnet: state=present login_username=admin login_password=admin
                                                  login_tenant_name=admin tenant_name=tenant1
                                                  network_name=network1 name=net1subnet cidr=192.168.0.0/24"
                                

                                For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.