# Technical Information (/docs/integrations/infoblox-nios/infoblox-nios-tech-info)



## Infoblox NIOS to NetBox Object Mapping [#infoblox-nios-to-netbox-object-mapping]

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

| **Infoblox NIOS Object**    | **NetBox Object** | **Key Attributes**                                                                                                                                                                           |
| --------------------------- | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Network View`              | Tag               | `name` as `infoblox-network-view:{name}`; applied to all objects in that view                                                                                                                |
| `Network` (IPv4 / IPv6)     | `Prefix`          | `network` → `prefix`, `comment` → `description`, `status` "active", network view tag, `custom_fields.infoblox_vlans`                                                                         |
| `Network Container`         | `Prefix`          | `network` → `prefix`, `comment` → `description`, `status` "active", tagged `network-container`                                                                                               |
| `DHCP Range` (IPv4 / IPv6)  | `Prefix`          | CIDR calculated from `start_addr`/`end_addr`, `status` "active", tagged `dhcp-range`, `role:dhcp`                                                                                            |
| `Fixed Address`             | `IPAddress`       | `ipv4addr`/`ipv6addr` → `address`, `status` "dhcp" or "reserved", `custom_fields.infoblox_match_client`, `custom_fields.infoblox_agent_circuit_id`, `custom_fields.infoblox_agent_remote_id` |
| `DHCP Lease`                | `IPAddress`       | Opt-in (`INFOBLOX_SYNC_LEASES`); only active leases. `address`, `status` "dhcp"                                                                                                              |
| `Host Record` (IPv4)        | `IPAddress`       | `ipv4addr` → `address` as `/32`, hostname → `dns_name` (see [Hostname handling](#field-mapping-details)), `status` "active"                                                                  |
| `Host Record` (IPv6)        | `IPAddress`       | `ipv6addr` → `address` as `/128`, hostname → `dns_name` (see [Hostname handling](#field-mapping-details)), `status` "active"                                                                 |
| `A Record` (forward DNS)    | `IPAddress`       | `ipv4addr` → `address` as `/32`, `name` → `dns_name` (see [Hostname handling](#field-mapping-details)), `comment` → `description`, `status` "active"; disabled records skipped               |
| `AAAA Record` (forward DNS) | `IPAddress`       | `ipv6addr` → `address` as `/128`, `name` → `dns_name` (see [Hostname handling](#field-mapping-details)), `comment` → `description`, `status` "active"; disabled records skipped              |
| `VLAN`                      | `VLAN`            | `id` → `vid`, `name`, `status` (ASSIGNED/UNASSIGNED → "active", RESERVED → "reserved")                                                                                                       |
| `VLAN View`                 | `VLANGroup`       | `name`, `description`, `vid_ranges`, `scope_site` (from `extattrs.Site`)                                                                                                                     |

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

### Prefix Status Mapping [#prefix-status-mapping]

| **Infoblox Object Type** | **NetBox Status** | **Notes**                                                                             |
| ------------------------ | ----------------- | ------------------------------------------------------------------------------------- |
| Network container        | `active`          | Tagged with `network-container`                                                       |
| Network (IPv4/IPv6)      | `active`          | Tagged with `has_dhcp_ranges` only when a matching DHCP range exists for that network |
| DHCP range               | `active`          | Tagged with `dhcp-range` and `role:dhcp`                                              |

### IP Address Status Mapping [#ip-address-status-mapping]

| **Infoblox Object Type**      | **NetBox Status** | **Condition**                                                                          |
| ----------------------------- | ----------------- | -------------------------------------------------------------------------------------- |
| DHCP Lease                    | `dhcp`            | Opt-in via `INFOBLOX_SYNC_LEASES`; only leases in the ACTIVE binding state are emitted |
| Fixed Address                 | `dhcp`            | When `match_client` is MAC\_ADDRESS, CLIENT\_ID, CIRCUIT\_ID, or REMOTE\_ID            |
| Fixed Address                 | `reserved`        | When `match_client` is RESERVED, missing, or invalid                                   |
| Host Record (IPv4 and IPv6)   | `active`          | Always (IPv4 as `/32`, IPv6 as `/128`)                                                 |
| A / AAAA Record (forward DNS) | `active`          | Forward DNS record, unless the record is disabled (IPv4 as `/32`, IPv6 as `/128`)      |

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

| **Infoblox VLAN Status** | **NetBox Status** |
| ------------------------ | ----------------- |
| ASSIGNED                 | `active`          |
| UNASSIGNED               | `active`          |
| RESERVED                 | `reserved`        |

### Network View to Tag Mapping [#network-view-to-tag-mapping]

Network views in Infoblox are mapped to NetBox tags for filtering and organization:

| **Network View** | **NetBox Tag**                      |
| ---------------- | ----------------------------------- |
| Any network view | `infoblox-network-view:{view_name}` |

All objects (prefixes, IP addresses) are tagged with their network view for easy filtering.

### VLAN View to VLAN Group Mapping [#vlan-view-to-vlan-group-mapping]

VLAN views in Infoblox are separate from network views and map to VLAN groups in NetBox:

| **VLAN View** | **NetBox VLAN Group**                                                 |
| ------------- | --------------------------------------------------------------------- |
| Any VLAN view | VLAN Group with name `{view_name} VLANs` and slug `{view_name}-vlans` |

## Custom Fields [#custom-fields]

| **Custom Field**            | **Object Type** | **Purpose**                                                                                                                  |
| --------------------------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `infoblox_match_client`     | IPAddress       | DHCP client matching identifier                                                                                              |
| `infoblox_agent_circuit_id` | IPAddress       | DHCP relay agent circuit ID                                                                                                  |
| `infoblox_agent_remote_id`  | IPAddress       | DHCP relay agent remote ID                                                                                                   |
| `infoblox_vlans`            | Prefix          | JSON object containing VLAN associations from Infoblox                                                                       |
| `infoblox_sources`          | IPAddress       | JSON array of every Infoblox object behind the IP address (host record, fixed address, lease, A/AAAA record) and its details |
| `infoblox_dns_names`        | IPAddress       | JSON array of every DNS name Infoblox holds for the IP address, including names NetBox does not accept as `dns_name`         |

## Policy Configuration [#policy-configuration]

### Config Parameters [#config-parameters]

* **BOOTSTRAP** (optional): When true, only static entities (custom fields, tags) are created; no API calls. Default: `false`.
* **INFOBLOX\_HOST** (required when not BOOTSTRAP): Infoblox NIOS Grid Master hostname or IP address.
* **INFOBLOX\_USER** (required when not BOOTSTRAP): Infoblox NIOS username for authentication.
* **INFOBLOX\_PWD** (required when not BOOTSTRAP): Infoblox NIOS password for authentication.
* **INFOBLOX\_VERSION** (optional): WAPI version to use. Default: `2.11`.
* **INFOBLOX\_SSL\_VERIFY** (optional): Enable/disable SSL certificate verification. Default: `false`.
* **INFOBLOX\_SYNC\_LEASES** (optional): When `true`, active DHCP leases are synced as `IPAddress` objects with status `dhcp`. Only leases in the ACTIVE binding state are emitted; leases in any other state (FREE, EXPIRED, RELEASED, ABANDONED, BACKUP) or with no binding state are skipped. Default: `false`. Leases can be numerous and short-lived; enable only when lease visibility in NetBox is required.

### Scope Parameters [#scope-parameters]

* **network\_views** (optional): List of network view names to ingest.
  * Default: `["*"]` (all network views)
  * Use `["*"]` to ingest all network views
  * Specify individual views: `["default", "prod", "dev"]`
  * Empty list `[]` defaults to all network views
  * Invalid names cause validation error after fetching available views

* **network\_to\_dns\_view\_mapping** (optional): Explicit mapping of network views to DNS views for host record queries, overriding what the integration discovers from the grid.
  * Format: `{"network_view_name": "dns_view_name"}`
  * Example: `{"prod": "prod-dns", "dev": "dev-dns"}`
  * The integration resolves each network view's DNS view with the following precedence:
    1. An explicit entry in this mapping (existence-checked against the grid's DNS views)
    2. The DNS-view association discovered from the grid via `GET view?_return_fields=name,network_view`
    3. A naming convention fallback, reached only when grid discovery fails: `default` network view → `default` DNS view, other network views → `default.{network_view}` DNS view
  * If discovery succeeds but a network view has no associated DNS view, that view's host records are skipped with a warning rather than falling back to the convention.

* **site\_ea\_name** (optional): Name of the Infoblox Extensible Attribute used to derive the NetBox `Site` for prefixes and VLAN groups. Default: `"Site"`. Set this if your EA that holds site names has a different name (for example `"Location"` or `"NetBox_Site"`).

* **ea\_tags** (optional): List of Extensible Attribute names whose values are emitted as NetBox tags on the form `ea:{name}:{value}`. Default: `[]` (no EA tags). Use this to propagate Infoblox metadata into NetBox tags for filtering. Example: `["Environment", "Owner"]` produces tags like `ea:Environment:prod` and `ea:Owner:network-team`.

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

### Global Tags [#global-tags]

All created entities are automatically tagged with:

* `infoblox` - Identifies objects from Infoblox NIOS
* `discovered` - Marks objects as auto-discovered
* `infoblox-{hostname}` - Unique tag per Infoblox host (not applied in bootstrap mode)

### Object-Specific Tags [#object-specific-tags]

**Prefixes:**

* `infoblox-network-view:{view_name}` - Network view membership
* `network-container` - Identifies network containers
* `has_dhcp_ranges` - Identifies networks with DHCP ranges
* `dhcp-range` - Identifies DHCP range prefixes
* `role:dhcp` - Role tag for DHCP ranges

**IP Addresses:**

* `infoblox-network-view:{view_name}` - Network view membership
* `dhcp-configured` - Host records with DHCP enabled
* `infoblox-dns-record:a` - IP address backed by a forward DNS A record
* `infoblox-dns-record:aaaa` - IP address backed by a forward DNS AAAA record

**VLANs:**

* `infoblox-vlan-view:{view_name}` - VLAN view membership
* `infoblox-vlan-range:{range_name}` - VLAN range membership (if in a range)
* `infoblox-vlan-status:{status}` - Original Infoblox status (ASSIGNED, UNASSIGNED, RESERVED)
* `infoblox-vlan-reserved` - Reserved flag is set

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

* **APIs used**: Infoblox WAPI endpoints including:
  * `network` - IPv4 network objects
  * `ipv6network` - IPv6 network objects
  * `networkcontainer` - Network containers
  * `fixedaddress` - IPv4 DHCP fixed addresses
  * `ipv6fixedaddress` - IPv6 DHCP fixed addresses
  * `lease` - DHCP leases (only queried when lease sync is enabled)
  * `record:host` - Host records (IPv4 and IPv6 addresses are read from the nested `ipv4addrs`/`ipv6addrs` arrays)
  * `record:a` - Forward DNS A records
  * `record:aaaa` - Forward DNS AAAA records
  * `range` - IPv4 DHCP ranges
  * `ipv6range` - IPv6 DHCP ranges
  * `vlan` - VLANs
  * `vlanview` - VLAN views
  * `networkview` - Network views
  * `view` - DNS views (used to discover each network view's DNS-view association)

* **Network view filtering**: Objects are synchronized based on configured network views:
  * By default, all network views are synchronized (`["*"]`)
  * Explicit list restricts to specified views
  * Invalid view names cause validation error
  * Each network view is queried separately to ensure complete data collection

* **DNS view mapping**: Host records (`record:host`) are queried using DNS views. The DNS view for each network view is resolved with the following precedence:
  * An explicit entry in the `network_to_dns_view_mapping` scope parameter
  * The DNS-view association discovered from the grid via `GET view?_return_fields=name,network_view`
  * A naming convention fallback (`default` → `default`, others → `default.{network_view}`), reached only when grid discovery fails

* **Synchronization mode**:
  * Every run performs a full cold walk of the grid

* **DHCP synchronization**:
  * Fixed addresses (reservations) are created as IPAddress objects
    * Status: `dhcp` (if match\_client is set) or `reserved`
    * Match type stored in `infoblox_match_client` custom field
    * Agent circuit/remote IDs stored in custom fields when applicable
  * DHCP leases are opt-in (`INFOBLOX_SYNC_LEASES`); only active leases are emitted, as IPAddress objects with status `dhcp`
  * DHCP ranges are created as Prefix objects with `dhcp-range` and `role:dhcp` tags
  * Range CIDR is calculated using address summarization

* **Forward DNS records**:
  * Infoblox `record:a` and `record:aaaa` objects are synced as `IPAddress` objects (`/32` and `/128`) with the record `name` as `dns_name` and the record `comment` as the description. This is on by default; there is no opt-out flag. Records with `disable` set are skipped, since they are not serving DNS.
  * A/AAAA records carry only a DNS `view` (the grid rejects `network_view` as a return field), so the network view is derived from the DNS view via the same view-topology reverse map used for scoping, then applied as the `infoblox-network-view:{view}` tag.
  * Reverse DNS (PTR), CNAME records, and DNS zones are out of scope.

* **Hostname handling**:
  * The `dns_name` field on IPAddress objects is filled only from names that resolve in DNS: the host record (`record:host`) hostname and the forward DNS A / AAAA record `name`. A fixed address `name` and a DHCP lease `client_hostname` are DHCP labels and never fill `dns_name`.
  * When more than one source contributes the same IP address, they merge into a single NetBox object. `status` comes from the highest-ranked source, in the order host record, DHCP lease, fixed address, then A / AAAA record. `dns_name` is the highest-ranked DNS name that NetBox accepts.
  * A name NetBox does not accept as a DNS name, such as one containing `/` or a space, or one longer than 255 characters, is skipped and the next valid name is used. If no name is valid, `dns_name` is not set, and any value already in NetBox is kept. Every name stays in the `infoblox_dns_names` custom field. Each run that skips names logs a warning with the number of IP addresses affected and up to five example names.

* **Network containers**:
  * Network containers maintain hierarchical structure in NetBox
  * Status is set to `active` (not `container`)
  * Tagged with `network-container` for identification
  * Child networks reference parent containers through prefix hierarchy

* **VLAN associations**:
  * Networks can be associated with VLANs in Infoblox
  * VLAN associations are stored in the `infoblox_vlans` custom field as JSON
  * Format: `[{"id": 100, "name": "Data VLAN"}, ...]`

* **Site extraction**:
  * Sites are extracted from Infoblox extensible attributes
  * Attribute name: `Site`
  * Applied to prefixes and VLAN groups

## Known Limitations [#known-limitations]

* **Objects deleted in Infoblox are not removed from NetBox.** The integration does not delete NetBox objects. Prefixes, IP addresses, VLANs, and VLAN groups for networks, records, leases, VLANs, and VLAN views deleted in Infoblox stay in NetBox with the values from the last run that included them. Handle these removals manually.
