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

Document DataMapping and auto-populate it in nautobot_ssot.contrib.NautobotAdapter #235

Open
Tracked by #630
itdependsnetworks opened this issue Oct 5, 2023 · 1 comment
Labels
integration: contrib Contrib related issues and PRs status: accepted This issue has been accepted by the maintainers team for implementation type: enhancement New feature or request

Comments

@itdependsnetworks
Copy link
Contributor

Environment

  • Nautobot version: latest
  • nautobot-ssot version: latest

Proposed Functionality

Document the data_mappings classmethod and DataMapping class, e.g.

    @classmethod
    def data_mappings(cls):
        """Shows mapping of models between ACI and Nautobot."""
        return (
            DataMapping("Tenant", None, "Tenant", reverse("tenancy:tenant_list")),
            DataMapping("Node", None, "Device", reverse("dcim:device_list")),
            DataMapping("Model", None, "Device Type", reverse("dcim:devicetype_list")),
            DataMapping("Controller/Leaf/Spine OOB Mgmt IP", None, "IP Address", reverse("ipam:ipaddress_list")),
            DataMapping("Subnet", None, "Prefix", reverse("ipam:prefix_list")),
            DataMapping("Interface", None, "Interface", reverse("dcim:interface_list")),
            DataMapping("VRF", None, "VRF", reverse("ipam:vrf_list")),
        )

Use Case

to communicate how thing the ui is populated.

@Kircheneer
Copy link
Contributor

In addition, this should auto-populate from nautobot_ssot.contrib.NautobotAdapter

@Kircheneer Kircheneer added status: accepted This issue has been accepted by the maintainers team for implementation type: enhancement New feature or request labels Oct 5, 2023
@Kircheneer Kircheneer added the integration: contrib Contrib related issues and PRs label Dec 12, 2024
@Kircheneer Kircheneer changed the title Document DataMapping Document DataMapping and auto-populate it in nautobot_ssot.contrib.NautobotAdapter Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration: contrib Contrib related issues and PRs status: accepted This issue has been accepted by the maintainers team for implementation type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants