interfaces: remove defunct "other" VIP type

This commit is contained in:
Franco Fichtner 2025-02-17 10:52:26 +01:00
parent 9943ba0fcb
commit 40ae978391
4 changed files with 2 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<id>vip.mode</id>
<label>Mode</label>
<type>dropdown</type>
<help>Proxy ARP and other type Virtual IPs cannot be bound to by anything running on the firewall, such as IPsec, OpenVPN, etc. Use a CARP or IP Alias type address for these cases.</help>
<help>Proxy ARP cannot be bound to by anything running on the firewall, such as IPsec, OpenVPN, etc. In most cases an IP alias should be used.</help>
</field>
<field>
<id>vip.interface</id>

View File

@ -15,8 +15,6 @@
<ipalias>IP Alias</ipalias>
<carp>CARP</carp>
<proxyarp>Proxy ARP</proxyarp>
<!-- madness without function -->
<other>Other</other>
</OptionValues>
</mode>
<subnet type=".\VipNetworkField">

View File

@ -83,7 +83,6 @@
<option value="ipalias">{{ lang._('IP Alias') }}</option>
<option value="carp">{{ lang._('CARP') }}</option>
<option value="proxyarp">{{ lang._('Proxy ARP') }}</option>
<option value="other">{{ lang._('Other') }}</option>
</select>
</div>
</div>

View File

@ -110,7 +110,7 @@ if (!empty($config['virtualip']['vip'])) {
if ($vipent['mode'] == 'proxyarp') {
$proxyarp = true;
}
if (in_array($vipent['mode'], ['proxyarp', 'other'])) {
if ($vipent['mode'] == 'proxyarp') {
if (isset($addresses[$subnet])) {
legacy_interface_deladdress($addresses[$subnet]['if'], $subnet, is_ipaddrv6($subnet) ? 6 : 4);
}