From 90c50aa6cabf3cd67848a433861a3321efdc6cea Mon Sep 17 00:00:00 2001 From: erbel <johannes.erbel@cs.uni-goettingen.de> Date: Wed, 22 May 2019 11:30:15 +0200 Subject: [PATCH] Enhance test models --- .../cs/rwm/mocci/RegistryAndLoggerSetup.java | 39 +++++++++---------- .../cs/rwm/mocci/occi/hadoopClusterCPU.occic | 6 +-- .../occi/hadoopClusterNewExtWithMem.occic | 6 +-- .../de/ugoe/cs/rwm/mocci/TestUtility.java | 39 +++++++------------ .../occi/hadoopClusterNewExtWithMem.occic | 6 +-- 5 files changed, 42 insertions(+), 54 deletions(-) diff --git a/src/main/java/de/ugoe/cs/rwm/mocci/RegistryAndLoggerSetup.java b/src/main/java/de/ugoe/cs/rwm/mocci/RegistryAndLoggerSetup.java index af1de57..59bffc6 100644 --- a/src/main/java/de/ugoe/cs/rwm/mocci/RegistryAndLoggerSetup.java +++ b/src/main/java/de/ugoe/cs/rwm/mocci/RegistryAndLoggerSetup.java @@ -4,28 +4,26 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * - Johannes Erbel <johannes.erbel@cs.uni-goettingen.de> */ package de.ugoe.cs.rwm.mocci; - import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.eclipse.cmf.occi.core.OCCIPackage; -import org.eclipse.cmf.occi.core.util.OCCIResourceFactoryImpl; import org.eclipse.cmf.occi.core.util.OcciRegistry; +import org.eclipse.cmf.occi.crtp.CrtpPackage; import org.eclipse.cmf.occi.infrastructure.InfrastructurePackage; -import org.eclipse.emf.ecore.resource.Resource.Factory.Registry; import org.modmacao.ansibleconfiguration.AnsibleconfigurationPackage; import org.modmacao.occi.platform.PlatformPackage; import org.modmacao.placement.PlacementPackage; + import de.ugoe.cs.rwm.cocci.Comparator; import de.ugoe.cs.rwm.docci.Deployer; import de.ugoe.cs.rwm.docci.appdeployer.MartAppDeployerSlave; import de.ugoe.cs.rwm.docci.connector.Connector; -import de.ugoe.cs.rwm.docci.connector.MartConnector; import de.ugoe.cs.rwm.docci.deprovisioner.Deprovisioner; import de.ugoe.cs.rwm.docci.executor.Executor; import de.ugoe.cs.rwm.docci.provisioner.Provisioner; @@ -37,18 +35,17 @@ import openstackruntime.OpenstackruntimePackage; import ossweruntime.OssweruntimePackage; public class RegistryAndLoggerSetup { - + static String manNWid = "urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590"; static String manNWRuntimeId = "75a4639e-9ce7-4058-b859-8a711b0e2e7b"; static String sshKey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"; static String userData = "I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"; - - + public static void setup() { loggerSetup(); - registrySetup(); - } - + registrySetup(); + } + private static void loggerSetup() { Logger.getLogger(Transformator.class.getName()).setLevel(Level.OFF); Logger.getLogger(Connector.class.getName()).setLevel(Level.OFF); @@ -60,20 +57,21 @@ public class RegistryAndLoggerSetup { Logger.getLogger(Executor.class.getName()).setLevel(Level.INFO); Logger.getLogger(MartAppDeployerSlave.class.getName()).setLevel(Level.INFO); } - + private static void registrySetup() { - + InfrastructurePackage.eINSTANCE.eClass(); OCCIPackage.eINSTANCE.eClass(); ModmacaoPackage.eINSTANCE.eClass(); OpenstackruntimePackage.eINSTANCE.eClass(); - + PlacementPackage.eINSTANCE.eClass(); OssweruntimePackage.eINSTANCE.eClass(); AnsibleconfigurationPackage.eINSTANCE.eClass(); MonitoringPackage.eINSTANCE.eClass(); - PlatformPackage.eINSTANCE.eClass(); + CrtpPackage.eINSTANCE.eClass(); + OcciRegistry.getInstance().registerExtension("http://schemas.modmacao.org/occi/platform#", PlatformPackage.class.getClassLoader().getResource("model/platform.occie").toString()); @@ -89,16 +87,17 @@ public class RegistryAndLoggerSetup { InfrastructurePackage.class.getClassLoader().getResource("model/Infrastructure.occie").toString()); OcciRegistry.getInstance().registerExtension("http://schemas.ogf.org/occi/core#", OCCIPackage.class.getClassLoader().getResource("model/Core.occie").toString()); - OcciRegistry.getInstance().registerExtension("http://schemas.ugoe.cs.rwm/workflow#", - OCCIPackage.class.getClassLoader().getResource("model/workflow.occie").toString()); OcciRegistry.getInstance().registerExtension("http://schemas.modmacao.org/openstack/swe#", OCCIPackage.class.getClassLoader().getResource("model/ossweruntime.occie").toString()); OcciRegistry.getInstance().registerExtension("http://schemas.modmacao.org/occi/ansible#", OCCIPackage.class.getClassLoader().getResource("model/ansibleconfiguration.occie").toString()); OcciRegistry.getInstance().registerExtension("http://schemas.ugoe.cs.rwm/monitoring#", MonitoringPackage.class.getClassLoader().getResource("model/monitoring.occie").toString()); - - Registry.INSTANCE.getExtensionToFactoryMap().put("*", new OCCIResourceFactoryImpl()); - + OcciRegistry.getInstance().registerExtension("http://schemas.ogf.org/occi/infrastructure/compute/template/1.1#", + OCCIPackage.class.getClassLoader().getResource("model/crtp.occie").toString()); + + // Registry.INSTANCE.getExtensionToFactoryMap().put("*", new + // OCCIResourceFactoryImpl()); + } } diff --git a/src/main/resources/de/ugoe/cs/rwm/mocci/occi/hadoopClusterCPU.occic b/src/main/resources/de/ugoe/cs/rwm/mocci/occi/hadoopClusterCPU.occic index 64b7410..9974f73 100644 --- a/src/main/resources/de/ugoe/cs/rwm/mocci/occi/hadoopClusterCPU.occic +++ b/src/main/resources/de/ugoe/cs/rwm/mocci/occi/hadoopClusterCPU.occic @@ -73,7 +73,7 @@ <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> </links> </resources> - <resources xsi:type="platform:Application" id="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" title="Hadoopcluster" location="/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" occiAppName="" occiAppState="deployed"> + <resources xsi:type="platform:Application" id="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" title="Hadoopcluster" location="/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" occiAppName="" occiAppState="undeployed"> <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='application']"/> <attributes name="occi.core.id" value="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d"/> <attributes name="occi.core.title" value="Hadoopcluster"/> @@ -236,7 +236,7 @@ <attributes name="occi.core.title" value="link2"/> </links> </resources> - <resources xsi:type="infrastructure:Compute" id="urn:uuid:37829092-c690-494a-98fa-335b2fd660ea" title="MonVm" rlinks="//@resources.9/@links.1 //@resources.10/@links.1" occiComputeHostname="monVM"> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:37829092-c690-494a-98fa-335b2fd660ea" title="MonVm" rlinks="//@resources.9/@links.1 //@resources.10/@links.1" occiComputeState="active" occiComputeHostname="monVM"> <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> <attributes name="occi.core.id" value="urn:uuid:37829092-c690-494a-98fa-335b2fd660ea"/> <attributes name="occi.core.title" value="MonVm"/> @@ -261,7 +261,7 @@ </parts> </links> </resources> - <resources xsi:type="infrastructure:Network" id="urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a" title="MonitoringNetwork" rlinks="//@resources.11/@links.0 //@resources.4/@links.1"> + <resources xsi:type="infrastructure:Network" id="urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a" title="MonitoringNetwork" occiNetworkState="active" rlinks="//@resources.11/@links.0 //@resources.4/@links.1"> <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> <attributes name="occi.core.id" value="urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a"/> <attributes name="occi.core.title" value="MonitoringNetwork"/> diff --git a/src/main/resources/de/ugoe/cs/rwm/mocci/occi/hadoopClusterNewExtWithMem.occic b/src/main/resources/de/ugoe/cs/rwm/mocci/occi/hadoopClusterNewExtWithMem.occic index 468d645..a98c32e 100644 --- a/src/main/resources/de/ugoe/cs/rwm/mocci/occi/hadoopClusterNewExtWithMem.occic +++ b/src/main/resources/de/ugoe/cs/rwm/mocci/occi/hadoopClusterNewExtWithMem.occic @@ -73,7 +73,7 @@ <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> </links> </resources> - <resources xsi:type="platform:Application" id="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" title="Hadoopcluster" location="/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" occiAppName="" occiAppState="deployed"> + <resources xsi:type="platform:Application" id="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" title="Hadoopcluster" location="/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" occiAppName="" occiAppState="undeployed"> <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='application']"/> <attributes name="occi.core.id" value="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d"/> <attributes name="occi.core.title" value="hadoopcluster"/> @@ -236,7 +236,7 @@ <attributes name="occi.core.title" value="link2"/> </links> </resources> - <resources xsi:type="infrastructure:Compute" id="urn:uuid:37829092-c690-494a-98fa-335b2fd660ea" title="MonVm" rlinks="//@resources.9/@links.1 //@resources.10/@links.1 //@resources.13/@links.1 //@resources.14/@links.1" occiComputeHostname="monVM" occiComputeState="inactive"> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:37829092-c690-494a-98fa-335b2fd660ea" title="MonVm" rlinks="//@resources.9/@links.1 //@resources.10/@links.1 //@resources.13/@links.1 //@resources.14/@links.1" occiComputeHostname="monVM" occiComputeState="active"> <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> <attributes name="occi.core.id" value="urn:uuid:37829092-c690-494a-98fa-335b2fd660ea"/> <attributes name="occi.core.title" value="MonVm"/> @@ -261,7 +261,7 @@ </parts> </links> </resources> - <resources xsi:type="infrastructure:Network" id="urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a" title="MonitoringNetwork" rlinks="//@resources.11/@links.0 //@resources.4/@links.1" occiNetworkState="inactive"> + <resources xsi:type="infrastructure:Network" id="urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a" title="MonitoringNetwork" rlinks="//@resources.11/@links.0 //@resources.4/@links.1" occiNetworkState="active"> <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> <attributes name="occi.core.id" value="urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a"/> <attributes name="occi.core.title" value="MonitoringNetwork"/> diff --git a/src/test/java/de/ugoe/cs/rwm/mocci/TestUtility.java b/src/test/java/de/ugoe/cs/rwm/mocci/TestUtility.java index 30f6313..1bcc20e 100644 --- a/src/test/java/de/ugoe/cs/rwm/mocci/TestUtility.java +++ b/src/test/java/de/ugoe/cs/rwm/mocci/TestUtility.java @@ -1,10 +1,8 @@ package de.ugoe.cs.rwm.mocci; import java.io.File; -import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; -import java.util.Map; import org.apache.log4j.Level; import org.apache.log4j.Logger; @@ -15,24 +13,16 @@ import org.eclipse.cmf.occi.crtp.CrtpPackage; import org.eclipse.cmf.occi.infrastructure.InfrastructurePackage; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; import org.modmacao.ansibleconfiguration.AnsibleconfigurationPackage; import org.modmacao.occi.platform.PlatformPackage; -import org.modmacao.occi.platform.impl.PlatformFactoryImpl; import org.modmacao.placement.PlacementPackage; import de.ugoe.cs.rwm.cocci.Comparator; import de.ugoe.cs.rwm.cocci.ComparatorFactory; import de.ugoe.cs.rwm.docci.Deployer; import de.ugoe.cs.rwm.docci.ModelUtility; -import de.ugoe.cs.rwm.docci.appdeployer.MartAppDeployerMaster; -import de.ugoe.cs.rwm.docci.appdeployer.MartAppDeployerSlave; import de.ugoe.cs.rwm.docci.connector.Connector; -import de.ugoe.cs.rwm.docci.deprovisioner.Deprovisioner; import de.ugoe.cs.rwm.docci.executor.Executor; -import de.ugoe.cs.rwm.docci.extractor.Extractor; -import de.ugoe.cs.rwm.docci.provisioner.Provisioner; -import de.ugoe.cs.rwm.tocci.Transformator; import modmacao.ModmacaoPackage; import monitoring.MonitoringPackage; import openstackruntime.OpenstackruntimePackage; @@ -44,14 +34,14 @@ public class TestUtility { OCCIPackage.eINSTANCE.eClass(); ModmacaoPackage.eINSTANCE.eClass(); OpenstackruntimePackage.eINSTANCE.eClass(); - + PlacementPackage.eINSTANCE.eClass(); OssweruntimePackage.eINSTANCE.eClass(); AnsibleconfigurationPackage.eINSTANCE.eClass(); MonitoringPackage.eINSTANCE.eClass(); CrtpPackage.eINSTANCE.eClass(); PlatformPackage.eINSTANCE.eClass(); - + OcciRegistry.getInstance().registerExtension("http://schemas.modmacao.org/occi/platform#", PlatformPackage.class.getClassLoader().getResource("model/platform.occie").toString()); @@ -75,23 +65,23 @@ public class TestUtility { MonitoringPackage.class.getClassLoader().getResource("model/monitoring.occie").toString()); OcciRegistry.getInstance().registerExtension("http://schemas.ogf.org/occi/infrastructure/compute/template/1.1#", OCCIPackage.class.getClassLoader().getResource("model/crtp.occie").toString()); - - } + + } public static void loggerSetup() { File log4jfile = new File(ModelUtility.getPathToResource("log4j.properties")); PropertyConfigurator.configure(log4jfile.getAbsolutePath()); Logger.getLogger(Executor.class.getName()).setLevel(Level.DEBUG); - //Logger.getLogger(Extractor.class.getName()).setLevel(Level.DEBUG); - //Logger.getLogger(Provisioner.class.getName()).setLevel(Level.DEBUG); - Logger.getLogger(Comparator.class.getName()).setLevel(Level.DEBUG); - Logger.getLogger(Deprovisioner.class.getName()).setLevel(Level.INFO); - //Logger.getLogger(Connector.class.getName()).setLevel(Level.DEBUG); - //Logger.getLogger(ElementAdapter.class.getName()).setLevel(Level.INFO); + // Logger.getLogger(Extractor.class.getName()).setLevel(Level.DEBUG); + // Logger.getLogger(Provisioner.class.getName()).setLevel(Level.DEBUG); + // Logger.getLogger(Comparator.class.getName()).setLevel(Level.DEBUG); + // Logger.getLogger(Deprovisioner.class.getName()).setLevel(Level.INFO); + // Logger.getLogger(Connector.class.getName()).setLevel(Level.DEBUG); + // Logger.getLogger(ElementAdapter.class.getName()).setLevel(Level.INFO); Logger.getLogger(Deployer.class.getName()).setLevel(Level.INFO); - Logger.getLogger(MartAppDeployerMaster.class.getName()).setLevel(Level.DEBUG); - Logger.getLogger(MartAppDeployerSlave.class.getName()).setLevel(Level.DEBUG); - //Logger.getLogger(Transformator.class.getName()).setLevel(Level.DEBUG); + // Logger.getLogger(MartAppDeployerMaster.class.getName()).setLevel(Level.DEBUG); + // Logger.getLogger(MartAppDeployerSlave.class.getName()).setLevel(Level.DEBUG); + // Logger.getLogger(Transformator.class.getName()).setLevel(Level.DEBUG); } public static boolean equalsRuntime(Path desiredModelPath, Connector conn) { @@ -124,8 +114,7 @@ public class TestUtility { } return assertion; } - - + public static boolean equalsRuntime(Resource desiredModel, Connector conn) { Path deployedOCCI = Paths.get(System.getProperty("user.home") + "/.rwm/runtime.occic"); conn.loadRuntimeModel(deployedOCCI); diff --git a/src/test/resources/occi/hadoopClusterNewExtWithMem.occic b/src/test/resources/occi/hadoopClusterNewExtWithMem.occic index 468d645..a98c32e 100644 --- a/src/test/resources/occi/hadoopClusterNewExtWithMem.occic +++ b/src/test/resources/occi/hadoopClusterNewExtWithMem.occic @@ -73,7 +73,7 @@ <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> </links> </resources> - <resources xsi:type="platform:Application" id="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" title="Hadoopcluster" location="/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" occiAppName="" occiAppState="deployed"> + <resources xsi:type="platform:Application" id="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" title="Hadoopcluster" location="/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" occiAppName="" occiAppState="undeployed"> <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='application']"/> <attributes name="occi.core.id" value="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d"/> <attributes name="occi.core.title" value="hadoopcluster"/> @@ -236,7 +236,7 @@ <attributes name="occi.core.title" value="link2"/> </links> </resources> - <resources xsi:type="infrastructure:Compute" id="urn:uuid:37829092-c690-494a-98fa-335b2fd660ea" title="MonVm" rlinks="//@resources.9/@links.1 //@resources.10/@links.1 //@resources.13/@links.1 //@resources.14/@links.1" occiComputeHostname="monVM" occiComputeState="inactive"> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:37829092-c690-494a-98fa-335b2fd660ea" title="MonVm" rlinks="//@resources.9/@links.1 //@resources.10/@links.1 //@resources.13/@links.1 //@resources.14/@links.1" occiComputeHostname="monVM" occiComputeState="active"> <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> <attributes name="occi.core.id" value="urn:uuid:37829092-c690-494a-98fa-335b2fd660ea"/> <attributes name="occi.core.title" value="MonVm"/> @@ -261,7 +261,7 @@ </parts> </links> </resources> - <resources xsi:type="infrastructure:Network" id="urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a" title="MonitoringNetwork" rlinks="//@resources.11/@links.0 //@resources.4/@links.1" occiNetworkState="inactive"> + <resources xsi:type="infrastructure:Network" id="urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a" title="MonitoringNetwork" rlinks="//@resources.11/@links.0 //@resources.4/@links.1" occiNetworkState="active"> <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> <attributes name="occi.core.id" value="urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a"/> <attributes name="occi.core.title" value="MonitoringNetwork"/> -- GitLab