Docs
Cisco Catalyst Center

Technical Information

Cisco Catalyst Center to NetBox Object Mapping

Object Type Mapping Table

Catalyst Center ObjectNetBox ObjectKey Attributes
Site (building)Sitename, slug, physical_address, latitude, longitude, custom_fields.catalyst_id
(static)Sitename "Default Site" (for devices with no site assignment)
Site (floor)Locationname, slug, parent site, custom_fields.catalyst_location_id
Network Device (standalone)Devicehostname → name, platformId → device_type, serialNumber → serial, reachabilityStatus → status, role, platform, custom_fields.catalyst_device_id, custom_fields.catalyst_serial_number
Network Device (stack member)Devicehostname+stackMemberNumber → name, member platformId → device_type, member serialNumber → serial, custom_fields.catalyst_stack_id, custom_fields.catalyst_stack_role, custom_fields.catalyst_serial_number
StackVirtualChassishostname → name
platformIdDeviceTypemodel, manufacturer "Cisco"
roleDeviceRolename (default "Network Device")
softwareType + softwareVersionPlatformname
(static)Manufacturername "Cisco"
InterfaceInterfaceportName → name, portType → type, adminStatus → enabled, mtu, speed, duplex, portMode → mode, description, macAddress → primary_mac_address
Interface IPIPAddressaddress (CIDR), status "active", vrf when VRFs from virtual networks are enabled and the address is on an anycast gateway SVI
Interface macAddressMACAddressmac_address (uppercase)
(derived from interface IPs)Prefixprefix, status "active", scope_site, vrf from its IP addresses
Anycast gateway virtualNetworkName (opt-in)VRFname (or the name CCC_VRF_MAP gives it); no RD, no tenant

Field Mapping Details

Device Status Mapping

Catalyst Center reachabilityStatusNetBox Status
Reachableactive
Any other valueoffline

Interface Type Mapping

Uses both portType and portName (lowercase). First match wins.

ConditionNetBox Interface Type
"vlan" in portType or portName starts with "vlan"virtual
"loopback" in portType or portName starts with "lo"virtual
"port-channel" in portType or portName starts with "po"lag
"tengig" in portType or portName starts with "te"10gbase-t
"gigabit" in portType or portName starts with "gi"1000base-t
"fast" in portType or portName starts with "fa"100base-tx
"ethernet" in portType or "eth" in portName1000base-t
No portTypeother
Defaultvirtual

Interface Mode Mapping

Catalyst Center portModeNetBox Mode
accessaccess
Any other valueNone

Interface Duplex Mapping

Catalyst Center duplexNetBox Duplex
full, fdxfull
half, hdxhalf
auto, a-full, a-half, auto-full, auto-halfauto
Any other valueauto

Speed Parsing

FormatResult
Numeric (int/float)Used as-is (e.g. 1000000)
String with "G"Value × 1,000,000 (e.g. "1G" → 1000000)
String with "M"Value × 1,000 (e.g. "100M" → 100000)
String with "K"Value as integer (e.g. "1000K" → 1000)
Other parseable numberInteger value
Invalid / emptyNone

Site and Location Logic

  • Sites: Fetched from /dna/intent/api/v1/site. Only entries with additionalInfo → Location attributes type == "building" are created as NetBox sites. Filtering: scope.sites list (default ["*"] = all). Configured site names must exist as building names or validation fails.
  • Locations: Sites with Location type == "floor" and parentId in the allowed site set become NetBox Locations under the parent building Site.
  • Device → site: device_to_site_mapping built via /dna/intent/api/v1/membership/\{site_id\} per building site. Device instanceUuid → site ID. If device has no site, it is assigned to "Default Site".
  • Device → location: device_to_floor_mapping via /dna/intent/api/v1/membership/\{floor_id\}; device assigned to floor Location when present.

Stack Device Detection and Interface Assignment

  • Stack device: serialNumber contains a comma and /dna/intent/api/v1/network-device/\{id\}/stack returns stackSwitchInfo.
  • Member devices: One Device per stackSwitchInfo member; name \{hostname\}-member-\{stackMemberNumber\}; master is role ACTIVE.
  • Interface → member: Interface name parsed as [Type][StackMember]/[Module]/[Port] (e.g. GigabitEthernet1/0/1 → member 1). If format does not match, interface is assigned to the ACTIVE (master) member.

Device Tags

  • Tags are fetched from Catalyst Center tag API (/dna/intent/api/v1/tag, paginated) and tag members (/dna/intent/api/v1/tag/\{id\}/member, memberType=networkdevice). Device instanceUuid → list of tag names. These tags are applied to the NetBox Device entity in addition to default tags.

VRFs from SD-Access Virtual Networks

When CCC_VRF_FROM_VIRTUAL_NETWORKS is true, the integration reads every SD-Access anycast gateway. Each gateway maps a VLAN in one fabric to a virtual network. The integration then reads the devices of each fabric that has a gateway.

