# Technical Information (/docs/integrations/cisco-meraki/cisco-meraki-tech-info)



## Cisco Meraki to NetBox Object Mapping [#cisco-meraki-to-netbox-object-mapping]

## Object Type Mapping Table [#object-type-mapping-table]

| **Meraki Object**                                           | **NetBox Object** | **Key Attributes**                                                                                                                                     |
| ----------------------------------------------------------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `Network`                                                   | `Site`            | `name`, `slug`, `latitude`, `longitude`, `tags`, `custom_fields.meraki_networks` (JSON), `group` → SiteGroup                                           |
| `Configuration Template`                                    | `SiteGroup`       | `name`, `slug`, `custom_fields.meraki_template_metadata` (JSON)                                                                                        |
| `Device` (wireless, switch, appliance)                      | `Device`          | `name` (or `serial`), `serial`, `device_type`, `role`, `platform`, `status`, `tags`, `custom_fields.meraki_serial`, `custom_fields.meraki_template_id` |
| `Switch Stack`                                              | `VirtualChassis`  | `name` (or stack `id`)                                                                                                                                 |
| Device `model`                                              | `DeviceType`      | `model`, manufacturer "Cisco"                                                                                                                          |
| `productType`                                               | `DeviceRole`      | "Wireless AP", "Switch", or "Firewall"                                                                                                                 |
| `firmware` + model prefix                                   | `Platform`        | `name` (e.g. "Meraki MR 1.2.3")                                                                                                                        |
| *(static)*                                                  | `Manufacturer`    | `name` "Cisco"                                                                                                                                         |
| `SSID`                                                      | `WirelessLAN`     | `ssid`, `status`, `auth_type`, `auth_cipher`, `vlan`, `custom_fields.meraki_radius_config`                                                             |
| Appliance `VLAN`                                            | `VLAN`            | `vid`, `name`, `status` "active", `group` → VLANGroup                                                                                                  |
| Port native `vlan` that no appliance VLAN defines           | `VLAN`            | `vid`, `name` "VLAN \{vid}", `status` "active", `group` → the network's VLANGroup                                                                      |
| `Network`                                                   | `VLANGroup`       | `name` "\{network} VLANs", `slug`, `scope_site`                                                                                                        |
| Switch port / radio / appliance port / management interface | `Interface`       | `name`, `type`, `enabled`, `mode`, `untagged_vlan`, `tagged_vlans`, `poe_mode`, `custom_fields.meraki_serial`, `custom_fields.meraki_port_id`          |
| Interface IP                                                | `IPAddress`       | `address` (CIDR), `status` "active"                                                                                                                    |
| Device `mac`                                                | `MACAddress`      | `mac_address` (uppercase), assigned to management interface                                                                                            |
| *(derived from interface IPs)*                              | `Prefix`          | `prefix`, `status` "active", `scope_site`                                                                                                              |

## Field Mapping Details [#field-mapping-details]

### Device Status Mapping [#device-status-mapping]

| **Meraki status** (getOrganizationDevicesStatuses) | **NetBox Status** |
| -------------------------------------------------- | ----------------- |
| `online`                                           | `active`          |
| `alerting`                                         | `active`          |
| `offline`                                          | `offline`         |
| `dormant`                                          | `inventory`       |
| Any other / no status                              | `active`          |

### Wireless LAN Status Mapping [#wireless-lan-status-mapping]

| **Meraki SSID enabled** | **NetBox Status**                                 |
| ----------------------- | ------------------------------------------------- |
| `true`                  | `active`                                          |
| `false`                 | `disabled` (SSIDs with enabled=false are skipped) |

### Device Role Mapping [#device-role-mapping]

| **Meraki productType** | **NetBox Device Role** |
| ---------------------- | ---------------------- |
| `wireless`             | Wireless AP            |
| `switch`               | Switch                 |
| `appliance`            | Firewall               |

