X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=db-config.d%2F083-slice_drl;fp=db-config.d%2F083-slice_drl;h=488b893265b06c8f09ca7ec1a681ea442a17d7c8;hb=49b81553a4846a5ce1e71e0ac315053e4bdc8773;hp=0000000000000000000000000000000000000000;hpb=95d51ce3c1abbe54a1df9ea2a45399d6ccec05e7;p=myplc.git diff --git a/db-config.d/083-slice_drl b/db-config.d/083-slice_drl new file mode 100644 index 0000000..488b893 --- /dev/null +++ b/db-config.d/083-slice_drl @@ -0,0 +1,29 @@ +# Create/update system slices + +# get the MyPLC url +url = GetMyPLCURL() + +description = """DistributedRateLimiting Service. +Distributed rate limiting allows administrators to set a limit on the aggregate +outgoing traffic rate for a set of nodes without putting a single static limit +on any individual node. Given an aggregate rate limit, the participating nodes +each use a portion of the limit according to the current traffic demands at the nodes.""" + +slice = \ +{ + 'name': plc['slice_prefix'] + "_drl", + '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"), + ('drl', "1"), + ('capabilities', "CAP_NET_ADMIN"), +] + +SetSlice(slice,tags)