aboutsummaryrefslogtreecommitdiff
path: root/rumba/elements
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2018-04-12 14:56:15 +0200
committerMarco Capitani <m.capitani@nextworks.it>2018-04-12 14:56:15 +0200
commit4bc964d576e17c268b8cf80f1be53a8d974ba4e6 (patch)
tree4e9c4c939d65cf514149b3db6926be2282b35061 /rumba/elements
parent3be4baa7e19133f0c41188bb1c2ee6ae3a82d470 (diff)
downloadrumba-4bc964d576e17c268b8cf80f1be53a8d974ba4e6.tar.gz
rumba-4bc964d576e17c268b8cf80f1be53a8d974ba4e6.zip
model: add parameter for not adding default cubes
Diffstat (limited to 'rumba/elements')
-rw-r--r--rumba/elements/topology.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/rumba/elements/topology.py b/rumba/elements/topology.py
index 0ff1957..f717a5a 100644
--- a/rumba/elements/topology.py
+++ b/rumba/elements/topology.py
@@ -202,17 +202,24 @@ class NormalDIF(DIF):
"""
Normal DIF.
"""
- def __init__(self, name, members=None, policy=None):
+ def __init__(self,
+ name,
+ members=None,
+ policy=None,
+ add_default_qos_cubes=True):
"""
:param name: The name of the DIF.
:param members: The list of members.
:param policy: Policies of the normal DIF.
+ :param add_default_qos_cubes: should the prototype-dependant default
+ QoS cubes be added to this DIF?
"""
DIF.__init__(self, name, members)
if policy is None:
policy = Policy(self)
self.policy = policy
self.qos_cubes = []
+ self.add_default_qos_cubes = add_default_qos_cubes
self._last_cube_id = 0
def add_policy(self, comp, pol, **params):