reordered
[myplc.git] / db-config.d / 080-slice_netflow
diff --git a/db-config.d/080-slice_netflow b/db-config.d/080-slice_netflow
new file mode 100644 (file)
index 0000000..7af59e0
--- /dev/null
@@ -0,0 +1,33 @@
+# -*-python-*-
+# $Id$
+# $URL$
+####################
+# Create/update system slices
+
+# get the MyPLC url
+url = GetMyPLCURL()
+
+description = """PlanetFlow Traffic Auditing Service.
+Logs, captured in the root context using fprobe-ulogd, are stored in a
+directory in the root context which is bind mounted to the planetflow
+slice.  The Planetflow Central service then periodically rsyncs these
+logs from the planetflow slice for aggregation."""
+
+slice = \
+{
+    'name': plc['slice_prefix'] + "_netflow",
+    'description': description,
+    'url': url,
+    'instantiation': "plc-instantiated",
+    # Renew forever (minus one day, work around date conversion weirdness)
+    'expires': 0x7fffffff - (60 * 60 * 24)
+}
+    
+tags = \
+[
+    ('system', "1"),
+    ('vref', "planetflow"),
+    ('vsys', "pfmount")
+]
+
+SetSlice(slice,tags)