nautobot / nautobot-plugin-ssot-ipfabric

Nautobot SSoT IP Fabric
https://nautobot.github.io/nautobot-plugin-ssot-ipfabric/
Other
8 stars 2 forks source link

Device Role #72

Closed ghost closed 1 year ago

ghost commented 2 years ago

Environment

Summary

IP Fabric classifies devices into different "Types" (column devType) which can be used as a Nautobot Device Role. Currently all devices are sync'ed using the default:

DEFAULT_DEVICE_ROLE = CONFIG.get("default_device_role", "Network Device")
DEFAULT_DEVICE_ROLE_COLOR = CONFIG.get("default_device_role_color", "ff0000")

Proposed Functionality

> devices = ipf.inventory.devices.all()
> dev_type = {d['devType'] for d in devices}
> print(dev_type)
{'switch', 'fw', 'waas', 'wlc', 'lb', 'l3switch', 'router'}

Open Questions

Use Case

Current Device Types

List of Device Types in IP Fabric v6.2.1 is shown below. Not all are used for Network Device Inventory purposes. For instance host is used for IPF discovered hosts.

[
  'aciLeaf',
  'aciSpine',
  'ap',
  'apic',
  'cloudInstance',
  'cloudInternetGw',
  'cloudLoadBalancer',
  'cloudNatGw',
  'cloudRouter',
  'cloudTransitHub',
  'cloudVpnGw',
  'fex',
  'fw',
  'host',
  'l3switch',
  'lb',
  'nx7000',
  'phone',
  'router',
  'securityManagement',
  'switch',
  'unknown',
  'vgw',
  'waas',
  'wlc',
]
ghost commented 2 years ago

Or should this be a tag not a role?

collinsjas commented 1 year ago

This should be a role. Role of Network Device is too generic.

pke11y commented 1 year ago

The ipfabric dev_type looks good as a Device Role

alhogan commented 1 year ago

This feature will be included in the next release of nautobot-ssot with the inclusion of the ipfabric integration.