An IP address is put in a VRF named after the virtual network only when all of these are true:

  • It is on an SVI named Vlan<N>. The VLAN comes from the interface's vlanId, or from the name when vlanId is 0.
  • Its device is in a fabric.
  • That fabric has an anycast gateway for the SVI's VLAN.

Every other IP address stays in the global table, including loopbacks, uplinks, routed subinterfaces, SVIs on devices that are in no fabric, and SVIs with no gateway in the device's fabric. Prefixes take the VRF of their IP addresses, so the same CIDR can exist in the global table and in a VRF.

  • INFRA_VN never becomes a VRF. Its IP addresses stay in the global table.
  • Renaming - CCC_VRF_MAP gives a virtual network a different VRF name. A virtual network that is not in the map keeps its own name, and two virtual networks can map to the same VRF.
  • Conflicts - if a device's fabrics put one VLAN in different VRFs, that VLAN's IP addresses stay in the global table, and a warning is logged.
  • Matching - the VRF is sent with its name only, no RD or tenant.
  • Existing objects - IP addresses and prefixes already synced to the global table are not moved or deleted. The next sync proposes new objects in the VRFs.
  • Primary IP - when a device's management address exists both in the global table and in a VRF, the global-table copy becomes the device's primary IP.
  • Older releases - if Catalyst Center returns HTTP 404 or 501 for the SD-Access APIs, no VRFs are created, every IP address stays in the global table, and a warning is logged.

Custom Fields

Custom FieldObject TypePurpose
catalyst_idSiteCatalyst Center site ID (building)
catalyst_location_idLocationCatalyst Center location ID (floor)
catalyst_device_idDeviceCatalyst Center device ID (non-stack devices)
catalyst_serial_numberDeviceSerial number from Catalyst Center (device or stack member)
catalyst_stack_idDeviceStack device ID (stack members only)
catalyst_stack_roleDeviceRole in stack: ACTIVE, STANDBY, MEMBER

Policy Configuration

  • BOOTSTRAP (optional): When true, only static entities (custom fields, manufacturer) are created; no API calls.
  • CCC_HOST (required when not BOOTSTRAP): Catalyst Center base URL.
  • CCC_USER (required when not BOOTSTRAP): Username for API authentication.
  • CCC_PWD (required when not BOOTSTRAP): Password for API authentication.
  • CCC_SSL_VERIFY (optional, default false): Verify the Catalyst Center TLS certificate.
  • CCC_VRF_FROM_VIRTUAL_NETWORKS (optional, default false): When true, puts IP addresses and prefixes on SD-Access anycast gateway SVIs in a VRF named after the gateway's virtual network. See VRFs from SD-Access Virtual Networks.
  • CCC_VRF_MAP (optional): Maps a Catalyst Center virtual network name to a NetBox VRF name. In the policy YAML it is a mapping, for example {"VRF_Corp": "VRF-Corp"}. As an environment variable it is a comma-separated string of vn:vrf pairs, for example VRF_Corp:VRF-Corp,VRF_AV:VRF-AV, and names cannot contain : or ,. Spaces around names are ignored. A blank name, or a pair without exactly one :, stops the run. Ignored, with a warning, when CCC_VRF_FROM_VIRTUAL_NETWORKS is off.
  • Scope – sites (optional): List of site names (building names) to ingest; default ["*"] for all. Invalid or missing names cause validation to fail after fetching sites.

Authentication: POST to \{CCC_HOST\}/dna/system/api/v1/auth/token with username/password; token used in X-Auth-Token for subsequent requests.

Tags and Metadata

All created entities are tagged with:

  • cisco
  • catalyst-center
  • discovered

Optional unique tag: catalyst-center-\{host\} when not in bootstrap mode.

Devices additionally receive tags from Catalyst Center tag membership (tag names applied to the device).

API and Behavior Notes

  • APIs used: /dna/intent/api/v1/site, /dna/intent/api/v1/membership/\{id\}, /dna/intent/api/v1/network-device, /dna/intent/api/v1/interface (per device), /dna/intent/api/v1/network-device/\{id\}/stack, /dna/intent/api/v1/tag (paginated), /dna/intent/api/v1/tag/\{id\}/member. When VRFs from virtual networks are enabled, also /dna/intent/api/v1/sda/anycastGateways and /dna/intent/api/v1/sda/fabricDevices?fabricId=… (paginated, 500 per page).
  • Slugify: Backend slugify: lowercase, spaces → hyphens, remove non-alphanumeric except hyphen, collapse hyphens, strip, default "default" if empty, max 50 characters.
  • Prefixes: Derived from IP addresses on interfaces; single-host networks (/32, /128) are not created as prefixes.
  • IP CIDR: IPv4 mask converted to prefix length; IPv6 mask parsed to prefix length (default 64 on error).
  • Interface key: Interfaces stored by (instanceUuid, interface_id); for stack devices the interface entity is still looked up by root device instanceUuid and interface id, then assigned to the appropriate member device.

On this page