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



## Cisco Nexus Dashboard to NetBox Object Mapping [#cisco-nexus-dashboard-to-netbox-object-mapping]

The integration reads the Nexus Dashboard 4.x unified **Manage API** (`/api/v1/manage/`) and emits fourteen NetBox object types through Diode: custom fields, manufacturer, device roles, device types, platforms, sites, VRFs, VLANs, L2VPNs, L2VPN terminations, prefixes, interfaces, IP addresses, and devices.

Entities are emitted in dependency order, with devices last, because a device's `primary_ip4` requires its interface and IP address to be ingested first.

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

| **Nexus Dashboard source**                                                      | **NetBox object**  | **Key attributes**                                                                                                                                                                                                                                                                          |
| ------------------------------------------------------------------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Static                                                                          | `Manufacturer`     | `name` = `Cisco`                                                                                                                                                                                                                                                                            |
| Fabric                                                                          | `Site`             | `name` = the fabric's `name` field                                                                                                                                                                                                                                                          |
| Switch `model`                                                                  | `DeviceType`       | `manufacturer` = `Cisco`; `model` = the switch `model` string, deduplicated across all fabrics                                                                                                                                                                                              |
| Switch `softwareVersion`                                                        | `Platform`         | `name` = `{family} {version}`, for example `NX-OS 10.6(3)`; `manufacturer` = `Cisco`. See [Platform naming](#platform-naming)                                                                                                                                                               |
| Switch `switchRole`                                                             | `DeviceRole`       | `name` from the role map, with a color. Only roles the discovered switches actually use are emitted. See [Device role mapping](#device-role-mapping)                                                                                                                                        |
| Switch                                                                          | `Device`           | `name` = `hostname`; `serial` = `serialNumber`; `device_type`; `role`; `site` = the fabric name; `platform`; `status` from `additionalData.discoveryStatus`; `custom_fields.nd_switch_db_id` = `additionalData.meta.switchDbId`; `primary_ip4`. See [Device attributes](#device-attributes) |
| Interface                                                                       | `Interface`        | `name` = `interfaceName`; `device` = the owning switch; `type` from `interfaceType`; `enabled`; `mtu` = `operData.mtu`; `description` = `configData.networkOS.policy.description`. See [Interface mapping](#interface-mapping)                                                              |
| VRF                                                                             | `VRF`              | `name` = `vrfName`; `rd` = a fabric-scoped route distinguisher built from the fabric name and `vrfId`. See [Route distinguisher scheme](#route-distinguisher-scheme)                                                                                                                        |
| Overlay network                                                                 | `VLAN`             | `vid` = `vlanId`; `name` from `displayName`, `networkName`, or `VLAN{vid}`; `site` = the fabric name; `status` = `active`. See [VLAN mapping](#vlan-mapping)                                                                                                                                |
| Overlay network `networkId`                                                     | `L2VPN`            | One per VNI per fabric: `<fabric> VNI <vni>` → `name`, `networkId` → `identifier`, `type` `vxlan-evpn` or `vxlan`. See [L2VPN mapping](#l2vpn-mapping)                                                                                                                                      |
| Overlay network `networkId`                                                     | `L2VPNTermination` | One per fabric VLAN mapped to the VNI, assigned to that VLAN                                                                                                                                                                                                                                |
| Overlay network `l3Data.gatewayIpv4Address`                                     | `Prefix`           | `prefix` = the network containing the gateway address; `status` = `active`; `scope_site` = the fabric; `vrf` when the network's `vrfName` resolves in the same fabric. See [Prefix derivation](#prefix-derivation)                                                                          |
| Interface `operData.ipAddress` on a loopback, management, or ethernet interface | `IPAddress`        | `address` in CIDR notation; `assigned_object_interface` = the owning interface. See [IP address handling](#ip-address-handling)                                                                                                                                                             |
| Overlay network `l3Data.gatewayIpv4Address`                                     | `IPAddress`        | `address`; `role` = `anycast`; `vrf` when the network's `vrfName` resolves in the same fabric                                                                                                                                                                                               |
| Switch `fabricManagementIp`                                                     | `IPAddress`        | `address` as a `/32`, with no interface assignment. Used only as a `primary_ip4` fallback. See [Primary IP resolution](#primary-ip-resolution)                                                                                                                                              |

The integration creates no Tenant objects, no Regions, Site Groups, or Locations, and no prefix or IP address roles other than the `anycast` role on overlay gateway addresses.

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

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

Each switch's `switchRole` is mapped to a NetBox device role name and color:

| **`switchRole`** | **NetBox role name** | **Color**            |
| ---------------- | -------------------- | -------------------- |
| `leaf`           | Leaf Switch          | `4caf50` (green)     |
| `spine`          | Spine Switch         | `2196f3` (blue)      |
| `border`         | Border Leaf          | `ff9800` (orange)    |
| `border_gateway` | Border Gateway       | `f44336` (red)       |
| `border_spine`   | Border Spine         | `9c27b0` (purple)    |
| `access`         | Access Switch        | `607d8b` (blue-grey) |

A `switchRole` value that is not in this table is passed through verbatim as the NetBox role name, so a role that Nexus Dashboard adds in a later release still reaches NetBox - it just arrives without a color. A switch with no `switchRole` at all is assigned the `Unknown` role (`9e9e9e`, grey).

Roles are created on demand from the switches actually present in the discovered fabrics. NetBox therefore only receives the roles in use, rather than the full list of roles the integration knows about.

### Device attributes [#device-attributes]

A switch must report a `serialNumber`, a `hostname`, and a `model` to become a NetBox device. A switch missing any of the three is skipped and a warning is logged naming the fabric and the missing values.

Device status is mapped from `additionalData.discoveryStatus`:

| **`discoveryStatus`** | **NetBox device status** |
| --------------------- | ------------------------ |
| `ok`                  | `active`                 |
| `unreachable`         | `offline`                |
| `inProgress`          | `planned`                |

A mapped value is sent on every sync, so it replaces a status you set on the device in NetBox yourself. An unrecognized `discoveryStatus` leaves the NetBox status field **unset**, and logs a warning naming the value. Nexus Dashboard does not publish the full list of values, so the integration does not guess at a status for one it does not recognize.

### Platform naming [#platform-naming]

A platform is created per distinct switch software version, named `{family} {version}`. The family comes from the switch's `additionalData.platformType` field, which reports `nx-os` on Nexus Dashboard 4.2.1 and is displayed as `NX-OS`. An unrecognized `platformType` is used as the family verbatim; an absent one falls back to `NX-OS`.

The family is prefixed onto the version so that a NetBox instance fed by several Cisco integrations does not end up with bare `10.6(3)` platform rows that say nothing about which operating system they belong to.

A switch that reports no `softwareVersion` is emitted without a platform.

### Interface mapping [#interface-mapping]

Interfaces come from the per-switch interface endpoint and are only emitted for switches that became NetBox devices.

The `interfaceType` value maps to a NetBox interface type as follows:

| **`interfaceType`** | **NetBox interface type** |
| ------------------- | ------------------------- |
| `ethernet`          | `other`                   |
| `management`        | `other`                   |
| `loopback`          | `virtual`                 |
| `nve`               | `virtual`                 |
| `svi`               | `virtual`                 |
| `portChannel`       | `lag`                     |
| `vpc`               | `lag`                     |

An `interfaceType` that is not in this table falls back to `other`.

<Callout type="info">
  `portChannel` and `vpc` did not appear in the validation fabric, so those two mappings are not yet confirmed against live data.
</Callout>

Other interface attributes:

* **`enabled`** - taken from `configData.networkOS.policy.adminState` (a boolean) when present. When it is absent, `operData.adminStatus` is used instead, and the interface is enabled if that value is `up`. When Nexus Dashboard reports neither field, `enabled` is left unset so NetBox keeps its own default rather than the interface being asserted administratively down.
* **`mtu`** - taken from `operData.mtu`, and only when it is an integer. The `configData.networkOS.policy.mtu` field is not used, because it reports a symbolic value such as `jumbo` on ethernet interfaces rather than a number.
* **`description`** - taken from `configData.networkOS.policy.description`. An empty description is omitted rather than written as an empty string.

An interface with no `interfaceName` is skipped.

### Route distinguisher scheme [#route-distinguisher-scheme]

Each VRF is emitted with a route distinguisher of the form `{fabric}:{vrfId}`, for example `evpn-lab:150001`.

The fabric name is part of the RD because Nexus Dashboard allocates `vrfId` from a **per-fabric** segment pool, so two fabrics routinely hold different VRFs under the same ID. Diode matches `ipam.vrf` on `rd` whenever it is set, so a fabric-independent RD would merge those distinct VRFs into a single NetBox object.

NetBox limits `VRF.rd` to 21 characters. When the fabric name and VRF ID together exceed that limit, the fabric name is truncated and a `~` plus the first 8 hexadecimal characters of its SHA-256 digest are appended in its place, so the result still fits. A fabric named `a-very-long-fabric-name` holding VRF ID `150001` yields the RD `a-ver~70bcbb17:150001`. The digest keeps the result unique and stable across runs, and the surviving prefix keeps the RD readable in the NetBox VRF list.

A VRF with no `vrfName`, or no `vrfId`, is skipped. VRFs are deduplicated by RD.

### VLAN mapping [#vlan-mapping]

Overlay networks become NetBox VLANs. A network's `vlanId` must be an integer in the valid VLAN range of 1 to 4094; anything else is skipped and logged at debug level.

The VLAN name is resolved in order of preference from `displayName`, then `networkName`, then a generated `VLAN{vid}` fallback.

VLANs are scoped to the fabric's site, so the same VLAN ID in two fabrics produces two distinct NetBox VLANs.

### L2VPN mapping [#l2vpn-mapping]

A network's `networkId` is its VXLAN VNI. Each VNI becomes an L2VPN.

* **One L2VPN per VNI per fabric** - named `<fabric> VNI <vni>`, for example `dc1 VNI 30001`, with the VNI as its identifier. A VNI stretched across fabrics appears once per fabric. Filter L2VPNs on the identifier to see it across fabrics.
* **Terminations** - each fabric VLAN mapped to the VNI is a termination of that L2VPN. NetBox does not show which leaf carries a VNI.
* **Which networks** - only a network whose `networkType` carries VXLAN gets an L2VPN: `vxlanIbgp`, `vxlanEbgp`, `vxlanCampus`, `aimlVxlanIbgp`, `aimlVxlanEbgp`, `vxlan`, `vxlanAci` or `vxlanExternal`. Any other type, including `userDefined`, gets none, and its VLAN is still synced. A type that is not a known non-VXLAN type (`classicLanEnhanced`, `routed`, `aimlRouted`, `aci`, `externalConnectivity`) is also logged as a warning.
* **Type** - `vxlan-evpn` when every network that maps the VNI in the fabric is `vxlanIbgp`, `vxlanEbgp`, `vxlanCampus`, `aimlVxlanIbgp` or `aimlVxlanEbgp`, otherwise `vxlan`.
* **Shared names** - a second Nexus Dashboard cluster with a fabric of the same name, or an Arista CloudVision site of that name, writes the same L2VPN, as it writes the same site. When the two disagree on EVPN, the L2VPN's type changes on every run, and each change shows as a deviation.
* **Invalid VNIs** - a `networkId` that is not a whole number from 1 to 16,777,215 gives no L2VPN, and a warning names the network.
* **Conflicts** - a VLAN mapped to two different VNIs in one fabric gets no termination, and a warning names it.
* **Long names** - NetBox limits an L2VPN name to 100 characters. When `<fabric> VNI <vni>` is longer, that L2VPN is skipped with a warning. It is not shortened, because two fabrics could then share one name.

L3 VNIs (the VRF `vrfId`) and VTEP source interfaces are not synced.

### Prefix derivation [#prefix-derivation]

A prefix is derived from each overlay network's `l3Data.gatewayIpv4Address`. The gateway address is parsed as an IP interface and the containing network becomes the prefix - for example a gateway of `10.10.10.1/24` yields the prefix `10.10.10.0/24`.

* A gateway address that does not parse is skipped and logged at debug level.
* A gateway with a `/32` or `/128` mask is skipped, since a host address is not a prefix.
* The prefix is scoped to the fabric's site, so the same CIDR in two fabrics produces two distinct NetBox prefixes rather than one attributed to whichever fabric was read first.
* The prefix is assigned to a VRF when the network's `vrfName` matches a VRF in the same fabric. When it does not resolve, the prefix is emitted without a VRF.
* Prefix status is set to `active`.

An overlay network with no gateway address produces no prefix.

### IP address handling [#ip-address-handling]

The integration emits three categories of IP address.

**Infrastructure IP addresses** come from `operData.ipAddress` on interfaces whose `interfaceType` is `loopback`, `management`, or `ethernet`, and are assigned to their interface in NetBox.

SVI and NVE interfaces are deliberately excluded from this category. On Nexus Dashboard 4.2.1, `operData.ipAddress` reports the switch's **management** address on interfaces that have no address of their own, which includes every SVI. Admitting them would make a switch's management address look shared across several interfaces, and strip both its interface assignment and the device's primary IP. Real overlay gateway addresses reach NetBox through the anycast category instead.

IPv6 link-local addresses (`fe80::/10`) are skipped. An address that does not parse is skipped and logged.

**Anycast gateway IP addresses** come from each overlay network's `l3Data.gatewayIpv4Address` and are emitted with the NetBox `anycast` role. They carry no interface assignment, because the same address is configured on the SVI of every leaf switch in the fabric. They are assigned to the network's VRF when it resolves in the same fabric, and deduplicated on the address and RD together.

**The fabric management address** is emitted from a switch's `fabricManagementIp` field only as a primary IP fallback, described below.

#### Addresses shared across interfaces [#addresses-shared-across-interfaces]

When the same address appears on more than one interface, it is emitted **without** an interface assignment and a warning is logged naming the address and the number of interfaces. Emitting it once per interface would create several NetBox objects for a single host address.

This is a real condition rather than a defensive edge case. On Nexus Dashboard 4.2.1, a switch's unnumbered layer-3 ethernet ports echo its management address in `operData.ipAddress` - in the validation fabric, one spine reported the same address on `mgmt0` and 64 ethernet ports.

#### Primary IP resolution [#primary-ip-resolution]

A device's `primary_ip4` is resolved in this order:

1. **The management interface address.** The first interface with `interfaceType` of `management` that reports an IPv4 `operData.ipAddress` supplies the primary IP, assigned to that interface. A non-IPv4 address is skipped for this purpose, and an address that is shared across interfaces is not used - a warning is logged instead.
2. **`fabricManagementIp`.** When interface data supplied no primary IP - either because the switch has no usable management interface address, or because the cluster runs 4.1.x and has no interface endpoint at all - the switch's `fabricManagementIp` is emitted as a `/32` with no interface assignment and set as the primary IP. The field carries no prefix length, which is why it becomes a `/32`.

The fallback yields to interface data whenever the same **host address** already reached NetBox from an interface, compared without its mask so that a maskless `10.10.11.101` is not re-emitted as a `/32` alongside an existing `10.10.11.101/21`. This means it never resurrects an address that was deliberately left unassigned as shared.

A switch whose ethernet ports echo its management address therefore ends up with no `primary_ip4` from either path. One of the four switches in the validation fabric is affected. See [Known Limitations](#known-limitations).

## Custom Fields [#custom-fields]

The integration creates the following custom field during bootstrap and sets it to read-only in the NetBox UI.

| **Custom Field**  | **Object Type**        | **Type** | **Purpose**                                                                                |
| ----------------- | ---------------------- | -------- | ------------------------------------------------------------------------------------------ |
| `nd_switch_db_id` | Device (`dcim.device`) | Integer  | Internal Nexus Dashboard switch database identifier, from `additionalData.meta.switchDbId` |

A value that is absent, or that is not convertible to an integer, is omitted rather than written as a zero.

## Configuration Parameters [#configuration-parameters]

### `config` Parameters [#config-parameters]

Configure these under the `config` key in the policy definition.

| **Parameter**     | **Required** | **Default**         | **Description**                                                                                                                                                                                                   |
| ----------------- | ------------ | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ND_HOST`         | Yes          | -                   | Nexus Dashboard host or base URL, for example `nd.example.com` or `https://nd.example.com`. `https://` is used when no scheme is given. A trailing slash is trimmed                                               |
| `ND_USERNAME`     | Yes\*        | -                   | Username for JWT authentication                                                                                                                                                                                   |
| `ND_PASSWORD`     | Yes\*        | -                   | Password for JWT authentication                                                                                                                                                                                   |
| `ND_LOGIN_DOMAIN` | No           | `DefaultAuth` alias | Login domain **name** for JWT authentication, as listed by `GET /logindomains`. Case-sensitive. Omit to authenticate against the cluster's configured default login domain. No effect with API key authentication |
| `ND_API_KEY`      | Yes\*        | -                   | Nexus Dashboard API key, sent as the `X-Nd-Apikey` header                                                                                                                                                         |
| `ND_API_USERNAME` | Yes\*        | -                   | Username paired with `ND_API_KEY`, sent as the `X-Nd-Username` header                                                                                                                                             |
| `SKIP_SSL`        | No           | `false`             | Set `true` to disable TLS certificate verification on every request, including the login request. See [TLS verification](#tls-verification)                                                                       |
| `BOOTSTRAP`       | No           | `false`             | When `true`, emits static entities only and makes no Nexus Dashboard API calls                                                                                                                                    |

\* Provide either `ND_USERNAME` **and** `ND_PASSWORD`, or `ND_API_KEY` **and** `ND_API_USERNAME`. Each pair must be complete. API key authentication takes precedence when both pairs are supplied.

Boolean values accept the usual YAML forms - `true`, `false`, and equivalent string and integer representations.

A config value that is present but blank is treated the same as absent, so a `${...}` reference that resolves to an empty string does not pass the credential check as a supplied value.

Do not write secrets into the policy file in plain text. When the policy loads, a config value that is exactly a `${...}` reference is replaced with the matching environment variable from the agent process. Orb Agent can additionally resolve secrets from an external store such as HashiCorp Vault, configured separately under `orb.secrets_manager` and referenced with its own `${vault://...}` form.

### `scope` Parameters [#scope-parameters]

Scope parameters limit which fabrics are ingested. Configure them under a `scope` key in the policy definition, separate from `config`.

| **Parameter** | **Type**        | **Default** | **Description**                                                                                                                                                                |
| ------------- | --------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `fabrics`     | List of strings | `["*"]`     | Ingest only the fabrics named in the list, along with all of their switches, interfaces, VRFs, and overlay networks. Use `["*"]` or omit to ingest every fabric on the cluster |

Example `scope` block:

```yaml
scope:
  fabrics:
    - evpn-lab
    - dc1-fabric
```

Filtering behavior:

* Names are matched exactly against each fabric's `name` field, so matching is case-sensitive. Surrounding whitespace in a configured name is trimmed.
* An empty list, a list containing `*`, and an omitted key all mean "ingest every fabric".
* A value that is not a list disables filtering rather than failing the run, and logs a warning naming the type received.
* A configured fabric name that matches nothing simply contributes no data. The log line reporting how many fabrics were fetched and how many survived filtering is where a typo shows up.
* `scope.fabrics` is ignored in bootstrap mode, since no API calls are made.

## Authentication [#authentication]

The integration supports two authentication methods against the Manage API:

* **JWT (username and password)** - the integration calls `POST /api/v1/infra/login` with the username, password, and login domain, and uses the returned `jwttoken` value as an `Authorization: Bearer` credential. The token has a 20-minute lifetime. If a subsequent call returns `401`, the integration re-authenticates once with the stored credentials and retries that call, so a long run spanning the token lifetime does not fail partway through. A login that succeeds but returns no token is treated as an error.
* **API key** - the `X-Nd-Apikey` and `X-Nd-Username` headers are set on the session. Both are required together. The integration checks the key with one `GET` of the fabric list before reading any data. A `401` or `403` ends the run with an error naming the cluster and the API key user. Any other HTTP error from that request ends the run with that error. There is no token to refresh.

API key authentication takes precedence when both credential pairs are supplied.

The configuration is checked before any request is made. A missing `ND_HOST`, or an incomplete credential pair, logs a configuration error and the run ingests nothing. The credentials themselves are checked against the cluster when the run connects: by the login call for JWT, or by the fabric list request for an API key.

### Login domains [#login-domains]

`ND_LOGIN_DOMAIN` carries the login domain **name** as listed by `GET /logindomains` on your cluster, and the value is case-sensitive. It is how you authenticate against a remote domain - LDAP, RADIUS, or TACACS - rather than the local one.

When the key is omitted, the integration sends the server-side `DefaultAuth` alias rather than omitting the field, so Nexus Dashboard authenticates against its configured default login domain. The field is always sent because Nexus Dashboard 4.2 returns a `500` when it is absent entirely, despite the API documentation stating that omission falls back to the default.

### TLS verification [#tls-verification]

By default the Nexus Dashboard server certificate is validated against the public certificate authorities built into the agent container image, not against the agent host's trust store. For a certificate signed by an internal or private CA, see [Trusting an internal CA](#trusting-an-internal-ca) and leave `SKIP_SSL` unset.

`SKIP_SSL: true` disables verification for every request on the session, including the login request that carries your password. The run is then vulnerable to a machine-in-the-middle attack. Use it only on trusted networks and for initial testing.

#### Trusting an internal CA [#trusting-an-internal-ca]

The integration checks the Nexus Dashboard certificate against the public certificate authorities built into the agent container image, not against the agent host's trust store. Adding your CA to the host's trust store has no effect, and `DIODE_CERT_FILE` applies only to the agent's connection to Diode.

To trust a certificate signed by an internal CA, mount the host's full CA bundle into the agent container, read-only, and set `REQUESTS_CA_BUNDLE` to its path. Keep `DIODE_CERT_FILE` set. On RHEL-family hosts, add these options to your `docker run` command:

```sh
-v /etc/pki/tls/certs/ca-bundle.crt:/etc/ssl/certs/ca-certificates.crt:ro \
-e REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt \
```

On Debian and Ubuntu hosts, mount `/etc/ssl/certs/ca-certificates.crt` instead.

Use the host's full bundle, not a file that holds only your internal CA. Once `REQUESTS_CA_BUNDLE` is set, the agent's login to Diode uses it too, so the bundle must also trust your Diode endpoint's certificate.

<Callout type="warn">
  Don't set `REQUESTS_CA_BUNDLE` if you also set `SKIP_SSL: true`. While `REQUESTS_CA_BUNDLE` is set, `SKIP_SSL: true` has no effect: verification stays on, against the bundle, and a self-signed certificate is rejected.
</Callout>

## Tags [#tags]

The integration applies the following tags to the objects it ingests:

| **Tag**           | **Applied to**                        | **Purpose**                                                                                                                                                                                                        |
| ----------------- | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `cisco`           | All objects except custom fields      | Vendor tag                                                                                                                                                                                                         |
| `nexus-dashboard` | All objects except custom fields      | Product tag                                                                                                                                                                                                        |
| `discovered`      | All objects except custom fields      | Indicates automated discovery origin                                                                                                                                                                               |
| `nd-{host}`       | All discovered objects on a real sync | Unique per-cluster tag derived from `ND_HOST` with the scheme and any trailing slash removed, for example `nd-nd.example.com`. Enables filtering by Nexus Dashboard cluster and supports multi-cluster deployments |

The per-cluster `nd-{host}` tag is not applied in bootstrap mode, and is never applied to the `Cisco` manufacturer, which is static content shared with every other Cisco integration.

When syncing more than one Nexus Dashboard cluster, each cluster's `ND_HOST` produces a distinct tag, so its objects remain identifiable in NetBox.

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

* **Pagination.** List endpoints wrap their payload as `{<key>: [...], "meta": {...}}`. The integration follows `meta.links.next` until it is absent, so a large fabric is read to completion rather than ingesting only its first page. A server that echoes the same next link is guarded against with a visited-URL set. When the number of records fetched does not match the total the API reports, a warning is logged naming both counts.
* **Retries.** `GET` and `POST` requests are retried up to 3 times with a 0.5-second backoff factor on HTTP `429`, `500`, `502`, `503`, and `504`. Every request has a 30-second timeout.
* **URL encoding.** Fabric names and switch serial numbers are URL-encoded before being placed in a request path, so a fabric name containing a slash or a space is read correctly.
* **Per-fabric resilience.** A failure fetching switches, interfaces, VRFs, or overlay networks for one fabric is logged as a warning and that collection is treated as empty; the run continues with the remaining fabrics and data types. A failure fetching the **fabric list** aborts the run, because it cannot be distinguished from a cluster with no fabrics.
* **Interface fetch failures.** A failure fetching one switch's interfaces is logged and that switch contributes no interfaces. Its device, device type, platform, and role are unaffected.

## Bootstrap Mode [#bootstrap-mode]

When `BOOTSTRAP` is set to `true`, the integration creates the following without connecting to Nexus Dashboard:

* Tags: `cisco`, `nexus-dashboard`, `discovered`
* Custom field: `nd_switch_db_id`
* The `Cisco` manufacturer

Credentials are not required in bootstrap mode, and `scope.fabrics` is ignored.

Device roles are **not** created in bootstrap mode. They are created on a real sync, and only for the roles the discovered switches actually use, so bootstrap does not leave unused roles in NetBox. No site is created either, since sites are derived from the fabrics themselves.

Use bootstrap mode on the initial setup only, then set it to `false` for all subsequent runs.

## Sync Behavior [#sync-behavior]

* **Direction**: One-way, Nexus Dashboard to NetBox. Nothing is written back to Nexus Dashboard or to the fabric.
* **Object deletion**: The integration does not delete NetBox objects. A switch removed from a fabric is not automatically decommissioned in NetBox. A removed network leaves its L2VPN termination, and an L2VPN with no VLANs left, until an operator deletes them.
* **Idempotency**: Subsequent runs update existing NetBox objects rather than creating duplicates. The Diode SDK handles conflict resolution.
* **Partial updates**: Diode applies changes with `partial=True`, so fields the integration does not set are left as they are in NetBox.
* **Scope**: All fabrics on the cluster are synced by default. Optional fabric scope filtering is available (see [`scope` Parameters](#scope-parameters)).
* **Multi-cluster**: Each policy reads one Nexus Dashboard cluster. Add a policy for each cluster; each is distinguished in NetBox by its `nd-{host}` tag.

## Known Limitations [#known-limitations]

* **Device scope is switches only.** Only fabric switches are modeled as NetBox devices. The Nexus Dashboard controller and cluster nodes themselves are not emitted.
* **Interfaces require Nexus Dashboard 4.2.x.** The per-switch interface endpoint (`.../switches/{serial}/interfaces`) is absent on 4.1.x, so interfaces and interface-assigned IP addresses are skipped on that version. Everything else - fabrics, sites, switches, devices, device types, platforms, roles, VRFs, VLANs, and prefixes - still syncs, and device `primary_ip4` still works via the `fabricManagementIp` fallback, emitted as a `/32` because the field carries no prefix length. Verified live on Nexus Dashboard 4.2.1.
* **A switch can end up without a primary IP.** Nexus Dashboard reports a switch's management address in `operData.ipAddress` for interfaces that have none of their own, which includes SVIs and unnumbered layer-3 ethernet ports. When a switch's ethernet ports echo its management address, that address is genuinely shared across many interfaces, so it is synced without an interface assignment and the device receives no `primary_ip4`. Emitting one anyway would mean two NetBox objects for the same host address. One of the four switches in the validation fabric is affected.
* **Infrastructure IP addresses are not VRF-scoped.** Loopback, management, and routed ethernet addresses are emitted without a VRF, so two fabrics reusing the same underlay addressing produce colliding NetBox IP address objects. Overlay data is unaffected: VRFs, prefixes, and anycast gateway addresses are all fabric-scoped through their route distinguisher.
* **`nd_segment_id` stays after an upgrade.** Earlier releases stored the VXLAN VNI in the `nd_segment_id` custom field on the VLAN. The VNI is now an L2VPN and the field is no longer written, but NetBox keeps the field and its last values until you delete the custom field.
* **Legacy APIs are not supported.** The integration targets the Nexus Dashboard 4.x unified Manage API only. The per-service NDFC and Nexus Dashboard Orchestrator APIs that 4.x replaced are not read.
