Setting tag myplc-5.3-5
[myplc.git] / db-config.d / 080-slice_netflow
1 # -*-python-*-
2 ####################
3 # Create/update system slices
4
5 # get the MyPLC url
6 url = GetMyPLCURL()
7
8 description = """PlanetFlow Traffic Auditing Service.
9 Logs, captured in the root context using fprobe-ulogd, are stored in a
10 directory in the root context which is bind mounted to the planetflow
11 slice.  The Planetflow Central service then periodically rsyncs these
12 logs from the planetflow slice for aggregation."""
13
14 slice = \
15 {
16     'name': plc['slice_prefix'] + "_netflow",
17     'description': description,
18     'url': url,
19     'instantiation': "plc-instantiated",
20     # Renew forever (minus one day, work around date conversion weirdness)
21     'expires': 0x7fffffff - (60 * 60 * 24)
22 }
23     
24 tags = \
25 [
26     ('system', "1"),
27     ('vref', "planetflow"),
28     ('vsys', "pfmount")
29 ]
30
31 SetSlice(slice,tags)