That is the problem it seems I do not have any other configuration related to that interface except of:
add vpn tunnel X type numbered local 1.2.3.4 remote 1.2.3.5 peer SOMEONE
set interface vpntX comments "SOMEONE"
set interface vpntX state off
set interface vpntX mtu 1500
As I stated previously the only thing that I have done differently in this occasion is testing the route by using not an address but the actual logical interface, then I changed to referring address:
So from -> set static-route NETWORK nexthop gateway logical vpntX on
To -> set static-route NETWORK nexthop gateway address 1.2.3.4 priority 1 on
I have deleted the routes related to this IP/interface.
Some other thing I have noticed, if I put back the static route like I did the test in the beginning:
set static-route NETWORK nexthop gateway logical vpntX on
and try to delete the interface by :
delete vpn tunnel X
I get the below messages:
This interface is used by the Dynamic Routing Protocols:
This interface is used by the Dynamic Routing Protocols:
Please remove this configuration before deleting the vpn tunnel interface
VpntErr0005 Dynamic Routing Protocols present on VPNT
If the behavior would be "normal", I would be able to delete the interface by just doing:
delete vpn tunnel X
This seems not the case and I'm not able to find a solution to this. I have found some similar situation described by someone some time ago:
https://community.checkpoint.com/t5/Security-Gateways/Can-t-delete-interfaces-This-interface-is-used...
Maybe this information ring a bell 😊
Thank you for the support so far.