Ignore:
Timestamp:
Jan 8, 2016, 11:00:11 PM (9 years ago)
Author:
chronos
Message:
  • Modified: Network configure actions now can be executed through cmd.php interface using "php cmd.php config <action>".
File:
1 edited

Legend:

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

    r738 r781  
    44include_once(dirname(__FILE__).'/RouterboardAPI.php');
    55include_once(dirname(__FILE__).'/Generators/Common.php');
     6
     7// Config actions
     8include_once(dirname(__FILE__).'/Generators/Signal.php');
     9include_once(dirname(__FILE__).'/Generators/DHCP.php');
     10include_once(dirname(__FILE__).'/Generators/DNS.php');
     11include_once(dirname(__FILE__).'/Generators/Netwatch.php');
     12include_once(dirname(__FILE__).'/Generators/NetwatchImport.php');
     13include_once(dirname(__FILE__).'/Generators/FirewallFilter.php');
     14include_once(dirname(__FILE__).'/Generators/FirewallNAT.php');
     15include_once(dirname(__FILE__).'/Generators/FirewallMangle.php');
     16include_once(dirname(__FILE__).'/Generators/Queue.php');
    617
    718class ModuleNetworkConfigRouterOS extends AppModule
     
    4152      ),
    4253    ));
     54
     55    $this->System->ModuleManager->Modules['NetworkConfig']->RegisterConfigItem('routeros-dns', 'ConfigRouterOSDNS');
     56    $this->System->ModuleManager->Modules['NetworkConfig']->RegisterConfigItem('routeros-dhcp', 'ConfigRouterOSDHCP');
     57    $this->System->ModuleManager->Modules['NetworkConfig']->RegisterConfigItem('routeros-signal', 'ConfigRouterOSSignal');
     58    $this->System->ModuleManager->Modules['NetworkConfig']->RegisterConfigItem('routeros-netwatch', 'ConfigRouterOSNetwatch');
     59    $this->System->ModuleManager->Modules['NetworkConfig']->RegisterConfigItem('routeros-netwatch-import', 'ConfigRouterOSNetwatchImport');
     60    $this->System->ModuleManager->Modules['NetworkConfig']->RegisterConfigItem('routeros-firewall-filter', 'ConfigRouterOSFirewallFilter');
     61    $this->System->ModuleManager->Modules['NetworkConfig']->RegisterConfigItem('routeros-firewall-nat', 'ConfigRouterOSFirewallNAT');
     62    $this->System->ModuleManager->Modules['NetworkConfig']->RegisterConfigItem('routeros-firewall-mangle', 'ConfigRouterOSFirewallMangle');
     63    $this->System->ModuleManager->Modules['NetworkConfig']->RegisterConfigItem('routeros-queue', 'ConfigRouterOSQueue');
    4364  }
    4465}
Note: See TracChangeset for help on using the changeset viewer.