### Authentication Type Mapping [#authentication-type-mapping]

| **Meraki authMode** | **NetBox Auth Type** |
| ------------------- | -------------------- |
| `open`              | `open`               |
| `psk`               | `wpa-personal`       |
| `8021x-meraki`      | `wpa-enterprise`     |
| `8021x-radius`      | `wpa-enterprise`     |
| `ipsk-with-radius`  | `wpa-enterprise`     |
| Any other value     | `open`               |

### Authentication Cipher Mapping [#authentication-cipher-mapping]

| **Meraki encryptionMode** | **NetBox Auth Cipher** |
| ------------------------- | ---------------------- |
| `wep`                     | `wep`                  |
| `wpa`                     | `tkip`                 |
| `wpa-eap`                 | `tkip`                 |
| `wpa2`                    | `aes`                  |
| `wpa2-eap`                | `aes`                  |
| `open`                    | `auto`                 |
| Any other value           | `auto`                 |

### VLAN Status Mapping [#vlan-status-mapping]

| **Meraki VLAN**    | **NetBox Status** |
| ------------------ | ----------------- |
| All VLANs from API | `active`          |

### Network-to-Site Resolution [#network-to-site-resolution]

Site name for a Meraki network is resolved in order:

1. **network\_site\_mapping**: If scope.network\_site\_mapping contains the network name, use the mapped NetBox site name.
2. **default\_site**: If config.defaults.site is set, use it for unmapped networks.
3. **Network name**: Otherwise use the Meraki network name (one site per network name).

Multiple networks can map to the same site; the first network (by name) supplies site-level fields and template binding.

### Interface Types by Device Role [#interface-types-by-device-role]

| **Device Type**      | **Interface Source**           | **Notes**                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| -------------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **MR (Wireless AP)** | getDeviceWirelessRadioSettings | Radio1 (2.4GHz), Radio2 (5GHz), Radio3 (6GHz) if present. Type `other`. No physical management port created as separate interface; management comes from getDeviceManagementInterface.                                                                                                                                                                                                                                                                   |
| **MS (Switch)**      | getDeviceSwitchPorts           | Port\{portId}. Type from linkNegotiationCapabilities (10g/5g/2.5g/1g/100M, SFP vs copper). Mode: trunk with allowedVlans "all" or "1-4094"→tagged-all, other trunk→tagged, else access. Native `vlan`→untagged VLAN; allowedVlans→tagged VLANs, linking only VIDs that have a VLAN object and leaving out the native VID. poeEnabled true→PoE mode PSE. meraki\_serial, meraki\_port\_id. Stack ports → type `other`, mode access, no VLANs or PoE mode. |
| **MX (Appliance)**   | getNetworkAppliancePorts       | Physical Port\{number}; type from model-based mapping (MX\_PORT\_MAPPINGS). Mode, untagged VLAN and tagged VLANs as for MS ports; a trunk with dropUntaggedTraffic gets no untagged VLAN. VLAN interfaces: VLAN\{vlan\_id}, type virtual. Single LAN: one "LAN" interface when vlansEnabled=false.                                                                                                                                                       |
| **All**              | getDeviceManagementInterface   | Management interfaces by name from API; type from model (MR: MR\_MGMT\_PORT\_TYPES, MS: 1000base-t, MX: 1000base-t). enabled = (wanEnabled == "enabled"). Static IPs created for management interfaces; primary IPs set from these (inactive stack members skipped).                                                                                                                                                                                     |

### LAG Interfaces [#lag-interfaces]

* From getNetworkSwitchLinkAggregations. "LAG \{id}" (single-device) or "Stack LAG \{id}" (cross-device). Type `lag`. Cross-device LAGs assigned to active stack member. Member ports linked to LAG.

### Site Groups (Templates) [#site-groups-templates]

* Built from getOrganizationConfigTemplates. Site is linked to SiteGroup when its first network has configTemplateId. meraki\_template\_metadata stores full template API response.

