- Timestamp:
- Jan 23, 2012, 9:22:13 AM (13 years ago)
- Location:
- trunk/Modules/NetworkConfigRouterOS
- Files:
-
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigRouterOS/NetworkConfigRouterOS.php
r381 r382 1 1 <?php 2 2 3 class ModuleNetworkRouterOS extends Module3 class NetworkFirewall extends Model 4 4 { 5 5 function __construct($Database, $System) 6 6 { 7 7 parent::__construct($Database, $System); 8 $this->Name = 'NetworkRouterOS'; 8 $this->Name = 'NetworkFirewall'; 9 $this->AddPropertyOneToMany('NetworkDevice', 'NetworkDevice'); 10 $this->AddPropertyString('SourceInterface'); 11 $this->AddPropertyString('DestinationInterface'); 12 $this->AddPropertyString('SourceAddress'); 13 $this->AddPropertyString('DestinationAddress'); 14 $this->AddPropertyInteger('SourcePort'); 15 $this->AddPropertyInteger('DestinationPort'); 16 $this->AddPropertyString('Action'); 17 $this->AddPropertyString('Comment'); 18 } 19 } 20 21 class NetworkMark extends Model 22 { 23 function __construct($Database, $System) 24 { 25 parent::__construct($Database, $System); 26 $this->Name = 'NetworkMark'; 27 $this->AddPropertyString('Comment'); 28 } 29 } 30 31 class NetworkMangleSubgroup extends Model 32 { 33 function __construct($Database, $System) 34 { 35 parent::__construct($Database, $System); 36 $this->Name = 'NetworkMangleSubgroup'; 37 $this->AddPropertyString('AddressRange'); 38 } 39 } 40 41 class ModuleNetworkConfigRouterOS extends Module 42 { 43 function __construct($Database, $System) 44 { 45 parent::__construct($Database, $System); 46 $this->Name = 'NetworkConfigRouterOS'; 9 47 $this->Version = '1.0'; 10 48 $this->Creator = 'Chronos'; 11 49 $this->License = 'GNU/GPL'; 12 50 $this->Description = 'Mikrotik RouterOS configuration'; 13 $this->Dependencies = array('Network'); 14 $this->SupportedModels = array(); 51 $this->Dependencies = array('NetworkConfig'); 52 $this->SupportedModels = array('NetworkFirewall', 'NetworkMark', 53 'NetworkMangeSubgroup'); 15 54 } 16 55
Note:
See TracChangeset
for help on using the changeset viewer.