View Issue Details

IDProjectCategoryView StatusLast Update
1079RackTablesIPv4/IPv6/SLBpublic2013-11-22 05:47
Reporterwaltari2001 Assigned Toandriyanov  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionno change required 
PlatformLimuxOSCentosOS Version6.3
Product Version0.20.5 
Summary1079: Use library functions in script mode
DescriptionHi,

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

TagsNo tags attached.

Activities

andriyanov

andriyanov

2013-11-22 05:47

reporter   ~0001959

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.

Issue History

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