networktocode / ntc-netbox-plugin-onboarding

A plugin for NetBox to easily onboard new devices.
Other
246 stars 46 forks source link

Pass netbox plugin settings for default mappings #49

Closed ryanmerolle closed 4 years ago

ryanmerolle commented 4 years ago

Environment

Proposed Functionality

The NetBox plugins function has a way to pass cars from the NetBox config file for the deployed plugin. It would be useful to use this function to pass platform and manufacturer name mappings. Example:

 PLUGINS_CONFIG = {
   "netbox_onboarding": {
      platform_map: {
            "arista_eos": "eos",
            "cisco_ios": "ios",
     },
      manufacturer_map: {
            "Arista": "Arista Networks",
            "Cisco": "Cisco Networks",
     },
   }
 }

Use Case

This would be useful if individuals did not want to rename their current platform and manufacturers or the associated slugs. It may seem like a minor hurtle for some people, but their automation may already match a slug they set already or they may want the slug to exactly match the napalm driver.

dgarros commented 4 years ago

Thanks @ryanmerolle, I think it's a great idea.