## Custom Fields [#custom-fields]

| **Custom Field**           | **Object Type**   | **Purpose**                                                                                                     |
| -------------------------- | ----------------- | --------------------------------------------------------------------------------------------------------------- |
| `meraki_networks`          | Site              | JSON array of network metadata (id, template\_id, name, latitude, longitude, tags) for all networks in the site |
| `meraki_radius_config`     | Wireless LAN      | JSON object of RADIUS-related keys from SSID config                                                             |
| `meraki_stack_id`          | Device            | Meraki switch stack ID (stack members and master)                                                               |
| `meraki_stack_name`        | Device            | Meraki switch stack name                                                                                        |
| `meraki_serial`            | Device, Interface | Meraki device serial number                                                                                     |
| `meraki_port_id`           | Interface         | Port ID for API (switch portId, appliance port number or VLAN ID)                                               |
| `meraki_template_id`       | Device            | Config template ID inherited from network                                                                       |
| `meraki_template_metadata` | SiteGroup         | Full Meraki template API response (JSON)                                                                        |

## Policy Configuration [#policy-configuration]

* **BOOTSTRAP** (optional): When true, only static entities (custom fields, manufacturer) are created; no API calls.
* **MERAKI\_API\_KEY** (required when not BOOTSTRAP): Meraki Dashboard API key.
* **MERAKI\_ORG\_ID** (required when not BOOTSTRAP): Meraki organization ID.
* **MERAKI\_COUNTRY** (optional): Base URL override. Valid: `canada`, `china`, `india`, `united-states-fedramp`.
* **defaults.site** (optional): Default NetBox site name for unmapped networks.
* **Scope – networks** (optional): List of network names to ingest; default `["*"]`. Invalid names cause validation to fail after fetching networks.
* **Scope – network\_site\_mapping** (optional): Dict mapping Meraki network names to NetBox site names. Validated against allowed networks and existing Meraki networks.

## Tags and Metadata [#tags-and-metadata]

All created entities are tagged with:

* `cisco`
* `meraki`
* `discovered`

Optional unique tag: `meraki-\{org_id\}` when not in bootstrap mode.

Sites inherit tags from the first network in the group; devices inherit tags from Meraki device data.

## API and Behavior Notes [#api-and-behavior-notes]

* **APIs used**: getOrganization, getOrganizationNetworks, getOrganizationConfigTemplates, getOrganizationDevices, getOrganizationDevicesStatuses, getNetworkFloorPlans, getNetworkApplianceVlans, getNetworkApplianceVlansSettings, getNetworkApplianceSingleLan, getNetworkAppliancePorts, getNetworkSwitchStacks, getNetworkSwitchLinkAggregations, getDeviceWirelessRadioSettings, getDeviceSwitchPorts, getDeviceManagementInterface, getNetworkWirelessSsids, getNetworkApplianceVlans (per network).
* **Rate limiting**: Meraki SDK with wait\_on\_rate\_limit=True, maximum\_retries=4.
* **Device filtering**: Only productType in `wireless`, `switch`, `appliance`; devices filtered by allowed networks (networkId in allowed list).
* **Primary IP**: Set from management interface static IPs; first IPv4 and first IPv6 by interface name (non–link-local). Inactive stack members do not get primary IP.
* **Prefixes**: Derived from all interface IP addresses; single-host (/32, /128) excluded.
* **Single LAN**: When appliance network has vlansEnabled=false, Single LAN config used; one "LAN" interface and one IP created.
* **Port VLANs**: A port's native VLAN that no appliance VLAN defines is created as "VLAN \{vid}" in the network's VLAN group, because a switch port reports only the VID. VIDs in a trunk's allowed list never create a VLAN, so a "1-1000" list links only the VLANs that exist. When getNetworkApplianceVlans fails for a network, that run sends none of its VLANs and its ports get no VLANs.
