I have a logical interface created on FG800D as below and I wanted to change the port from "port7" to "port8". In GUI, there is no option to edit the port number. In CLI, when I try to unset the port and set the port number to port8, i get an error message as "fortigate entry not found in datasource". Is it really possible on Fortigate to change physical port number on the logical interface? If yes, what is the procedure?
Truthfully I have never tried what you're doing. I have had to do it, but I just deleted the logical interface and recreated it on the new physical interface.
You should be able to do this the way you're wanting though if you can afford a reboot. Back up your config, edit the interface config offline (Notepad or whatever) and then do a restore of the config, which will necessitate a reboot. As long as there aren't any other dependencies you haven't thought of, this should work fine. I have done this when I needed to change a ton of my policies from a physical interface to a zone.
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.