common_task
CONF_STATUS
module-attribute
#
CONF_STATUS = {0: 'unknown', 'unknown': 'unknown', 1: 'insync', 'insync': 'insync', 2: 'outofsync', 'outofsync': 'outofsync'}
DB_STATUS
module-attribute
#
DB_STATUS = {0: 'unknown', 'unknown': 'unknown', 1: 'nomod', 'nomod': 'nomod', 2: 'mod', 'mod': 'mod'}
DEV_STATUS
module-attribute
#
DEV_STATUS = {0: 'none', 'none': 'none', 1: 'unknown', 'unknown': 'unknown', 2: 'checkedin', 'checkedin': 'checkedin', 3: 'inprogress', 'inprogress': 'inprogress', 4: 'installed', 'installed': 'installed', 5: 'aborted', 'aborted': 'aborted', 6: 'sched', 'sched': 'sched', 7: 'retry', 'retry': 'retry', 8: 'canceled', 'canceled': 'canceled', 9: 'pending', 'pending': 'pending', 10: 'retrieved', 'retrieved': 'retrieved', 11: 'changed_conf', 'changed_conf': 'changed_conf', 12: 'sync_fail', 'sync_fail': 'sync_fail', 13: 'timeout', 'timeout': 'timeout', 14: 'rev_revert', 'rev_revert': 'rev_revert', 15: 'auto_updated', 'auto_updated': 'auto_updated'}
CommonTask #
Common task functionalities
Parameters:
Name | Type | Description | Default |
---|---|---|---|
settings |
FMGSyncSettings
|
task settings |
required |
fmg |
Optional[FMGSync]
|
FMG connection if there is any |
None
|
Source code in fortimanager_template_sync/common_task.py
_get_firewall_statuses #
Gather firewall statuses in the specified group