feat(device): add 360 FW v5.5 integration#420
Open
magicmagicspider wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
360 FW v5.5 should work as a first-class device integration in Flocks. Without a dedicated adapter, agents have to rely on raw REST calls, which is harder to use correctly and easy to over-scope.
This PR follows the existing 360 WAF device plugin pattern with provider metadata, YAML tool definitions, probe fixtures, and a Python handler. It exposes common FW workflows as typed tools, so agents can inspect system state, query objects and
policies, manage supported network/VPN/BGP resources, and call documented REST APIs without guessing raw API details.
Risky device-level operations are intentionally blocked in the adapter because restart, restore, config clear, password change, upgrades, license writes, HA writes, and config-save style operations are operationally sensitive and outside the intended
scope of this integration.
Scope
Test Plan
uv run ruff check .flocks/flockshub/plugins/tools/device/360_fw_v5_5/360_fw.handler.py tests/tool/test_360_fw_device_plugin.pyuv run python -m py_compile .flocks/flockshub/plugins/tools/device/360_fw_v5_5/360_fw.handler.pyuv run python scripts/validate_flockshub.pyuv run pytest tests/tool/test_360_fw_device_plugin.py tests/hub/test_bundled_tools.py tests/hub/test_hub_catalog.py -qResult:
72 passed, 2 warningsCompatibility / Migration Impact