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

Add parent_tenant_group argument to tenant_group module #87

Closed
mitchell-foxworth opened this issue Sep 14, 2021 · 1 comment
Closed

Comments

@mitchell-foxworth
Copy link
Contributor

ISSUE TYPE
  • Feature Idea
SOFTWARE VERSIONS
pynautobot

1.0.2

Ansible:

2.10.12

Nautobot:

1.0.3

Collection:

3.0.0

SUMMARY

The tenant_group module does not currently allow for a parent_tenant_group argument (which is present in the corresponding Netbox module). The parent_tenant_group is useful to create hierarchies of tenant groups.

STEPS TO REPRODUCE

Try to create or update a tenant group, using the parent_tenant_group parameter.

    - name: Create our Tenant Groups in Nautobot
      networktocode.nautobot.tenant_group:
        description: "{{ item.description }}"
        name: "{{ item.name }}"
        # Parent Tenant Group is currently absent from the collection.
        parent_tenant_group: "{{ item.parent }}"
        token: "{{ nautobot_token }}"
        url: "{{ nautobot_url }}"
        state: present
        validate_certs: false
      loop: "{{ all_tenant_groups }}"
EXPECTED RESULTS

The tenant group to be added with the correct parent.

ACTUAL RESULTS
parent_tenant_group is not a supported parameter
mitchell-foxworth added a commit to mitchell-foxworth/nautobot-ansible that referenced this issue Sep 14, 2021
@FragmentedPacket
Copy link
Contributor

This was resolved via #88

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

2 participants