Skip to content

feat(importer): add generic firewall import#4923

Open
Y4nnikH wants to merge 7 commits into
CactuseSecurity:developfrom
Y4nnikH:feat/generic-firewall-import
Open

feat(importer): add generic firewall import#4923
Y4nnikH wants to merge 7 commits into
CactuseSecurity:developfrom
Y4nnikH:feat/generic-firewall-import

Conversation

@Y4nnikH

@Y4nnikH Y4nnikH commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator
  • adds a generic firewall management and gateway type to be used with generic normalized config files
  • updates the not-yet implemented azure importer to accept normalized config files

closes #4870

@Y4nnikH Y4nnikH requested a review from tpurschke July 9, 2026 21:26
@Y4nnikH Y4nnikH self-assigned this Jul 9, 2026
Copilot AI review requested due to automatic review settings July 9, 2026 21:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds database/device-type support and importer plumbing for a new “Generic Firewall” management/gateway type intended for importing normalized configurations, and adjusts the Azure 2022 ff module toward normalized-config-only operation.

Changes:

  • Introduces fw_modules/generic with a GenericFirewallCommon.get_config() path intended for normalized config input.
  • Updates importer module dispatch in roles/importer/files/importer/common.py to include the generic module (and updates Azure 2022 ff fwcommon.py behavior).
  • Adds new stm_dev_typ rows (upgrade + creation seed), bumps product version to 9.1.18, and updates revision history.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
roles/importer/files/importer/fw_modules/generic/fwcommon.py New generic fwcommon entrypoint for normalized-only import.
roles/importer/files/importer/fw_modules/generic/init.py Package marker for the new generic importer module.
roles/importer/files/importer/fw_modules/azure2022ff/fwcommon.py Replaces NotImplemented with a normalized-config-only get_config() stub.
roles/importer/files/importer/common.py Adds generic module dispatch (and should also wire in Azure + fix generic package-name match).
roles/database/files/upgrade/9.1.18.sql Adds new device types for generic firewall management/gateway on upgrade.
roles/database/files/sql/creation/fworch-fill-stm.sql Seeds generic device types for fresh installs; adjusts some stm_dev_typ inserts to include dev_typ_is_multi_mgmt.
inventory/group_vars/all.yml Bumps product_version to 9.1.18.
documentation/revision-history.md Adds 9.1.18 release notes entry.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread roles/importer/files/importer/fw_modules/generic/fwcommon.py
Comment thread roles/importer/files/importer/fw_modules/azure2022ff/fwcommon.py
Comment thread roles/importer/files/importer/common.py Outdated
Comment thread roles/importer/files/importer/common.py
Comment thread roles/importer/files/importer/fw_modules/generic/fwcommon.py Outdated
Comment thread roles/importer/files/importer/fw_modules/azure2022ff/fwcommon.py
@Y4nnikH Y4nnikH requested a review from Copilot July 9, 2026 21:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Y4nnikH Y4nnikH linked an issue Jul 9, 2026 that may be closed by this pull request
5 tasks
@sonarqubecloud

sonarqubecloud Bot commented Jul 9, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

importer - add generic firewall import

2 participants