View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 1079 | RackTables | IPv4/IPv6/SLB | public | 2013-11-22 00:35 | 2013-11-22 05:47 |
| Reporter | waltari2001 | Assigned To | andriyanov | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | no change required | ||
| Platform | Limux | OS | Centos | OS Version | 6.3 |
| Product Version | 0.20.5 | ||||
| Summary | 1079: Use library functions in script mode | ||||
| Description | Hi, I'm trying to load a bunch of networks from command line using 'addIPv4Prefix' function defined in inc/navigation.php. My test script is as simple as: $script_mode = TRUE; include ('inc/init.php'); addIPv4Prefix ('10.10.104.0/24', 'TEST VLAN'); I get the following error: PHP Fatal error: Call to undefined function addIPv4Prefix() in /var/www/html/racktables/test.php on line 7 Thanks! Sade | ||||
| Tags | No tags attached. | ||||
|
The addIPv4Prefix does not take any parameters (it reads HTTP parameters from the form user submits). It is defined in ophandlers.php which is not included in init.php. You should examine the function addIPv4Prefix. It is a wrapper around createIPv4Prefix, which is available in CLI mode. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2013-11-22 00:35 | waltari2001 | New Issue | |
| 2013-11-22 00:35 | waltari2001 | Status | new => assigned |
| 2013-11-22 00:35 | waltari2001 | Assigned To | => andriyanov |
| 2013-11-22 05:47 | andriyanov | Note Added: 0001959 | |
| 2013-11-22 05:47 | andriyanov | Status | assigned => closed |
| 2013-11-22 05:47 | andriyanov | Resolution | open => no change required |