Skip to main content
CloudEnterprise

Technical Information

Juniper Mist to NetBox Object Mapping

This document provides a comprehensive mapping of Juniper Mist object types to their corresponding NetBox object types, based on the integration implementation.

Object Type Mapping Table

Juniper Mist ObjectNetBox Object TypeKey Fields MappedMapping Details
OrganizationTenantorg_idname
org_idslug
org_iddescriptionMaps Mist organization ID to NetBox tenant with descriptive naming.
SiteSitenamename
nameslug
timezonetime_zone
idcustom_fields.mist_idMaps Mist sites to NetBox sites with timezone information and Mist ID preservation.
Device (Inventory)Devicename or serialname
serialserial
connectedstatus
typerole.name
modeldevice_type.model
maccustom_fields.mist_mac
idasset_tagMaps Mist inventory devices to NetBox devices with connection status, hardware details, and custom fields.
Device TypeDeviceTypemodelmodel
typecustom_fields.mist_typeCreates device types based on Mist device model with type information in custom fields.
Device RoleDeviceRoletypename
typeslugMaps Mist device types (ap, switch, etc.) to NetBox device roles.
PlatformPlatformStaticnameAlways set to "Junos" for all Mist devices.
ManufacturerManufacturerStaticnameAlways set to "Juniper" for all Mist devices.
Wireless LANWirelessLANssidssid
enabledstatus
auth.typeauth_type
auth.pairwiseauth_cipher
idcustom_fields.mist_wlan_id
ap_idscustom_fields.mist_ap_ids
apply_tocustom_fields.mist_ap_scope
wxtag_idscustom_fields.mist_wxtag_idsMaps Mist WLANs to NetBox wireless LANs with authentication details and AP associations.
Unassigned SiteSiteStaticnameCreates "Unassigned Mist Inventory" site for devices without valid site assignments.

Field Mapping Details

Device Status Mapping

Mist Connection StatusNetBox Status
true (connected)active
false (disconnected)offline

Wireless LAN Status Mapping

Mist WLAN StatusNetBox Status
true (enabled)active
false (disabled)disabled

Authentication Type Mapping

Mist Auth TypeNetBox Auth Type
openopen
pskwpa-personal
psk-tkipwpa-personal
psk-wpa2-tkipwpa-personal
eapwpa-enterprise
eap192wpa-enterprise
wepwep
Any other valueUnknown

Authentication Cipher Mapping

Mist Auth TypeMist Pairwise CiphersNetBox Auth Cipher
eap192Anyaes
psk-tkipAnytkip
psk-wpa2-tkipAnytkip
wepAnyauto
openAnyNone
pskContains "tkip"tkip
pskContains "ccmp" or "wpa3"aes
eapContains "tkip"tkip
eapContains "ccmp" or "wpa3"aes
Any otherNo recognized ciphersNone

Site Assignment Logic

The integration uses sophisticated site assignment:

  1. Valid Site Assignment: Devices with valid site_id are assigned to corresponding NetBox sites
  2. Unassigned Site Fallback: Devices with invalid or missing site_id are assigned to "Unassigned Mist Inventory" site
  3. Site Creation: All Mist sites are automatically created as NetBox sites with timezone information

WLAN Scope Mapping

Mist Apply ToNetBox ScopeCustom Field Usage
sitescope_siteStandard site scoping
wxtagsscope_siteUses mist_wxtag_ids custom field
apsscope_siteUses mist_ap_ids custom field
Nonescope_siteDefault site scoping

Custom Fields

The integration requires and utilizes several custom fields:

Custom FieldObject TypePurpose
mist_idSiteStores Mist site ID for reference
mist_macDeviceStores Mist device MAC address
mist_typeDevice TypeStores Mist device type (ap, switch, etc.)
mist_wlan_idWireless LANStores Mist WLAN ID for reference
mist_ap_idsWireless LANStores JSON array of AP IDs serving the WLAN
mist_ap_scopeWireless LANStores WLAN application scope (site, wxtags, aps)
mist_wxtag_idsWireless LANStores JSON array of WX tag IDs (when apply_to=wxtags)
mist_wlans_servedDeviceStores JSON array of WLAN IDs served by the device
mist_aps_serving_thisWireless LANStores JSON array of device MACs serving the WLAN

Tags and Metadata

All objects created by the integration are tagged with:

  • juniper
  • mist
  • discovered

Notes

  • Device Naming: Devices are named using the Mist name field, falling back to serial if name is empty, or "Unnamed" if both are missing
  • Serial Number Handling: Uses Mist serial field as NetBox device serial number
  • Asset Tag: Uses Mist device id as NetBox asset tag for inventory tracking
  • WLAN Uniqueness: WLANs are deduplicated based on unique (wlan_id, site_id, ssid) combinations
  • Device-WLAN Relationships: Bidirectional relationships are maintained through custom fields
  • Unassigned Inventory: Devices without valid site assignments are grouped in a dedicated "Unassigned Mist Inventory" site
  • Timezone Support: Site timezone information is preserved from Mist configuration
  • Authentication Security: Supports various Mist authentication types with proper cipher mapping
  • API Rate Limiting: Integration handles Mist API rate limits and pagination automatically