Skip to content

Commit ac50738

Browse files
igorski-r7joneill-r7
authored andcommitted
Cisco Firepower Management Center - 608 - Updated to latest SDK version | Fixed issue related to pagination (#2262)
1 parent 2376763 commit ac50738

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

plugins/cisco_firepower_management_center/.CHECKSUM

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"spec": "8bf376c600daf49d04accf342a03edaa",
3-
"manifest": "30fa8be906e8c7f65208af52f08b92e5",
4-
"setup": "6547939a04a0975b9dbb1249e1c6c14f",
2+
"spec": "bdd34df62929953ecbe354ad179dd5d9",
3+
"manifest": "4ef8df1179032e0411544a1a44093500",
4+
"setup": "4d3d148f20197c0d830c3c17bde05e5d",
55
"schemas": [
66
{
77
"identifier": "add_address_to_group/schema.py",

plugins/cisco_firepower_management_center/bin/icon_cisco_firepower_management_center

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ from sys import argv
66

77
Name = "Cisco Firepower Management Center"
88
Vendor = "rapid7"
9-
Version = "2.1.0"
9+
Version = "2.1.1"
1010
Description = "This plugin utilizes Cisco Firepower Management Center to create URL block policies and manage address objects to block hosts"
1111

1212

plugins/cisco_firepower_management_center/help.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ This action is used to add a scan result from a third-party vulnerability scanne
136136

137137
|Name|Type|Default|Required|Description|Enum|Example|
138138
| :--- | :--- | :--- | :--- | :--- | :--- | :--- |
139-
|operation|string|None|True|The operation to be performed when adding scan results. ScanFlush to remove existing scan results or ScanUpdate to keep existing scan results|['ScanUpdate', 'ScanFlush']|ScanUpdate|
139+
|operation|string|None|True|The operation to be performed when adding scan results. ScanFlush to remove existing scan results or ScanUpdate to keep existing scan results|["ScanUpdate", "ScanFlush"]|ScanUpdate|
140140
|scan_result|scan_result|None|False|The host scan result to be added|None|{"host": {"ip_address": "0.0.0.164", "operating_system": {"name": "Ubuntu", "vendor": "Canonical", "version": "16.04"}}, "scan_result_details": {"description": "Example description", "protocol_id": "6", "scanner_id": "ProductZImport", "source_id": "ProductZ", "vulnerability_id": "943387", "vulnerability_title": "Virus Wire 0"}}|
141141

142142
Example input:
@@ -225,7 +225,7 @@ This action is used to add scan results from a third-party vulnerability scanner
225225

226226
|Name|Type|Default|Required|Description|Enum|Example|
227227
| :--- | :--- | :--- | :--- | :--- | :--- | :--- |
228-
|operation|string|None|True|The operation to be performed when adding scan results. ScanFlush to remove existing scan results or ScanUpdate to keep existing scan results|['ScanUpdate', 'ScanFlush']|ScanUpdate|
228+
|operation|string|None|True|The operation to be performed when adding scan results. ScanFlush to remove existing scan results or ScanUpdate to keep existing scan results|["ScanUpdate", "ScanFlush"]|ScanUpdate|
229229
|scan_results|[]scan_result|None|False|Host scan results to be added|None|[{"host": {"ip_address": "0.0.0.164", "operating_system": {"name": "Ubuntu", "vendor": "Canonical", "version": "16.04"}}, "scan_result_details": {"description": "Example description", "protocol_id": "6", "scanner_id": "ProductZImport", "source_id": "ProductZ", "vulnerability_id": "943387", "vulnerability_title": "Virus Wire 0"}}]|
230230

231231
Example input:
@@ -712,6 +712,7 @@ Example output:
712712

713713
# Version History
714714

715+
* 2.1.1 - Updated to latest SDK version | Fixed issue related to pagination
715716
* 2.1.0 - `Check if Address in Group`: Extended search for manually added literals | Added new output field `literal_objects`
716717
* 2.0.1 - Fix issue in Add Address to Group action where Network Groups that had no objects would result in action failure
717718
* 2.0.0 - Combine Cisco Firepower and Cisco Firepower Management Center plugins

plugins/cisco_firepower_management_center/icon_cisco_firepower_management_center/util/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def run_with_pages(self, path: str, expanded: bool = False) -> list:
8686
response = self._call_api("GET", path, params=params)
8787
objects.extend(response.get("items", []))
8888

89-
if (page + 1) * limit >= response.get("paging", {}).get("pages", 0):
89+
if (page + 1) >= response.get("paging", {}).get("pages", 0):
9090
break
9191

9292
return objects

plugins/cisco_firepower_management_center/plugin.spec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ vendor: rapid7
77
support: community
88
status: []
99
description: This plugin utilizes Cisco Firepower Management Center to create URL block policies and manage address objects to block hosts
10-
version: 2.1.0
10+
version: 2.1.1
11+
connection_version: 2
1112
supported_versions: ["6.6.0"]
1213
sdk:
1314
type: slim

plugins/cisco_firepower_management_center/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
setup(name="cisco_firepower_management_center-rapid7-plugin",
6-
version="2.1.0",
6+
version="2.1.1",
77
description="This plugin utilizes Cisco Firepower Management Center to create URL block policies and manage address objects to block hosts",
88
author="rapid7",
99
author_email="",

0 commit comments

Comments
 (0)