Skip to content

RFE: accept id instead of name #16

@xsuchy

Description

@xsuchy

neutron_router_gateway accepts router_name as parametr and it really must be name. It would be nice if that can be UUID (which you get as output from neutron_router), so you can write something like:

  - name: Create a router for Cloudintern
    neutron_router:
      login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
      tenant_name=cloudintern
      name=ext-to-int
    register: ROUTER_ID
  - name: Connect router's gateway to the external network
    neutron_router_gateway:
      login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
      router_name="{{ ROUTER_ID.id }}"
      network_name="{{ EXTERNAL_ID.id }}"

I sure that this happen from neutron_router_gateway, but it is likely that other modules behave similary (I'm not there yet). It would be nice if generaly you can pass to every foo_name UUID instead of name.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions