Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: accept id instead of name #16

Open
xsuchy opened this issue Sep 16, 2014 · 1 comment
Open

RFE: accept id instead of name #16

xsuchy opened this issue Sep 16, 2014 · 1 comment

Comments

@xsuchy
Copy link

xsuchy commented Sep 16, 2014

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.

@xsuchy
Copy link
Author

xsuchy commented Sep 16, 2014

Other approach can be that module return name beside just id. However using UUID is likely safer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants