opn_scan_config
Scan OPNsense configuration to build a cached inventory of firmware, plugins, DHCP, DNS, interfaces, services, and config sections. Use force=True to rescan after manual changes.
Instructions
Scan the OPNsense configuration and build a cached inventory.
Use this FIRST when starting a new session. Downloads the full config, parses it into queryable sections, and detects runtime state (services, DHCP backend, DNS servers). Results are cached for the session — subsequent calls return the cached version unless force=True.
Call with force=True to rescan after manual config changes on the firewall. Use opn_get_config_section(section) to drill into specific sections.
Returns: dict with 'firmware', 'plugins', 'dhcp', 'dns', 'interfaces', 'services', and 'config_sections' (list of available sections with sizes).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||