Ignore:
Timestamp:
Sep 5, 2017, 10:52:31 PM (7 years ago)
Author:
chronos
Message:
  • Added: Show list of matching interfaces by LocalIP for viewed subnet.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Network/Network.php

    r835 r849  
    247247        'AddressRangeIPv6' => array('Type' => 'String', 'Caption' => 'Rozsah adres IPv6', 'Default' => ''),
    248248        'Configure' => array('Type' => 'Boolean', 'Caption' => 'Nastavovat', 'Default' => ''),
    249       ),
     249        'Interfaces' => array('Type' => 'TNetworkSubnetInterfaceList', 'Caption' => 'Rozhraní', 'Default' => ''),
     250      ),
     251    ));
     252    $this->System->FormManager->RegisterFormType('TNetworkSubnetInterfaceList', array(
     253      'Type' => 'ManyToOne',
     254      'Table' => 'NetworkInterface',
     255      'Id' => 'Id',
     256      'Ref' => null,
     257      'Filter' => '(`TX`.`LocalIP` != "") AND CompareNetworkPrefix(INET_ATON(`TX`.`LocalIP`), INET_ATON((SELECT `NetworkSubnet`.`AddressRange` FROM `NetworkSubnet` WHERE `NetworkSubnet`.`Id`=#Id)), '.
     258        '(SELECT `NetworkSubnet`.`Mask` FROM `NetworkSubnet` WHERE `NetworkSubnet`.`Id`=#Id))',
    250259    ));
    251260    $this->System->FormManager->RegisterClass('NetworkPort', array(
Note: See TracChangeset for help on using the changeset viewer.