I've been on this for hours now and starting to lose it..
I just cannot tackle this obstacle and reaching out to the people on the internet too see if you guys have any ideas..
Im trying to do a simple thing, setting up my SDWAN via ansible, which works fine for 99% but FortiOS keeps giving me the finger and preventing completion of my project, what I need is to activate the SLA checkbox on a healthcheck which I simply cannot get to work..
I have tried many many things and ended up with:
fortigate_sdwan:
enabled: true
health_checks:
- name: ping_internet
servers:
- 1.1.1.1
- 8.8.8.8
protocol: ping
interval: 500
failtime: 5
recoverytime: 60
sla:
- id: 1
link_cost_factor:
- latency
- jitter
- packet-loss
latency_threshold: 5
jitter_threshold: 5
packetloss_threshold: 0
mos_threshold: "3.6"
priority_in_sla: 0
priority_out_sla: 0
and then applying it via:
- name: Configure SD-WAN members and health checks
fortinet.fortios.fortios_system_sdwan:
vdom: "{{ vdom }}"
system_sdwan:
status: enable
members: "{{ fortigate_sdwan_members }}"
health_check: "{{ fortigate_sdwan_health_checks }}"
This works and sets up everything EXCEPT checking the "SLA Target" target on the HealthCheck, when I manually check the box all threshold values have been set correctly by Ansible..
When I send the following directly to the API (/api/v2/cmdb/system/sdwan?%20vdom=root) via a PUT:
{
"health-check": [
{
"name": "ping_internet",
"sla": [
{
"id": 1,
"q_origin_key": 1,
"link-cost-factor": "latency jitter packet-loss",
"latency-threshold": 5,
"jitter-threshold": 5,
"packetloss-threshold": 0,
"mos-threshold": "3.6",
"priority-in-sla": 0,
"priority-out-sla": 0
}
]
}
]
}
It works fine and checks the box..................
I'm at a complete and total loss, because the box is not checked via Ansible the gate prevents me from using the HC as SLA target in a sdwan-rule..
Anyone any ideas on how to fix this with the "fortinet.fortios.fortios_system_sdwan" module, what am I doing wrong??
PS:
My gate runs 7.4.11 and running Ansible runs fortinet.fortios 2.6.0.