You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to import the configuration of a device after adding it to FortiManager, but the import is not working correctly. The interface mapping is not being applied, which results in policies not importing properly.
#100
Open
theja465 opened this issue
Feb 4, 2025
· 1 comment
After manually adding the device to FortiManager and importing the configuration, I see the following tasks in the Task Monitor:
Zone mapping search
Dependent objects search
Import objects
Mapping zone mapping search
However, when I perform the import using the specified module, I see only one task: "Import objects" in the Task Monitor.
Due to this, interface mapping is missing, and the firewall policies related to those interfaces are not imported properly from FortiGate to FortiManager.
I need assistance in verifying whether I am missing any steps before the import or if any modifications are required.
Also, I need to set the mapping type as "per device" instead of "per platform".
- name: Import objects and policies for each VDOM
fortinet.fortimanager.fmgr_securityconsole_import_dev_objs:
workspace_locking_adom: "{{ adomain }}"
workspace_locking_timeout: 300
securityconsole_import_dev_objs:
add_mappings: enable
adom: "{{ adomain }}"
dst_name: "{{ probed_device.meta.response_data.device.hostname }}_{{ vdom.name }}"
dst_parent: "{{ probed_device.meta.response_data.device.hostname }}"
if_all_objs: all
if_all_policy: enable
import_action: do
name: "{{ probed_device.meta.response_data.device.hostname }}"
position: bottom
vdom: "{{ vdom.name }}"
The text was updated successfully, but these errors were encountered:
Thank you for your question. I have found that there are three options for import_action: policy_search, obj_search, and do. These correspond to Zone Mapping Search, Dependent Objects Search, and Import Objects functions, respectively.
To fully process these actions, you may need to run fmgr_securityconsole_import_dev_objs three times. Additionally, I recommend adding a task monitor between each execution to ensure that the next action runs only after the previous one is completed. Otherwise, Ansible may attempt to execute all tasks simultaneously, which could cause conflicts.
@FTNT-HQCM
After manually adding the device to FortiManager and importing the configuration, I see the following tasks in the Task Monitor:
Zone mapping search
Dependent objects search
Import objects
Mapping zone mapping search
However, when I perform the import using the specified module, I see only one task: "Import objects" in the Task Monitor.
Due to this, interface mapping is missing, and the firewall policies related to those interfaces are not imported properly from FortiGate to FortiManager.
I need assistance in verifying whether I am missing any steps before the import or if any modifications are required.
Also, I need to set the mapping type as "per device" instead of "per platform".
The text was updated successfully, but these errors were encountered: