Setting tag myplc-5.3-5
[myplc.git] / db-config.d / 083-slice_drl
1 # Create/update system slices
2
3 # get the MyPLC url
4 url = GetMyPLCURL()
5
6 description = """DistributedRateLimiting Service.
7 Distributed rate limiting allows administrators to set a limit on the aggregate 
8 outgoing traffic rate for a set of nodes without putting a single static limit 
9 on any individual node. Given an aggregate rate limit, the participating nodes 
10 each use a portion of the limit according to the current traffic demands at the nodes."""
11
12 slice = \
13 {
14     'name': plc['slice_prefix'] + "_drl",
15     'description': description,
16     'url': url,
17     'instantiation': "plc-instantiated",
18     # Renew forever (minus one day, work around date conversion weirdness)
19     'expires': 0x7fffffff - (60 * 60 * 24)
20 }
21     
22 tags = \
23 [
24     ('system', "1"),
25     ('drl', "1"),
26     ('capabilities', "CAP_NET_ADMIN"),
27 ]
28
29 SetSlice(slice,tags)