Skip to content
Permalink
Browse files

Network UI: allow alias creation on logical interfaces

  • Loading branch information...
gsanchietti committed May 31, 2016
1 parent 6969b8f commit 0209bfff3ae4ac094352b7d62721167f094bd6c5
Showing with 1 addition and 1 deletion.
  1. +1 −1 root/usr/share/nethesis/NethServer/Module/NetworkAdapter.php
@@ -178,7 +178,7 @@ public function prepareViewForColumnActions(\Nethgui\Controller\Table\Read $acti
$isLogicalDevice = in_array($values['type'], array('alias', 'bridge', 'bond', 'vlan', 'xdsl'));
$isPhysicalInterface = in_array($values['type'], array('ethernet'));
$isEditable = ! in_array($values['type'], array('alias', 'xdsl')) && ! in_array($role, array('slave', 'bridged', 'pppoe'));
$canHaveIpAlias = $isPresent && $values['type'] !== 'alias' && ! in_array($role, array('slave', 'bridged', 'pppoe'));
$canHaveIpAlias = (isset($values['role']) && $values['role']) && $values['type'] !== 'alias' && ! in_array($role, array('slave', 'bridged', 'pppoe'));
$isXdsl = $values['type'] === 'xdsl';
if ( ! $isLogicalDevice) {

0 comments on commit 0209bff

Please sign in to comment.
You can’t perform that action at this time.