interafces: PPPoE supports all IPv6 types

Only IPv4 prohibits use of 'staticv4' and 'dhcp'.  In theory
even these could work but we don't want to push our luck.
This commit is contained in:
Franco Fichtner
2026-10-09 11:08:16 +02:00
parent 28aa52f4e8
commit abc4c69ce8
@@ -244,12 +244,7 @@ class NetworkInterface extends BaseModel
$key . ".type4"
));
}
if (!empty($if->pppType()) && !in_array($if->type6->getValue(), ['none', 'pppoev6'])) {
$messages->appendMessage(new Message(
sprintf(gettext('This device only supports "%s" as type'), 'pppoev6'),
$key . ".type6"
));
} elseif (empty($if->pppType()) && in_array($if->type6->getValue(), ['pppoev6'])) {
if (empty($if->pppType()) && in_array($if->type6->getValue(), ['pppoev6'])) {
$messages->appendMessage(new Message(
gettext('PPP types belong to their respective devices'),
$key . ".type6"