Ansible FortiOS, how to remove interface from virtual hardware switch?
Hello,
I have a 40F.
Default config has a virtual hardware switch called "lan" whose member interfaces are: "lan1", "lan2" and "lan3".
I would like to remove those member interfaces from the "lan" switch using Ansible.
Do you know how to do that ?
I tried the tasks bellow, leaving the port empty, but no success.
If I specify just one port, like lan1, it removes the others. I need to remove them all.
task1
- name: Remove member interfaces from "lan" virtual hardware switch
fortinet.fortios.fortios_system_virtual_switch:
vdom: "{{ vdom }}"
state: "present"
system_virtual_switch:
name: "lan"
port:
task2
- name: Remove member interfaces from "lan" virtual hardware switch
fortinet.fortios.fortios_system_virtual_switch:
vdom: "{{ vdom }}"
state: "present"
system_virtual_switch:
name: "lan"
port:
-

