Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Device role and device site per device customization #51

Closed
qduk opened this issue Sep 26, 2021 · 2 comments
Closed

Device role and device site per device customization #51

qduk opened this issue Sep 26, 2021 · 2 comments

Comments

@qduk
Copy link
Contributor

qduk commented Sep 26, 2021

Environment

  • Nautobot version: 1.0.1
  • aristacv-sync version: 1.0.2

Proposed Functionality

Rather than having a blanket default site and/or device role, provide some method that allows customizing the site and/or device roles applied to devices when imported.

Use Case

As an end user using the current state of the plugin, changing device roles and device sites must be down manually after importing data in Nautobot. Allowing for customization of device role and sites would streamline the import process.

@qduk qduk changed the title Customizing device role and site for device import Device role and device site per device customization Sep 26, 2021
@qduk
Copy link
Contributor Author

qduk commented Sep 26, 2021

Our initial idea for this is to allow an end user to provide a dictionary that maps substrings to site names as a plugin variables. An example would be something like the following:

PLUGINS_CONFIG = {
    "nautobot_ssot_aristacv":
    "site_mappings": {
        "nyc": "New York City",
        "atl": "Atlanta",
        "sfo": "San Francisco",
        "dal": "Dallas"
    }
}

We could check each device to see if any of the provided substrings exists in the device hostname. We'll take the provided value create the site in Nautobot if it doesn't exists and assign the device to that site.

@qduk
Copy link
Contributor Author

qduk commented Oct 25, 2022

Closed per Justins awesome work in #108

@qduk qduk closed this as completed Oct 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant