Merge branch 'master' of ssh://git.onelab.eu/git/plcapi
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 16 May 2011 09:09:10 +0000 (11:09 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 16 May 2011 09:09:10 +0000 (11:09 +0200)
db-config.d/010-slice_tags
php/plc_api.php

index 535c735..8691132 100644 (file)
@@ -28,6 +28,9 @@ slicetag_types = \
     {'tagname': "ip_addresses",
      'description': "Add an ip address to a slice/sliver.",
      'category' : 'slice/rspec'},
+    {'tagname': "isolate_loopback",
+     'description': "Create an isolated loopback interface within the vserver rather than sharing with all vservers.",
+     'category' : 'slice/rspec'},
     
     # CPU share
     {'tagname': "cpu_pct",
index 3224601..41f65c2 100644 (file)
@@ -61,9 +61,13 @@ class PLCAPI
   function backtrace_php () {
     $backtrace = debug_backtrace();
     $msg = "";
-    foreach( $backtrace as $line ) {
+    $len = count($backtrace);
+    $cnt = 1;
+    foreach( array_reverse($backtrace) as $line ) {
         $msg .= "File '". $line['file'] . "' line " . $line['line'] . "\n";
         $msg .= "    " . $line['function'] . "( "  . $this->rec_join($line['args']) . ")\n";
+        $cnt += 1;
+        if ( $cnt == $len ) { break; }
     }
     return $msg;
   }