Merge pull request #22 from bergware/master

Fixed check of additional interfaces as bonding member
This commit is contained in:
tom mortensen
2016-06-04 12:45:58 -07:00

View File

@@ -23,7 +23,7 @@ $vlan_ethX = [0];
if (isset($ethX)) foreach ($ethX as $key => $val) if (substr($key,0,6)=='VLANID') $vlan_ethX[] = substr($key,7);
// get bond membership
$bond_ethX = isset($eth0['BONDNICS']) ? in_array('ethX',explode(',',$eth0['BONDNICS'])) : false;
$bond_ethX = $eth0['BONDING']=='yes' ? in_array('ethX',explode(',',$eth0['BONDNICS'])) : false;
?>
<script>
$(function() {