support geni am api v2 return values
[sfa.git] / config / default_config.xml
index 3eecf98..6d052fc 100644 (file)
@@ -18,12 +18,27 @@ Thierry Parmentelat
       <description>Basic system variables.</description>
 
       <variablelist>
       <description>Basic system variables.</description>
 
       <variablelist>
+        <variable id="generic_flavour" type="string">
+          <name>Generic Flavour</name>
+          <value>pl</value>
+          <description>This string refers to a class located in sfa.generic that describes 
+          which specific implementation needs to be used for api, manager and driver objects.
+          PlanetLab users do not need to change this setting.
+          </description>
+        </variable>
+
         <variable id="interface_hrn" type="string">
           <name>Human readable name</name>
           <value>plc</value>
           <description>The human readable name for this interface.</description>
         </variable>
 
         <variable id="interface_hrn" type="string">
           <name>Human readable name</name>
           <value>plc</value>
           <description>The human readable name for this interface.</description>
         </variable>
 
+        <variable id="am_api_version" type="string">
+          <name>Aggregate Manager API Version</name>
+          <value>1</value>
+          <description>The Aggregate API version</description>
+        </variable>
+
         <variable id="credential_schema" type="string">
           <name>Credential Schema</name>
           <value>/etc/sfa/credential.xsd</value>
         <variable id="credential_schema" type="string">
           <name>Credential Schema</name>
           <value>/etc/sfa/credential.xsd</value>
@@ -35,6 +50,12 @@ Thierry Parmentelat
           <value>false</value>
           <description>Flag to turn debug on.</description>
         </variable>
           <value>false</value>
           <description>Flag to turn debug on.</description>
         </variable>
+    
+        <variable id="max_slice_renew" type="int">
+          <name>Max Slice Renew</name>
+          <value>60</value>
+          <description>Maximum amout of days a user can extend/renew their slices to</description>
+        </variable>
 
         <variable id="session_key_path" type="string">
             <name>User Session Keys Path </name>
 
         <variable id="session_key_path" type="string">
             <name>User Session Keys Path </name>
@@ -43,9 +64,10 @@ Thierry Parmentelat
             it look like the user is the one performing the operation. Doing this requires a 
             valid key pair and credential for the user. This option defines the path where 
             key pairs and credentials are generated and stored.
             it look like the user is the one performing the operation. Doing this requires a 
             valid key pair and credential for the user. This option defines the path where 
             key pairs and credentials are generated and stored.
-            This functionality is used by the SFA web gui 
+            This functionality is used by the SFA web GUI. 
             </description> 
         </variable>
             </description> 
         </variable>
+
       </variablelist>
     </category>
 
       </variablelist>
     </category>
 
@@ -94,67 +116,67 @@ Thierry Parmentelat
     </category>
 
     <!-- ======================================== -->
     </category>
 
     <!-- ======================================== -->
-    <category id="sfa_aggregate">
-      <name>Aggregate</name>
-      <description>The settings that affect the aggregate manager that will run
+    <category id="sfa_sm">
+      <name>Slice Manager</name>
+      <description>The settings that affect the slice manager that will run
       as part of this SFA instance.</description>
 
       <variablelist>
        <variable id="enabled" type="boolean">
       as part of this SFA instance.</description>
 
       <variablelist>
        <variable id="enabled" type="boolean">
-         <name>Enable Aggregate</name>
+         <name>Enable Slice Manager</name>
          <value>true</value>
          <value>true</value>
-         <description>Allows this local SFA instance to run as an
-         aggregate manager.</description>
+         <description>Allows this local SFA instance to run as a
+         slice manager.</description>
        </variable>
 
        <variable id="type" type="string">
        </variable>
 
        <variable id="type" type="string">
-         <name>Aggregate type</name>
+         <name>Slice Manager type</name>
          <value>pl</value>
          <description>The type of backend server for this
          <value>pl</value>
          <description>The type of backend server for this
-         aggregate. Some aggregates may not be myplc.</description>
+         slice manager. Not all slice managers are myplc.</description>
        </variable>
        </variable>
-    
-    <variable id="rspec_schema" type="string">
-      <name>RSpec Schema</name>
-      <value>/etc/sfa/pl.rng</value>
-      <description>The path to the default schema</description>
-    </variable>
 
        <variable id="host" type="hostname">
          <name>Hostname</name>
          <value>localhost</value>
 
        <variable id="host" type="hostname">
          <name>Hostname</name>
          <value>localhost</value>
-         <description>The hostname where the aggregate is expected to
+         <description>The hostname where the slice manager is expected to
          be found.</description>
        </variable>
 
        <variable id="port" type="int">
          <name>Port number</name>
          be found.</description>
        </variable>
 
        <variable id="port" type="int">
          <name>Port number</name>
-         <value>12346</value>
-         <description>The port where the aggregate is to be found.</description>
+         <value>12347</value>
+         <description>The port where the slice manager is to be found.</description>
        </variable>
       </variablelist>
        </variable>
       </variablelist>
-
     </category>
     </category>
+
     <!-- ======================================== -->
     <!-- ======================================== -->
-    <category id="sfa_geni_aggregate">
-      <name>GENI Aggregate</name>
-      <description>The settings that affect the geni aggregate manager that will run
+    <category id="sfa_aggregate">
+      <name>Aggregate</name>
+      <description>The settings that affect the aggregate manager that will run
       as part of this SFA instance.</description>
 
       <variablelist>
        <variable id="enabled" type="boolean">
       as part of this SFA instance.</description>
 
       <variablelist>
        <variable id="enabled" type="boolean">
