set default for permit_all_slices to true
diff --git a/xos/tosca/resources/network.py b/xos/tosca/resources/network.py
index 57180ae..96bc190 100644
--- a/xos/tosca/resources/network.py
+++ b/xos/tosca/resources/network.py
@@ -12,9 +12,11 @@
class XOSNetwork(XOSResource):
provides = ["tosca.nodes.network.Network", "tosca.nodes.network.Network.XOS"]
xos_model = Network
+ defaults = {"permit_all_slices": True}
def get_xos_args(self):
- args = {"name": self.nodetemplate.name}
+ args = {"name": self.nodetemplate.name,
+ "autoconnect": False,}
slice_name = self.get_requirement("tosca.relationships.MemberOfSlice")
if slice_name:
@@ -26,7 +28,7 @@
# copy simple string properties from the template into the arguments
for prop in ["ports", "labels", "permit_all_slices"]:
- v = self.get_property(prop)
+ v = self.get_property(prop, self.defaults.get(prop,None))
if v:
args[prop] = v