Otherwise we try to unload when it's there. Logic was
correct but -b assumtion was incorrect as we do not touch
drivers there or require any pool listing.
The hours spent clicking this after page open just to debug have
been many so let's take the lazy route and always display a diff
which is already somewhat indicated by the selectors of the list
below.
We create state files for the "real" interfaces in IPv4,
so we need to apply the same logic to IPv6. 6RD and
6TO4 do not seem to do this yet so bring them over.
It's nice that WAN decided to get a global IPv6 regardless
of what dhcp6prefixonly says, but most of the system should
carry on regardless and ignore that address as much as it
can. It makes troubleshooting easier and less surprising.
This provides a manual override track interface to be
enabled or disabled in dhcpv6 as we do not meddle with
the enable flag anymore. It's not super-useful but it
makes sense to follow the enabled flag in this case.
Suggested by: @marjohn56
This function looks innocent enough but has potential to mess with the
wrong interfaces or do operations all over or just general code drift
that doesn't seem so nice nowadays.
Tested on static LAN with WAN track and dhcp4/6 over there. Also
survices a reboot which is good enough for a first commit. More testing
to come.
Also destroys 6rd/6to4 tunnel devices now although the scrubbing of
the interface should work after this rework. Just trying to stay
consistent with the configure functions which destroy the interface
on each configure run.
Copyright in file since 2015 when work started to remove the PHP module.
A multitude of improvemets followed ever after.
Related PR: https://github.com/opnsense/core/issues/2661
/dev/zfs/pool does not exist so we can do a "zfs/pool" input
in alignment with gmirror and graid inputs. Move the probing
after zfs load to be able to unload again also.
in some situation, like OpenStack, mtu is less then default (1500) and
it cause replication issue
we have noticed on a low used firewall with 2/3k State table size more
then 100k State table size on the backup server
copy mtu from real interface fix this issue