Tagging module MyPLC - MyPLC-4.2-5
[myplc.git] / db-config
index d522bfd..64c5e24 100755 (executable)
--- a/db-config
+++ b/db-config
@@ -507,8 +507,13 @@ def main():
                # Vsys
         {'name': "vsys",
          'description': "Bind vsys script fd's to a slice's vsys directory.",
-         'min_role_id': 10}
+         'min_role_id': 10},
+
+        # CoDemux
+        {'name': "codemux",
+         'description': "Demux HTTP between slices using localhost ports. Value in the form 'host, localhost port'.",
+         'min_role_id': 10},
+
         ]
 
     # Get list of existing attribute types
@@ -532,7 +537,7 @@ def main():
             file = open(root + "/" + f, "ro")
             default_initscripts.append({"name": plc['slice_prefix'] + "_" + f,
                                         "enabled": True,
-                                        "script": file.read()})
+                                        "script": file.read().replace("XXXSITEXXX", url)})
             file.close()
 
     # Get list of existing initscripts