Setting tag myplc-5.3-5
[myplc.git] / db-config.d / 081-slice_sirius
1 # -*-python-*-
2 ####################
3 # Create/update system slices
4
5 # get the MyPLC url
6 url = GetMyPLCURL()
7
8 descript = """The Sirius Calendar Service.
9
10 Sirius provides system-wide reservations of CPU and outgoing
11 bandwidth.  Sign up for hour-long slots using the Web GUI at the
12 PlanetLab website.
13
14 This slice should not generate traffic external to PlanetLab."""
15
16 slice = \
17 {
18     'name': plc['slice_prefix'] + "_sirius",
19     'description': description,
20     'url': url + "db/sirius/index.php",
21     'instantiation': "plc-instantiated",
22     # Renew forever (minus one day, work around date conversion weirdness)
23     'expires': 0x7fffffff - (60 * 60 * 24)
24 }
25
26 tags = \
27 [
28     ('system', "1"),
29     ('net_min_rate', "2000"),
30     ('cpu_pct', "25"),
31     ('initscript', plc['slice_prefix'] + "_sirius")
32 ]
33
34 SetSlice(slice,tags)