{% comment %} OOB IP interface picker for the "Add as OOB" form. NetBox requires oob_ip to be assigned to one of the device's interfaces, so the user picks (or creates) the interface to hang the OOB IP on. The suggested interface (idrac/ilo/bmc-style by name) is pre-selected; the OOB IP is often not physically on the matched interface, so this is overridable. Context: libre_device, validation, oob_interfaces, oob_suggested_interface_id, oob_default_new_name. {% endcomment %}
{% if validation.oob_candidate.ip %} On save, OOB IP {{ validation.oob_candidate.ip }} will be set as the device's OOB IP on the interface selected above. {% endif %}
{% comment %} Toggle the "new interface name" input when "+ Create new interface" is (de)selected. Extracted from an inline onchange; this fragment is HTMX-swapped and sibling script blocks in device_validation_details.html run the same way. {% endcomment %}