-         <name>Enable GENI Aggregate</name>
+         <name>Enable Aggregate</name>
          <value>true</value>
          <description>Allows this local SFA instance to run as an
          <value>true</value>
          <description>Allows this local SFA instance to run as an
-         GENI aggregate manager.</description>
+         aggregate manager.</description>
        </variable>
 
        <variable id="type" type="string">
        </variable>
 
        <variable id="type" type="string">
-         <name>GENI Aggregate type</name>
+         <name>Aggregate type</name>
          <value>pl</value>
          <description>The type of backend server for this
          aggregate. Some aggregates may not be myplc.</description>
        </variable>
          <value>pl</value>
          <description>The type of backend server for this
          aggregate. Some aggregates may not be myplc.</description>
        </variable>
+    
+    <variable id="rspec_schema" type="string">
+      <name>RSpec Schema</name>
+      <value>/etc/sfa/pl.rng</value>
+      <description>The path to the default schema</description>
+    </variable>
 
        <variable id="host" type="hostname">
          <name>Hostname</name>
 
        <variable id="host" type="hostname">
          <name>Hostname</name>
@@ -165,7 +187,7 @@ Thierry Parmentelat
 
        <variable id="port" type="int">
          <name>Port number</name>
 
        <variable id="port" type="int">
          <name>Port number</name>
-         <value>12348</value>
+         <value>12346</value>
          <description>The port where the aggregate is to be found.</description>
        </variable>
       </variablelist>
          <description>The port where the aggregate is to be found.</description>
        </variable>
       </variablelist>
@@ -173,38 +195,42 @@ Thierry Parmentelat
     </category>
 
     <!-- ======================================== -->
     </category>
 
     <!-- ======================================== -->
-    <category id="sfa_sm">
-      <name>Slice Manager</name>
-      <description>The settings that affect the slice manager that will run
-      as part of this SFA instance.</description>
+    <category id="sfa_db">
+      <name></name>
+      <description>The settings that tell this SFA instance where to find its database. You can essentially leave this as-is unless you plan on hosting your data on some other box.</description>
 
       <variablelist>
 
       <variablelist>
-       <variable id="enabled" type="boolean">
-         <name>Enable Slice Manager</name>
-         <value>true</value>
-         <description>Allows this local SFA instance to run as a
-         slice manager.</description>
+       <variable id="host" type="hostname">
+         <name>Database host</name>
+         <value>localhost</value>
+         <description>The host where the SFA database can be reached.</description>
        </variable>
 
        </variable>
 
-       <variable id="type" type="string">
-         <name>Slice Manager type</name>
-         <value>pl</value>
-         <description>The type of backend server for this
-         slice manager. Not all slice managers are myplc.</description>
+       <variable id="port" type="int">
+         <name>Database port</name>
+         <value>5432</value>
+         <description>The port where the SFA database can be reached.</description>
        </variable>
 
        </variable>
 
-       <variable id="host" type="hostname">
-         <name>Hostname</name>
-         <value>localhost</value>
-         <description>The hostname where the slice manager is expected to
-         be found.</description>
+       <variable id="user" type="string">
+         <name>Database user</name>
+         <value>pgsqluser</value>
+         <description>When SFA gets co-hosted with a myplc, this should match the PLC config.</description>
        </variable>
 
        </variable>
 
-       <variable id="port" type="int">
-         <name>Port number</name>
-         <value>12347</value>
-         <description>The port where the slice manager is to be found.</description>
+       <variable id="password" type="string">
+         <name>Database password</name>
+         <value></value>
+         <description>When SFA gets co-hosted with a myplc, this should match the PLC config.</description>
+       </variable>
+
+       <variable id="name" type="string">
+         <name>Database name</name>
+         <value>sfa</value>
+         <description>SFA database name.</description>
        </variable>
        </variable>
+
+
       </variablelist>
     </category>
 
       </variablelist>
     </category>
 
@@ -232,39 +258,11 @@ Thierry Parmentelat
          <description>Full URL of PLC interface.</description>
        </variable>
 
          <description>Full URL of PLC interface.</description>
        </variable>
 
-       <variable id="db_name" type="string">
-         <name>Database name</name>
-         <value>planetlab5</value>
-         <description>Planetlab database name.</description>
-       </variable>
-
-       <variable id="db_host" type="hostname">
-         <name>Datbase host</name>
-         <value>localhost</value>
-         <description>The host where the PLC database can be reached.</description>
-       </variable>
-
-       <variable id="db_port" type="int">
-         <name>Database port</name>
-         <value>5432</value>
-         <description>The port where the PLC database can be reached.</description>
-       </variable>
-
-       <variable id="db_user" type="string">
-         <name>Database user</name>
-         <value>pgsqluser</value>
-         <description></description>
-       </variable>
-
-       <variable id="db_password" type="string">
-         <name>Database password</name>
-         <value></value>
-         <description>The password for PLC_DB_USER.</description>
-       </variable>
-
       </variablelist>
     </category>
 
       </variablelist>
     </category>
 
+
+    <!-- ======================================== -->
     <category id="sfa_flashpolicy">
       <name>SFA Flash Policy</name>
       <description>The settings that affect the flash policy server that will run
     <category id="sfa_flashpolicy">
       <name>SFA Flash Policy</name>
       <description>The settings that affect the flash policy server that will run