W3cubDocs

/Ansible

quantum_router_interface - Attach/Detach a subnet’s interface to a router

DEPRECATED

Deprecated in 2.0. Use os_router instead

Synopsis

Attach/Detach a subnet interface to a router, to provide a gateway for the subnet.

Requirements (on host that executes module)

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

Options

parameter required default choices comments
auth_url
no http://127.0.0.1:35357/v2.0/
The keystone URL for authentication
login_password
yes yes
Password of login user
login_tenant_name
yes yes
The tenant name of the login user
login_username
yes admin
login username to authenticate to keystone
region_name
no None
Name of the region
router_name
yes None
Name of the router to which the subnet's interface should be attached.
state
no present
  • present
  • absent
Indicate desired state of the resource
subnet_name
yes None
Name of the subnet to whose interface should be attached to the router.
tenant_name
no None
Name of the tenant whose subnet has to be attached.

Examples

# Attach tenant1's subnet to the external router
- quantum_router_interface: state=present login_username=admin
                            login_password=admin
                            login_tenant_name=admin
                            tenant_name=tenant1
                            router_name=external_route
                            subnet_name=t1subnet

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

© 2012–2016 Michael DeHaan
© 2016 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/quantum_router_interface_module.html