Hi everyone !
I have an issue with FortiManager and CLI Templates.
I have a script and on it an address object target. For example :
config system sdwan
config service
edit 0
set name "RULE1"
set mode sla
set dst "FMG_ADDRESS_OBJECT"
...
if FMG_ADDRESS_OBJECT is not already on my FortiGate (it's a new object only used in this script), the script failed with this error
Post vdom failed: error :131 - datasrc invalid. object: system sdwan service.1:dst. detail: FMG_ADDRESS_OBJECT. solution: datasrc invalid
Is it the normal behavior ?
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Yes this would fail as the address object FMG_ADDRESS_OBJECT doesn't yet exist in the FortiGate and you're trying to reference it in the script.
Two quick solutions:
1. Use SDWAN templates to configure SDWAN. When you reference an address object there it will add it to the FortiGate automatically when it pushes out the config
2. Create the address object in the script before pushing out the SDWAN config:
config firewall address
edit "FMG_ADDRESS_OBJECT"
set subnet 172.18.1.1 255.255.255.255
next
end
config system sdwan
config service
edit 0
set name "RULE1"
set mode sla
set dst "FMG_ADDRESS_OBJECT"
...
Ok I understand ! But with "Scripts" I can use a non referenced address object. I don't understand why CLI Template has not the same behavior...
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1662 | |
1077 | |
752 | |
446 | |
220 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.