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

Example in doc of opentelekomcloud.cloud.vpc_route is wrong #260

Open
hadoopch opened this issue Feb 9, 2023 · 1 comment
Open

Example in doc of opentelekomcloud.cloud.vpc_route is wrong #260

hadoopch opened this issue Feb 9, 2023 · 1 comment

Comments

@hadoopch
Copy link

hadoopch commented Feb 9, 2023

Hello ,

today i used opentelekomcloud.cloud.vpc_route module.

I checked the example in the doc:

# Create a vpc route.
- opentelekomcloud.cloud.vpc_route:
    destination: "6ysa5bac-0925-6d5b-add8-cb6667b8"
    nexthop: "67sa5bac-0925-4p5b-add8-cb6667b8"
    router_id: "89sa5bac-0925-9h7b-add8-cb6667b8"
  register: vpc_route

According to the example the option for the router ID is:

  • router_id

But this is not working. The options is:

  • router

Could you please correct the doc?

Thanks in advance

This is also confusing:

- router
        ID or name of the router requesting for creating a route.
        [Default: (null)]
        type: str

Because names are not working.

Regards

Uli

@hadoopch
Copy link
Author

hadoopch commented Feb 9, 2023

Hi ,

the delete example seems to be wrong too.

# Delete vpc route
- opentelekomcloud.cloud.vpc_route:
    name: "peering2"
    state: absent

There is no option name available.

A woprking example would be:

- name: "Delete Route"
  opentelekomcloud.cloud.vpc_route:
     route_id: a5904bd2-9b35-4957-8705-0ad5ab95a77b
     state: absent

Regards
Uli

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

No branches or pull requests

1 participant