mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
interfaces: remove defunct "other" VIP type
This commit is contained in:
parent
9943ba0fcb
commit
40ae978391
@ -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>
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user