From c63af3e6902e82d6b06d4b1d2e7ef20ef1c19a09 Mon Sep 17 00:00:00 2001 From: Jake Friedman Date: Fri, 4 Dec 2026 10:34:48 -0500 Subject: [PATCH 1/3] feat(lh-141907): support scale environment --- cisco_sccfm_core/constants.py | 2 +- cisco_sccfm_core/factories/api_client_factory.py | 1 + docs/man/man1/sccfm-cli-configure.1 | 4 ++-- sccfm-ansible/plugins/module_utils/config.py | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cisco_sccfm_core/constants.py b/cisco_sccfm_core/constants.py index 20ba29e1..f17a365b 100644 --- a/cisco_sccfm_core/constants.py +++ b/cisco_sccfm_core/constants.py @@ -8,7 +8,7 @@ from scc_firewall_manager_sdk import EntityType -SCCFM_REGIONS = ("int", "us", "eu", "apj", "au", "uae", "in", "ci") +SCCFM_REGIONS = ("int", "us", "eu", "apj", "au", "uae", "in", "ci", "scale") SCCFM_REGION_ALIASES = {"aus": "au"} SCCFM_REGION_CHOICES = SCCFM_REGIONS + tuple(SCCFM_REGION_ALIASES) diff --git a/cisco_sccfm_core/factories/api_client_factory.py b/cisco_sccfm_core/factories/api_client_factory.py index c4d9f74c..5378eab8 100644 --- a/cisco_sccfm_core/factories/api_client_factory.py +++ b/cisco_sccfm_core/factories/api_client_factory.py @@ -8,6 +8,7 @@ _REGION_HOSTS: dict[str, str] = { "ci": "https://ci.manage.security.cisco.com/api/rest", + "scale": "https://scale.manage.security.cisco.com/api/rest", } _DEFAULT_HOST_TEMPLATE = "https://api.{region}.security.cisco.com/firewall" diff --git a/docs/man/man1/sccfm-cli-configure.1 b/docs/man/man1/sccfm-cli-configure.1 index 9784ebaf..8977c847 100644 --- a/docs/man/man1/sccfm-cli-configure.1 +++ b/docs/man/man1/sccfm-cli-configure.1 @@ -11,8 +11,8 @@ Configure API connectivity. \fB\-\-config\-path\fP PATH Path to the configuration file (defaults to ~/.sccfm-cli/config.json). .TP -\fB\-\-region\fP [int|us|eu|apj|au|uae|in|ci|aus] -SCCFM region (int, us, eu, apj, au, uae, in, ci) [required] +\fB\-\-region\fP [us|eu|apj|au|uae|in|aus] +SCCFM region (us, eu, apj, au, uae, in) [required] .TP \fB\-\-api\-token\fP TEXT API token for the chosen region. Passing it directly is supported for compatibility but may expose it in process listings and shell history; prefer SCCFM_API_TOKEN or the hidden prompt. [env var: SCCFM_API_TOKEN] diff --git a/sccfm-ansible/plugins/module_utils/config.py b/sccfm-ansible/plugins/module_utils/config.py index 39ae1445..09a424c8 100644 --- a/sccfm-ansible/plugins/module_utils/config.py +++ b/sccfm-ansible/plugins/module_utils/config.py @@ -18,7 +18,7 @@ if TYPE_CHECKING: from ansible.module_utils.basic import AnsibleModule -ALLOWED_REGIONS = ("int", "us", "eu", "apj", "au", "uae", "in", "ci") +ALLOWED_REGIONS = ("int", "us", "eu", "apj", "au", "uae", "in", "ci", "scale") REGION_ALIASES = {"aus": "au"} ALLOWED_REGIONS_TEXT = ", ".join(ALLOWED_REGIONS) From 2e468e9d25ab61f3bf280f9d9bd92cd6d5375ace Mon Sep 17 00:00:00 2001 From: Jake Friedman Date: Fri, 4 Dec 2026 11:15:24 -0500 Subject: [PATCH 2/3] docs: restore CI and INT configure man page options --- docs/man/man1/sccfm-cli-configure.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/man/man1/sccfm-cli-configure.1 b/docs/man/man1/sccfm-cli-configure.1 index 8977c847..9784ebaf 100644 --- a/docs/man/man1/sccfm-cli-configure.1 +++ b/docs/man/man1/sccfm-cli-configure.1 @@ -11,8 +11,8 @@ Configure API connectivity. \fB\-\-config\-path\fP PATH Path to the configuration file (defaults to ~/.sccfm-cli/config.json). .TP -\fB\-\-region\fP [us|eu|apj|au|uae|in|aus] -SCCFM region (us, eu, apj, au, uae, in) [required] +\fB\-\-region\fP [int|us|eu|apj|au|uae|in|ci|aus] +SCCFM region (int, us, eu, apj, au, uae, in, ci) [required] .TP \fB\-\-api\-token\fP TEXT API token for the chosen region. Passing it directly is supported for compatibility but may expose it in process listings and shell history; prefer SCCFM_API_TOKEN or the hidden prompt. [env var: SCCFM_API_TOKEN] From c98fd5a451ab4689c6bcf7dd0e15cf05f16836ab Mon Sep 17 00:00:00 2001 From: Jake Friedman Date: Fri, 4 Dec 2026 11:30:33 -0500 Subject: [PATCH 3/3] fix: failing checks --- cisco_sccfm_core/factories/api_client_factory.py | 2 ++ sccfm-ansible/CHANGELOG.rst | 9 +++++++++ sccfm-ansible/changelogs/changelog.yaml | 7 +++++++ 3 files changed, 18 insertions(+) diff --git a/cisco_sccfm_core/factories/api_client_factory.py b/cisco_sccfm_core/factories/api_client_factory.py index 5378eab8..149b0369 100644 --- a/cisco_sccfm_core/factories/api_client_factory.py +++ b/cisco_sccfm_core/factories/api_client_factory.py @@ -2,6 +2,8 @@ # # SPDX-License-Identifier: Apache-2.0 +from __future__ import annotations + from scc_firewall_manager_sdk import ApiClient, Configuration from cisco_sccfm_core.types import ConfigLike diff --git a/sccfm-ansible/CHANGELOG.rst b/sccfm-ansible/CHANGELOG.rst index cef0347c..a775f18f 100644 --- a/sccfm-ansible/CHANGELOG.rst +++ b/sccfm-ansible/CHANGELOG.rst @@ -4,6 +4,15 @@ Cisco SCCFM Collection Release Notes .. contents:: Topics +v0.45.0 +======== + +Minor Changes +------------- + +- Added support for the Scale application environment in API client and Ansible module + configuration. + v0.44.2 ======== diff --git a/sccfm-ansible/changelogs/changelog.yaml b/sccfm-ansible/changelogs/changelog.yaml index 3ed04fb1..250bfb0c 100644 --- a/sccfm-ansible/changelogs/changelog.yaml +++ b/sccfm-ansible/changelogs/changelog.yaml @@ -2,6 +2,13 @@ ancestor: null # sccfm-release-retarget-seed: 0.39.0 releases: + 0.45.0: + changes: + minor_changes: + - Added support for the Scale application environment in API client and Ansible + module configuration. + fragments: [] + release_date: '2026-12-04' 0.44.2: changes: bugfixes: